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?
-
I never figured out how to use it.
-
It retrieves and sets a var at the same time. It retrieves the value that you set, so:
getSetVar("foo",1) = 1 -
@wacov said:
It retrieves and sets a var at the same time. It retrieves the value that you set, so:
getSetVar("foo",1) = 1An 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
-
It can be useful for other stuff; I used it alot in the toggle script.
-
I think a setVar controlled magnet uses it to reset itself.
Advertisement