<?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 Betreff: 2D Script value transferred to Master Script in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644361#M7274</link>
    <description>&lt;P class="p1"&gt;The scale you are requesting, as I understand, is controlled by &lt;SPAN class="s1"&gt;GLOB_SCALE&lt;/SPAN&gt;. This global variable is not allowed in the Parameter Script or the Master Script when it runs as a Parameter Script. Therefore, moving the relevant part of the 2D Script to the Master Script will not work if combined with a &lt;SPAN class="s1"&gt;VALUES&lt;/SPAN&gt; command. The reason is that &lt;SPAN class="s1"&gt;VALUES&lt;/SPAN&gt; is always executed as part of the Parameter Script, even if placed in the Master Script. (You can test it to confirm, but I believe it won’t work.)&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;The command &lt;SPAN class="s1"&gt;VALUE 'Hotspot_Y' RANGE (0, MaxHeight)&lt;/SPAN&gt; cannot work in the Parameter Script because it must use &lt;SPAN class="s1"&gt;VALUES&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;However, in your case, the &lt;SPAN class="s1"&gt;VALUES&lt;/SPAN&gt; command should work in both the Master Script and the Parameter Script.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2024 22:13:37 GMT</pubDate>
    <dc:creator>Jochen Suehlo</dc:creator>
    <dc:date>2024-12-20T22:13:37Z</dc:date>
    <item>
      <title>2D Script value transferred to Master Script</title>
      <link>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644357#M7273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a calculation that checks the current scale for the 2D Script. It calculates a max height based on the current scale.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;U&gt;2D Script:&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;MaxHeight = Val_A + VAL_B&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The height needs to limit the movement of a Hotspot using VALUES RANGE command. The VALUES RANGE command is placed in the Masterscript, but not in the 2D Script&amp;nbsp; as far as I know. But when I do this, the MaxHeight doesn't seem to register. I have also tried placing the following VALUE RANGE command in the parameters script without success.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;U&gt;Master Script:&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;VALUE 'Hotspot_Y' RANGE (0, MaxHeight)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to pass a result from the 2D script to the Master Script so I can limit the movement of the hotspot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas most welcome, Matt&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 21:10:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644357#M7273</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-12-20T21:10:45Z</dc:date>
    </item>
    <item>
      <title>Betreff: 2D Script value transferred to Master Script</title>
      <link>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644361#M7274</link>
      <description>&lt;P class="p1"&gt;The scale you are requesting, as I understand, is controlled by &lt;SPAN class="s1"&gt;GLOB_SCALE&lt;/SPAN&gt;. This global variable is not allowed in the Parameter Script or the Master Script when it runs as a Parameter Script. Therefore, moving the relevant part of the 2D Script to the Master Script will not work if combined with a &lt;SPAN class="s1"&gt;VALUES&lt;/SPAN&gt; command. The reason is that &lt;SPAN class="s1"&gt;VALUES&lt;/SPAN&gt; is always executed as part of the Parameter Script, even if placed in the Master Script. (You can test it to confirm, but I believe it won’t work.)&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;The command &lt;SPAN class="s1"&gt;VALUE 'Hotspot_Y' RANGE (0, MaxHeight)&lt;/SPAN&gt; cannot work in the Parameter Script because it must use &lt;SPAN class="s1"&gt;VALUES&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;However, in your case, the &lt;SPAN class="s1"&gt;VALUES&lt;/SPAN&gt; command should work in both the Master Script and the Parameter Script.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 22:13:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644361#M7274</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2024-12-20T22:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Script value transferred to Master Script</title>
      <link>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644364#M7275</link>
      <description>&lt;P&gt;Hi Jochen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oddly the VALUES command doesn't seem to limit in anyway the hotspot in Master or Parameter script. The 0 value nor the MaxHeight limits are not applied:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Master or Parameter Script&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;VALUES 'Hotspot_Y' RANGE (0, MaxHeight)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am wondering if only it is because the Master and Parameter scripts are run before the 2D scripts where the&amp;nbsp;GLOB_SCALE calculation resides. The MaxHeight value doesn't seem to be able to be called from the 2D Script, rendering the VALUES command null?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;2D Script&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;VAL_B =&amp;nbsp;GLOB_SCALE&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MaxHeight = Val_A + VAL_B&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there maybe someway to create a variable to pass the value through from within the &lt;U&gt;2D script&lt;/U&gt;&amp;nbsp;by adding:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;VAL_B =&amp;nbsp;GLOB_SCALE&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MaxHeight = Val_A + VAL_B&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;SPAN&gt;Var_MxHt =&amp;nbsp;MaxHeight&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then calling the&amp;nbsp;&lt;SPAN&gt;variable &lt;/SPAN&gt; in the &lt;U&gt;Master or Parameter Script&lt;/U&gt; with:&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;VALUES 'Hotspot_Y' RANGE (0, &lt;FONT color="#FF0000"&gt;Var_MxHt&lt;/FONT&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;It is most perplexing for me! &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;Kind regards, Matt&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 22:59:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644364#M7275</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-12-20T22:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Script value transferred to Master Script</title>
      <link>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644366#M7276</link>
      <description>&lt;P&gt;If you want to pm me we could chat over Google or something to solve things for you in real time.&amp;nbsp; I've been doing this for a few others here and there.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2024 01:10:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644366#M7276</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2024-12-21T01:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Script value transferred to Master Script</title>
      <link>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644370#M7277</link>
      <description>&lt;P&gt;In Parameter-Script the following works for me:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MaxHeight = B
VALUES 'Hotspot_Y' RANGE [0, MaxHeight]&lt;/LI-CODE&gt;
&lt;P&gt;together with the 2D-Script, the range of the Hotspot is limited to the values given by VALUES.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HOTSPOT2 	0, 	-0.1, 	htps, Hotspot_Y, 3	: htps = htps + 1		
HOTSPOT2 	0, 	0, 	htps, Hotspot_Y, 1 + 128: htps = htps + 1
HOTSPOT2 	0, 	Hotspot_Y, 	htps, Hotspot_Y, 2: htps = htps + 1		
RECT2 0, 0, A, Hotspot_Y&lt;/LI-CODE&gt;
&lt;P&gt;But the passing of the Maxheight-Value from 2D to ParamScript does not work and the limitations do not work correctly in 2D, when I declare the Maxheight-Value in Master oder Param.&lt;BR /&gt;My idea would be the follwing:&lt;BR /&gt;- create an own Library Global object where you set manually a variable for the scale. And use this variable in the object to calculate the Maxheight-Value.&lt;BR /&gt;- additional to the Scale, change the MVO-Settings for every view you create.&lt;BR /&gt;&lt;BR /&gt;Maybe Seneca will have a better solution, in which I will be interested as well.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2024 12:32:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644370#M7277</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2024-12-21T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: 2D Script value transferred to Master Script</title>
      <link>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644428#M7278</link>
      <description>&lt;P&gt;Hi Jochen,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your response and the idea of a Library Global object with a manual variable for scale. That is something I will investigate, a little more complex than I am used to but I have read about a Library Global object for other parameters so I am keen to try this in the New Year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wishing you a relaxed and great Christmas and holiday season! From Matt&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 21:02:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/2D-Script-value-transferred-to-Master-Script/m-p/644428#M7278</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-12-22T21:02:09Z</dc:date>
    </item>
  </channel>
</rss>

