Hello, 

could anyone help me please. How to write an alias for a python script?

Neither of the following works:

    ! _RunPythonScript "ScriptName.py",    ! _RunPythonScript "path\ScriptName.py"

    ! _RunPythonScript (ScriptName.py),    ! _RunPythonScript (path\ScriptName.py")

A window with my scripts opens, but the script is not started automatically.

What is the correct syntax?

Thanks in advance,

Jacek

Views: 92

Replies to This Discussion

Hello again,

I found:

     ! _-RunPythonScript "ScriptName"

a hyphen before Run... suppresses open file dialogue box and the script runs.

I have them in default Rhino path for scripts:

c:\Users\MyLogin\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\

I hope someone benefits from my post

Yes, benefitted.  Thanks.

RSS

Translate

© 2014   Created by McNeel Admin.

Badges  |  Report an Issue  |  Terms of Service