HOTSPOTS
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-03-25 10:40 AM
2009-03-25
10:40 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-03-25 01:15 PM
2009-03-25
01:15 PM
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
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
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-03-27 04:41 AM
2009-03-27
04:41 AM
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.
!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.