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

Sending parameters to program via RunPythonScript

$
0
0

@owhite wrote:

I'm all about creating calls to rhino.python and then calling that with a customized macro attached to an icon. Typically I use:

!_-RunPythonScript ScriptName.py

but in my latest usecase I'd like to pass the program some arguments. So...

!_-RunPythonScript 'ScriptName.py fee fi foo fum'

would be really helpful. But that doesnt seem to work. I've tried enclosing in double quotes, parens and single quotes.

I want to avoid having the program perform making a call to a dialog box, and simply pass in the parameter if that particular icon is selected.

Running Rhino for Mac. Thanks much.

owen

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles