I would like to have a editable hotspot to move only by given values but obviously I get a numeric error when I check the script.
Is there a way to "limit" the hotspot's movement to the given values only?
Practical example 🙂
On the parameters tab I have this:
VALUES "Height", '1420', '1580', '1880', '2120', '2280', '2990'
unID = 1
On the 3D script
HOTSPOT 0,0,0, unID, Height, 1+128 unID = unID+1 HOTSPOT Height,0,0, unID, Height, 2 unID = unID+1 HOTSPOT -1,0,0, unID, Height, 3+128 unID = unID+1
Solved! Go to Solution.
The hotspot movement is a length, so your 'Height' parameter needs to be a 'length' type and not 'text' type.
The value list will be lengths in meters with not quotes ...
VALUES "Height", 1.420, 1.580, 1.880, 2.120, 2.280, 2.990
Probably bad syntax on my part. I have not used the values command with range and step before. Updated previous post with what I think is the correction. Had an extra comma.