<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GDL - 2 hotspots edit 2 mutually connected parameters in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-2-hotspots-edit-2-mutually-connected-parameters/m-p/356965#M1272</link>
    <description>&lt;P&gt;Hi there, I have just started delving into the world of GDL. I have encountered a problem and would like to ask our experts.&lt;/P&gt;&lt;P&gt;Here is what I want to achieve:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have scripted a 2d line (we will call it Main Line) and another 2d line perpendicular to the first one (Perpendicular Line). I want to move the Perpendicular Line along the MAin Line using hotspots. I want to be able to input the position of the Perpendicular Line with 2 methods (parameters) that are mutually connected.&lt;/P&gt;&lt;P&gt;The first parameter is the x position along the Main Line. The second parameter is the % along the Main Line. For example, if Main Line is 10m, and I want to position the Perpendicular Line at 3/4 of the Main Line, I can input in the first parameter 7,5m or in the second parameter 0,75. Either one I choose to change, I want it to automatically update the second one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to accomplish this in the objects settings dialog, but not through hotspots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The hotspots problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Changing the x coordinate along the Main Line, is done. Changing the % value is challenging and I was not able to make it work. It works if the Main Line is max 1m long; if it is not, the % value will change only if my mouse is between the origin of the Main Line and 1m from it (as I have defined a range of (0.0, 1.0) for the % parameter).&lt;/P&gt;&lt;P&gt;Then comes the problme of applying both these hotspots in the object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have any tips?&lt;/P&gt;</description>
    <pubDate>Sat, 24 Sep 2022 20:28:06 GMT</pubDate>
    <dc:creator>Darwuhr</dc:creator>
    <dc:date>2022-09-24T20:28:06Z</dc:date>
    <item>
      <title>GDL - 2 hotspots edit 2 mutually connected parameters</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-2-hotspots-edit-2-mutually-connected-parameters/m-p/356965#M1272</link>
      <description>&lt;P&gt;Hi there, I have just started delving into the world of GDL. I have encountered a problem and would like to ask our experts.&lt;/P&gt;&lt;P&gt;Here is what I want to achieve:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have scripted a 2d line (we will call it Main Line) and another 2d line perpendicular to the first one (Perpendicular Line). I want to move the Perpendicular Line along the MAin Line using hotspots. I want to be able to input the position of the Perpendicular Line with 2 methods (parameters) that are mutually connected.&lt;/P&gt;&lt;P&gt;The first parameter is the x position along the Main Line. The second parameter is the % along the Main Line. For example, if Main Line is 10m, and I want to position the Perpendicular Line at 3/4 of the Main Line, I can input in the first parameter 7,5m or in the second parameter 0,75. Either one I choose to change, I want it to automatically update the second one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to accomplish this in the objects settings dialog, but not through hotspots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The hotspots problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Changing the x coordinate along the Main Line, is done. Changing the % value is challenging and I was not able to make it work. It works if the Main Line is max 1m long; if it is not, the % value will change only if my mouse is between the origin of the Main Line and 1m from it (as I have defined a range of (0.0, 1.0) for the % parameter).&lt;/P&gt;&lt;P&gt;Then comes the problme of applying both these hotspots in the object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have any tips?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 20:28:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-2-hotspots-edit-2-mutually-connected-parameters/m-p/356965#M1272</guid>
      <dc:creator>Darwuhr</dc:creator>
      <dc:date>2022-09-24T20:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - 2 hotspots edit 2 mutually connected parameters</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-2-hotspots-edit-2-mutually-connected-parameters/m-p/356971#M1273</link>
      <description>&lt;P&gt;You need two parameters 1. hotspot distance 2. % length. You then need to have two statements in the parameter script like ...&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF GLOB_MODPAR_NAME = "Parameter1"  THEN
Parameter2 = Parameter1 !include your conversion calculation for "Parameter1" to percent or distance 
PARAMETERS Parameter2 = Parameter2. !These parameter names are the same
ENDIF&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 22:31:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-2-hotspots-edit-2-mutually-connected-parameters/m-p/356971#M1273</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2022-09-24T22:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - 2 hotspots edit 2 mutually connected parameters</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-2-hotspots-edit-2-mutually-connected-parameters/m-p/357219#M1274</link>
      <description>&lt;P&gt;If I understand your question well, then you would like to create one purple hotspot, and by moving it it should edit both parameters?&lt;/P&gt;&lt;P&gt;If yes, then I'm afraid it is not possible. Even if you define two moving hotspots on the same route/place then only one of the params can be edited by moving.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to decide which param should be edited and optionally you can place the other param's hotspot at a different location (e.g. one hotspot at the connection of the two lines and the other one at the other end of the perpendicular line).&lt;/P&gt;&lt;P&gt;Also you have to "bind" the two parameters together as DGSketcher wrote above, to be able to react if the other param is edited.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 14:24:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-2-hotspots-edit-2-mutually-connected-parameters/m-p/357219#M1274</guid>
      <dc:creator>lszatmary</dc:creator>
      <dc:date>2022-09-27T14:24:36Z</dc:date>
    </item>
  </channel>
</rss>

