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!
    đź«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    What Does "getSetVar" Do?

    Scheduled Pinned Locked Moved SketchyPhysics
    5 Posts 4 Posters 555 Views 4 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.
    • P Offline
      Physicsguy1
      last edited by Gábor

      I never figured out how to use it.

      1 Reply Last reply Reply Quote 0
      • W Offline
        Wacov
        last edited by

        It retrieves and sets a var at the same time. It retrieves the value that you set, so:

        getSetVar("foo",1) = 1
        

        http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

        1 Reply Last reply Reply Quote 0
        • S Offline
          Sgt.A.Johnson
          last edited by

          @wacov said:

          It retrieves and sets a var at the same time. It retrieves the value that you set, so:

          getSetVar("foo",1) = 1
          

          An easier way to understand it i find is it retrieves the var and then resets it. So have an ontouch box that sets the variable to 1 normally with getvar it retrieves the variable and thats it. getsetvar when the box isn't being touched it resets the variable to 0. that probably made no sense but still

          1 Reply Last reply Reply Quote 0
          • W Offline
            Wacov
            last edited by

            It can be useful for other stuff; I used it alot in the toggle script.

            http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

            1 Reply Last reply Reply Quote 0
            • M Offline
              MrPlanet
              last edited by

              I think a setVar controlled magnet uses it to reset itself.

              I reject your reality and substitute my own.

              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