ExecuteCommand issue

Hi - I have a python script and want to run one of my plugin commands from it. The code is…

Rhino.RhinoApp.ExecuteCommand(Rhino.RhinoDoc.ActiveDoc, "OctaneChangePinValue environment:texture:projection:transform:rotation 21")

This gives an error in the Rhino command area as follows:

Unknown command: _OctaneChangePinValue environment:texture:projection:transform:rotation 21

However if I just type the command in to the command line, it works fine:

OctaneChangePinValue environment:texture:projection:transform:rotation 21

Gives…

Command: OctaneChangePinValue
Enter pin name: environment:texture:projection:transform:rotation
Enter pin value: 21

How do I fix this please?

Thanks

Paul

Hi @pkinnane , you could try
Rhino.RhinoApp.RunScript("OctaneChangePinValue environment:texture:projection:transform:rotation 21", True)

1 Like

Thanks Darryl - that works.

Paul