Having an issue with dynamic hotspots
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-07-07 02:03 PM
2017-07-07
02:03 PM
HOTSPOT -mirror_width/2, 0.024, 1.1,HSID+1, mirror_width, 1+128 !base HSID = HSID+1 HOTSPOT -1, 0, 0, HSID+1, mirror_width, 3 !reference HSID = HSID+1 HOTSPOT mirror_width/2, 0.024, 1.1 ,HSID+1, mirror_width, 2 !moveableI can't get the hotspot to move accurately with the dimension shown in the picture. I know that it's because it is using -mirror_width/2 which is changing but I do not know an alternative option which is what I'm after.
Thanks
ArchiCAD 23
Windows 10
Windows 10
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-07-07 02:59 PM
2017-07-07
02:59 PM
I don't currently have ArchiCad open to confirm, but I would try this:
HOTSPOT -mirror_width/2, 0.024, 1.1, HSID, mirror_width, 1+128: HSID = HSID+1 !base HOTSPOT mirror_width/2, 0.024, 1.1 ,HSID, mirror_width, 2: HSID = HSID+1 !moveable HOTSPOT 1, 0.024, 1.1, HSID, mirror_width, 3: HSID = HSID+1 !reference
Erich
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-07-07 03:15 PM
2017-07-07
03:15 PM
Erich wrote:It sadly behaves the same way as my original. Thanks for the reply.
I don't currently have ArchiCad open to confirm, but I would try this:
HOTSPOT -mirror_width/2, 0.024, 1.1, HSID, mirror_width, 1+128: HSID = HSID+1 !base HOTSPOT mirror_width/2, 0.024, 1.1 ,HSID, mirror_width, 2: HSID = HSID+1 !moveable HOTSPOT 1, 0.024, 1.1, HSID, mirror_width, 3: HSID = HSID+1 !reference
ArchiCAD 23
Windows 10
Windows 10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-07-08 07:00 PM
2017-07-08
07:00 PM
In Your code - You are asking the Parameter mirror_width.
If You calculate within the sequence - archicad "gets puzzeld".
You dont have to calculate in the sequence!
You wrote: mirror_width/2
With /2 You get not working results on the asked parameter
Just try it without any calculation.
If You calculate within the sequence - archicad "gets puzzeld".
You dont have to calculate in the sequence!
You wrote: mirror_width/2
With /2 You get not working results on the asked parameter
Just try it without any calculation.
AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-07-08 07:01 PM
2017-07-08
07:01 PM
sorry for the mass of copied texts - something happend during klicking on the apply-Button. How can i delete this?
AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-07-10 03:53 AM
2017-07-10
03:53 AM
Hmooslechner wrote:You should be able to delete your last post so long as nobody else has replied to it - the delete "X" is next to the 'Edit' button.
sorry for the mass of copied texts - something happend during klicking on the apply-Button. How can i delete this?
If someone has replied then one of the moderators can delete the multiple posts.
I find the forum runs a bit slow sometimes so after pressing 'Submit' you get the feeling nothing has happened. So you press it again and again.
Finally it works and you end up with multiple post.
Sometimes it can take up to a minute to respond (so I am finding).
EDIT: for example this post took about 25 seconds after hitting the submit button before it finally went.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-07-10 09:06 AM
2017-07-10
09:06 AM
Try this:
2 parameters: mirror_width,mirror_widthper2
Parameters script: parameters mirror_width=mirror_widthper2*2
2d script:
HSID=1
HOTSPOT2 0, 0.024, HSID, mirror_widthper2, 1+128 ,mirror_width :HSID=HSID+1 !base
HOTSPOT2 mirror_widthper2, 0.024, HSID, mirror_widthper2, 2 ,mirror_width :HSID=HSID+1 !moveable
HOTSPOT2 -1, 0.024, HSID, mirror_widthper2, 3 ,mirror_width :HSID=HSID+1 !reference
HOTSPOT2 0, 0.024, HSID, mirror_widthper2, 1+128 ,mirror_width :HSID=HSID+1 !base
HOTSPOT2 -mirror_widthper2, 0.024, HSID, mirror_widthper2, 2 ,mirror_width :HSID=HSID+1 !moveable
HOTSPOT2 1, 0.024, HSID, mirror_widthper2, 3 ,mirror_width :HSID=HSID+1 !reference
hotspot2 0,0
line2 mirror_width*.5,0,-mirror_width*.5,0
2 parameters: mirror_width,mirror_widthper2
Parameters script: parameters mirror_width=mirror_widthper2*2
2d script:
HSID=1
HOTSPOT2 0, 0.024, HSID, mirror_widthper2, 1+128 ,mirror_width :HSID=HSID+1 !base
HOTSPOT2 mirror_widthper2, 0.024, HSID, mirror_widthper2, 2 ,mirror_width :HSID=HSID+1 !moveable
HOTSPOT2 -1, 0.024, HSID, mirror_widthper2, 3 ,mirror_width :HSID=HSID+1 !reference
HOTSPOT2 0, 0.024, HSID, mirror_widthper2, 1+128 ,mirror_width :HSID=HSID+1 !base
HOTSPOT2 -mirror_widthper2, 0.024, HSID, mirror_widthper2, 2 ,mirror_width :HSID=HSID+1 !moveable
HOTSPOT2 1, 0.024, HSID, mirror_widthper2, 3 ,mirror_width :HSID=HSID+1 !reference
hotspot2 0,0
line2 mirror_width*.5,0,-mirror_width*.5,0
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-07-10 10:55 AM
2017-07-10
10:55 AM
Pertti wrote:This part is fine if you just want to stretch the mirror with the hotspot.
Parameters script: parameters mirror_width=mirror_widthper2*2
But if you want to type a figure into the tracker then it won't work because you are still actually adjusting the half width while displaying the value of the full with on the hotspot.
But to get around that just add this to the parameter script instead of what you had.
if GLOB_MODPAR_NAME = "mirror_widthper2" then mirror_width = mirror_widthper2*2 PARAMETERS mirror_width = mirror_width endif if GLOB_MODPAR_NAME = "mirror_width" then mirror_widthper2 = mirror_width*0.5 PARAMETERS mirror_widthper2 = mirror_widthper2 endifThis way whether you adjust the half width or the full width one will adjust the other.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11