We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Moveable Hotspot automatically jump back

Jochen Suehlo
Moderator
I try to make a script with a moveable hotspot, that shall jump back automatically.
It should behave like a bell button: push the hotspot forward, then an action happens (another Parameter is changed), after that the button should jump back in the zero position.

If I try to do it, either the button cannot be pressed, then no action happens or the buttons stays in a non zero position after pressing and parameter change and only a new GLOB_MODPAR_NAME could bring it back to zero.

Any ideas or experiences?
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
10 REPLIES 10
Karl Ottenstein
Moderator
ztaskai wrote:
2. Try to stretch a placed Armchair 01 from AC Library 13 to more than 2x2 meters. Then you'll see some triggering hotspots. (Sorry for the spoiler...)
Nice easter egg and example. "extra_backrest", huh? 😉 Just got a headache reading the code! Perhaps the most clever bit of GDL in the library... Nice touch of turning off the hotspots once the game is 'won', too.

K
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB