License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…
2022-04-13 08:21 AM
Hello,
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'
On Master:
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
Juan.
Solved! Go to Solution.
2022-04-13 09:06 AM - edited 2022-04-13 09:06 AM
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
Barry.
2022-04-13 09:46 AM - edited 2022-04-13 10:34 AM
You could use Range and Step to do something along the lines of
VALUES "Height" range [1, 3] Step 1, 0.2
Ling.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
2022-04-13 09:06 AM - edited 2022-04-13 09:06 AM
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
Barry.
2022-04-13 09:14 AM - edited 2022-04-13 09:14 AM
Ohh, that easy, thank you. I need to take a break 😅
2022-04-13 09:16 AM
I hope is ok to ask another question here since it is somewhat related. If not the mods are free to move it to a new topic.
Is it possible to give a max and min lenght limits to the hotspot and define the movement steps?
Juan.
2022-04-13 09:46 AM - edited 2022-04-13 10:34 AM
You could use Range and Step to do something along the lines of
VALUES "Height" range [1, 3] Step 1, 0.2
Ling.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
2022-04-13 10:01 AM
Thank you, sadly I get an error:
Juan.
2022-04-13 10:34 AM
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.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
2022-04-13 10:58 AM
Fantastic, thank you 🙂