How to get parameters values in scripts

Started by fehrenc, April 05, 2017, 06:38:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fehrenc

dear all,

I try to running KeyShot on the command-line like " keyshot6.exe  -script <python script file> (optional script arguments..)"

how can I get the arguments values in my script ?

regards

jt_pedersen

Quoteimport sys

for arg  in sys.argv:
    print(arg)

sys.exit(0)