2018-11-08 12:06 PM - last edited on 2023-05-25 05:53 PM by Rubia Torres
Solved! Go to Solution.
2018-11-09 02:57 AM
unID=unID+1 HOTSPOT2 0, 0, unID, text_off 1+256 unID=unID+1 HOTSPOT2 0, -0.0001, unID, text_off, 3 unID=unID+1 HOTSPOT2 0, text_off, unID, text_off, 2
2018-11-09 02:57 AM
unID=unID+1 HOTSPOT2 0, 0, unID, text_off 1+256 unID=unID+1 HOTSPOT2 0, -0.0001, unID, text_off, 3 unID=unID+1 HOTSPOT2 0, text_off, unID, text_off, 2
2018-11-09 08:41 AM
Barry wrote:That was really creative! Not sure I want to edit all my objects in need though. Right now I have saved out a dummy model as pln in which I bluntly move the objects out into the corresponding zones. I'll save your gdl hack for later when there is more time.
It would be the default origin of the object.
What ever zone that origin is in will be the reported zone.
If you can edit the object you can trick it by adding a moveable hotspot that offsets your rail from that origin.
i.e. offsets the rail away from the door/wall - assuming the origin in on a point that fixes to the door/wall.
The problem is this will just move your rail away from the door/wall.
However you can add a value of 256 to the type 1 hotspot.
This will make the moving node stretchy on 2 directions.
One node will drag the rail away from the door (the origin), but the other will move the origin.
And because you are increasing the distance from the origin, the object will effectively stay in the same place.
This is a hotspot I use in an object that displays the name of the zone (see image).
I have used 'text_off' as the distance variable (parameter) but change it to what ever you want.
unID=unID+1 HOTSPOT2 0, 0, unID, text_off 1+256 unID=unID+1 HOTSPOT2 0, -0.0001, unID, text_off, 3 unID=unID+1 HOTSPOT2 0, text_off, unID, text_off, 2
Give an initial value for 'text_off' (say 200mm) so you can see the 2 hotspots.
It gets awkward if the value is zero as both hotspots will be on top of each other, and you have to move one out of the way to get to the one you want.
Use ADD2 text_off, 0 (or ADD2 0, text_off depending on the default rotation of your object) to move your object away from the origin.
When placing the object just don't use the origin hotspot, use one at the end of the rail to lock in on the door.
Now just stretch the hotspot into the zone you want.
Sorry if this doesn't make much sense.
Barry.