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

HOTSPOTS

Anonymous
Not applicable
Greetings All

I am new to GDL but enjoy it immensely.

The physical building is coming along well but I struggle with making the HOTSPOT do what I want them to do. Especially the rotate.

Can some one please explain the theory behind them?? How to make them work??

Regards
2 REPLIES 2
David Maudlin
Rockstar
YellowToes:

You will be more likely to get an answer if you post what you are specifically trying to accomplish (images help), whether it is in 2D or 3D, and the code you have tried so far. Also, you should add your ArchiCAD version to your signature.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
Yes GDL is quite addictive. Hotspots are really cool for adjusting parameter values graphically. For a 2D angle you could use a script like this:

!Hotspots to control an angle parameter angleParameter
!about a center xC, yC. The hotspot is positioned at radius R.
hotspot2 xC, yC, iHotspot + 1, angleParameter, 6
hotspot2 xC + R*cos(angleParameter), yC + R*sin(angleParameter),
iHotspot + 2, angleParameter, 5
hotspot2 xC + 1, yC, iHotspot + 3, angleParameter, 4
iHotspot = iHotspot + 3

You can also move a hotspot in 2 dimensions at once.

BTW hotspots are discussed in more detail in the GDL Handbook.