Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4165

Is it possible to pass arguments to RunPythonScript?

$
0
0

I’m trying to spawn multiple Rhino instances with a python script and make them load the same script that started them, but run it differently. I thought that it can be achieved by passing arguments to -RunPythonScript command like this:

-RunPythonScript ("C:\\Scripts\\test.py -testytestytest")

test.py:

import sys

print(sys.argv[1])

but this error pops up:
image

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4165

Latest Images

Trending Articles



Latest Images