Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
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