Page 1 of 1

Run TexGen from terminal

Posted: Fri May 12, 2017 6:32 pm
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

Re: Run TexGen from terminal

Posted: Mon May 15, 2017 4:01 pm
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

Re: Run TexGen from terminal

Posted: Mon May 22, 2017 1:49 am
by lambert8809
Hi Louise,

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


Best
Xin