sketchucation logo sketchucation
    • Login
    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

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 2 Posters 390 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jblively
      last edited by jblively

      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

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Sorry, what's sp?

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • J Offline
          jblively
          last edited by

          Sorry, SketchyPhysics

          1 Reply Last reply Reply Quote 0
          • J Offline
            jblively
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement