<?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 Re: GDL - get value before parameter change in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-get-value-before-parameter-change/m-p/356985#M1277</link>
    <description>&lt;P&gt;Could you explain what a shadow parameter is and how to apply one?&lt;/P&gt;</description>
    <pubDate>Sun, 25 Sep 2022 06:26:23 GMT</pubDate>
    <dc:creator>Darwuhr</dc:creator>
    <dc:date>2022-09-25T06:26:23Z</dc:date>
    <item>
      <title>GDL - get value before parameter change</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-get-value-before-parameter-change/m-p/356967#M1275</link>
      <description>&lt;P&gt;If I change the vakue of a paramter, either via objects settings dialog or editable hotspot, can I get the value of the parameter before the change? Example I change the parameter x1 via editable hotspot. I want to store the value of x1 before the change so I can do some extra needed calculations. So I will have the x1 param with the new value and another param that will have the value of x1 before the change.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 21:17:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-get-value-before-parameter-change/m-p/356967#M1275</guid>
      <dc:creator>Darwuhr</dc:creator>
      <dc:date>2022-09-24T21:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - get value before parameter change</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-get-value-before-parameter-change/m-p/356975#M1276</link>
      <description>&lt;P&gt;Use a shadow parameter for that.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 23:45:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-get-value-before-parameter-change/m-p/356975#M1276</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2022-09-24T23:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - get value before parameter change</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-get-value-before-parameter-change/m-p/356985#M1277</link>
      <description>&lt;P&gt;Could you explain what a shadow parameter is and how to apply one?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 06:26:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-get-value-before-parameter-change/m-p/356985#M1277</guid>
      <dc:creator>Darwuhr</dc:creator>
      <dc:date>2022-09-25T06:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: GDL - get value before parameter change</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-get-value-before-parameter-change/m-p/356996#M1278</link>
      <description>&lt;P&gt;It's called like that because you're &lt;EM&gt;shadowing&lt;/EM&gt; one parameter to another, invisible one (for the user).&lt;/P&gt;&lt;P&gt;Just make two parameters for every parameter setting you'll need. One is hidden for the user ('&lt;FONT color="#FF0000"&gt;X&lt;/FONT&gt;' it), the other one is the main input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pseudocode:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;! ::Master or Param script::
if GLOB_MODPAR_NAME = "myparam" then
	! do your calculations
	...
	! finally mirror the current value to the shadow parameter:
	myshadowparam = myparam
endif

! … and set the parameter value
parameters 	myshadowparam = myshadowparam&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 10:02:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-get-value-before-parameter-change/m-p/356996#M1278</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2022-09-25T10:02:16Z</dc:date>
    </item>
  </channel>
</rss>

