cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
GDL
About building parametric objects with GDL.
SOLVED!

Can hotspots of a called object be hidden?

BrentG
Newcomer

I have an object that calls another object in its 2D script. Is it possible to hide the hotspots generated by the called object since they aren't relevant to the parent object?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator

Yes.

In the object to be called, you must add boolean parameter to show/hide the hotspots.

Then contain the hotspot scripts in an IF/THEN statement based on that boolean parameter.

So now you can turn them on/off in that object at will.

You would set the default value for that parameter to show the hotspots, so you will see them if you place that actual object without calling it.

 

Now in the object that does the calling, you pass on the value to that parameter to turn off the hotspots.

 

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

View solution in original post

1 REPLY 1
Solution
Barry Kelly
Moderator

Yes.

In the object to be called, you must add boolean parameter to show/hide the hotspots.

Then contain the hotspot scripts in an IF/THEN statement based on that boolean parameter.

So now you can turn them on/off in that object at will.

You would set the default value for that parameter to show the hotspots, so you will see them if you place that actual object without calling it.

 

Now in the object that does the calling, you pass on the value to that parameter to turn off the hotspots.

 

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