<?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 Sending a value from 3D Script to parameter in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Sending-a-value-from-3D-Script-to-parameter/m-p/674214#M51476</link>
    <description>&lt;P class="p1"&gt;I’m creating a custom object that is made up of a certain number of elements. This quantity is calculated inside the 3D script using a WHILE…ENDWHILE loop. Inside this loop, I have a counter variable that is incremented by 1 each time the loop runs, so at the end I know how many elements were generated. What I would like to do is expose this quantity to the user by writing it into a parameter.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;However, since the Parameter Script runs before the 3D script, the counter value is not yet available there. The PARAMETERS command in the Parameter Script gives me an “uninitialized variable” error message.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;What is the recommended workflow if you want to expose a value to the user that depends on calculations normally done in the 3D script, without duplicating all the same loops and calculations in the Master Script?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Mac Apple Silicon Sequoia&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Aug 2025 18:26:49 GMT</pubDate>
    <dc:creator>Durval</dc:creator>
    <dc:date>2025-08-21T18:26:49Z</dc:date>
    <item>
      <title>Sending a value from 3D Script to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Sending-a-value-from-3D-Script-to-parameter/m-p/674214#M51476</link>
      <description>&lt;P class="p1"&gt;I’m creating a custom object that is made up of a certain number of elements. This quantity is calculated inside the 3D script using a WHILE…ENDWHILE loop. Inside this loop, I have a counter variable that is incremented by 1 each time the loop runs, so at the end I know how many elements were generated. What I would like to do is expose this quantity to the user by writing it into a parameter.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;However, since the Parameter Script runs before the 3D script, the counter value is not yet available there. The PARAMETERS command in the Parameter Script gives me an “uninitialized variable” error message.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;What is the recommended workflow if you want to expose a value to the user that depends on calculations normally done in the 3D script, without duplicating all the same loops and calculations in the Master Script?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Mac Apple Silicon Sequoia&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 18:26:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Sending-a-value-from-3D-Script-to-parameter/m-p/674214#M51476</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2025-08-21T18:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sending a value from 3D Script to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Sending-a-value-from-3D-Script-to-parameter/m-p/674237#M51478</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/1391"&gt;@Durval&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P class="p1"&gt;What is the recommended workflow if you want to expose a value to the user that depends on calculations normally done in the 3D script, without duplicating all the same loops and calculations in the Master Script?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You will need to do the calculations in the master script.&lt;/P&gt;
&lt;P&gt;So you will need&amp;nbsp;the While/Endwhile in the master script that does just the count, and another While/Endwhile in the 3D that does just the elements but not the count.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any calculations done in the master script are available to all scripts, so you could also use it for the 2D.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can actually place the 3D elements in the master script as well and have nothing in the 3D script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 01:32:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Sending-a-value-from-3D-Script-to-parameter/m-p/674237#M51478</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2025-08-22T01:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sending a value from 3D Script to parameter</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Sending-a-value-from-3D-Script-to-parameter/m-p/674244#M51479</link>
      <description>&lt;P&gt;If you decide to put 3D elements in the&amp;nbsp;&lt;EM&gt;Master Script,&lt;/EM&gt; add a&amp;nbsp;&lt;STRONG&gt;GLOB_VIEW_TYPE&lt;/STRONG&gt; or what ever the command that superseded it was to limit when it is run.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 06:16:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Sending-a-value-from-3D-Script-to-parameter/m-p/674244#M51479</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2025-08-22T06:16:10Z</dc:date>
    </item>
  </channel>
</rss>

