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

RhinoApp.Runscript not working in C# script from toolbar

$
0
0

I am trying to use RhinoApp.Runscript inside a C# script.

When I hit the ‘Run’ button inside the ScriptEditor, it works perfectly.
However I would like to assign the script to a toolbar button, with the macro

-ScriptEditor _run “myscript.cs”

Then the script fails. Probably the command ScriptEditor should be a ScriptRunner command for it to work ?

Is there another way to execute a C# script from a toolbar button ?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4125

Trending Articles