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!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    What Does "getSetVar" Do?

    Scheduled Pinned Locked Moved SketchyPhysics
    5 Posts 4 Posters 687 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
      Physicsguy1
      last edited by Gábor

      I never figured out how to use it.

      1 Reply Last reply
      Reply Quote 0
      • W
        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
          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
            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
              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement