I am trying to run multiple commands in Python using rs.Command & Rhino.RhinoApp.RunScript.
Rather then having commands run consecutively, they ran in a opposite order and only after the python script execution was completed.
rs.Command('-_SelNone') rs.Command('-_SelLayer "first"') # do stuff like change materials, v-ray rendering rs.Command('-_SelNone') rs.Command('-_SelLayer "second"') rs.Command('-_SelNone')
First command is completely ignored and the second layer is selected before the first.
Trying to find a way to have these commands executed consecutively.
I am using RhinoScript rather then Python because I need to change materials & execute batch rendering.
I have yet to find these commands in directly in Python.