Calling Ruby Function from SketchyPhysics
-
Hey Guys,
I can't seem to find it anywhere...
What's the syntax to call a Ruby function from within SP, like from the onTouch area?
Thanks
Joe
-
Sorry, what's sp?
-
Sorry, SketchyPhysics
-
@jblively said:
Hey Guys,
I can't seem to find it anywhere...
What's the syntax to call a Ruby function from within SP, like from the onTouch area?
Thanks
Joe
For others who might be looking:
It's very easy syntax, in the blue sketchyphysics boxes in the UI, just put
my_rubyfunction();
Although, if you use a UI.messagebox in the called routine, it seems to crash sketchup everytime...but everything else seems to work.
Joe
Advertisement