Run TexGen from terminal

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
lambert8809
Regular
Posts: 14
Joined: Fri Oct 07, 2016 5:09 pm

Run TexGen from terminal

Post by lambert8809 »

Hi Louise,

I want to know if there is a way to generate textile model and output the voxel mesh through a terminal (without GUI). Let's say we have the python script, which can run through GUI->Python->Run script.... Now I want to run this script through terminal by typing something like "$ python model.py". I know I need somehow connect python with the lib files generated by TexGen, but I cannot figure it out. Thanks a lot for your kind help.


Thanks
Xin
louisepb
Project Leader
Posts: 979
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: Run TexGen from terminal

Post by louisepb »

Hi Xin,

You should be able to run your script as a standalone without the user interface as long as you import the TexGen Python libraries. For example,

from TexGen.Core import *

Hope that helps,
Louise
lambert8809
Regular
Posts: 14
Joined: Fri Oct 07, 2016 5:09 pm

Re: Run TexGen from terminal

Post by lambert8809 »

Hi Louise,

Thank you very much for your reply. It works. Thanks for your kind help.


Best
Xin
Post Reply