GDL
About building parametric objects with GDL.
SOLVED!

Moving editable hotspots angled working plane

jc4d
Expert

Hello,

I have a simple rectangle with couple of editable hotspots in 2D, the problem I have is when I drag them in floor plan there is a weird angle working plane. Although the hotspot works as it should be, it doesn't look right when moving it. What could be causing this?

jc4d_0-1649938785664.png

2D Script:

!!========================== HOTSPOT MODULE WIDTH
HOTSPOT2 0, 0, unID, Width, 1+1024
unID = unID+1
HOTSPOT2 Width, 0, unID, Width, 2
unID = unID+1
HOTSPOT2 -1, 0, unID, Width, 3+1024
unID = unID+1
!!========================== HOTSPOT MODULE DEPTH
HOTSPOT2 0, 0, unID, Depth, 1+128
unID = unID+1
HOTSPOT2 Width/2, Depth, unID, Depth, 2
unID = unID+1
HOTSPOT2 0, -1, unID, Depth, 3+128
unID = unID+1

RECT2 0,0, Width, Depth

 

Master:

unID = 1

 

Parameter:

VALUES "Width", 0.6, 0.9
VALUES "Depth", 0.3, 0.4, 0.5, 0.6

 

Juan.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
jc4d
Expert

Right after asking the question I found the problem.

I had to add the same Width/2 on the other hotspots that controls the depth, like this:

!!========================== HOTSPOT MODULE DEPTH
HOTSPOT2 Width/2, 0, unID, Depth, 1+128
unID = unID+1
HOTSPOT2 Width/2, Depth, unID, Depth, 2
unID = unID+1
HOTSPOT2 Width/2, -1, unID, Depth, 3+128
unID = unID+1

View solution in original post

1 REPLY 1
Solution
jc4d
Expert

Right after asking the question I found the problem.

I had to add the same Width/2 on the other hotspots that controls the depth, like this:

!!========================== HOTSPOT MODULE DEPTH
HOTSPOT2 Width/2, 0, unID, Depth, 1+128
unID = unID+1
HOTSPOT2 Width/2, Depth, unID, Depth, 2
unID = unID+1
HOTSPOT2 Width/2, -1, unID, Depth, 3+128
unID = unID+1

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!