Problem scaling element with variable

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
MClementson
Posts: 10
Joined: Fri Aug 25, 2017 11:48 am

Thu Aug 27, 2020 6:25 pm

I'm designing a custom skin and I want to let users resize the icons to suit their requirements. I have an exposed text variable called opt_iconSize , default value is "1.0"
I've added an action on the icon element as follows Node Changed | Set Element Scale | $(*opt_iconSize)/$(*opt_iconSize) | _Self. Sadly this doesn't work, it seems to set the scale value to 0 as the icon disappears entirely. If I change the variable references to actual values, eg "0.5/0.5", in expert mode then I get the expected outcome. So it's a problem with the variable references.

Any thoughts?
Post Reply