Every now and then all of the toolbars disapear and our saved toolbars open empty. We have made lots of tool bars to run scripts which have taken a long time to make and really need to stop this happening.

Does anyone know why this happens? and if so what can we do to prevent this?

Also any tips on making buttons to run scripts? And graphics for the buttons?

Views: 58

Reply to This

Replies to This Discussion

Hi Tom- can you send me one of your toolbar files that goes missing/empty?

"Also any tips on making buttons to run scripts?"

My approach is to build into the script two lines of code that cause the script to automatically load at start up, and registers an alias with Rhino that runs the script. This way, Rhino essentially has a new command, and you can put that command on a button.

Rhino.AddStartUpScript Rhino.LastLoadedScriptFile
Rhino.AddAlias "MyNewCommand", "_NoEcho _-Runscript (TheNewCommandScript)"


Sub TheNewCommandScript()

    - etc etc 

End Sub

then, drag and drop the script (rvb file) onto Rhino once to make it all work. Note that using this technique you cannot have any calls to the main subroutine included in the script itself.

"And graphics for the buttons?"

In V5 there is a lot more you can do  than in earlier versions- in particular, you can import a bitmap and have it re-size rather than be cropped, to fit the current button size.

-Pascal

pascal@mcneel.com

RSS

Translate

© 2013   Created by McNeel Admin.

Badges  |  Report an Issue  |  Terms of Service