<?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: failing to get part of this script to run ONCE! in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131128#M16747</link>
    <description>Thanks Erich, But I don't see it yet.&lt;BR /&gt;
&lt;BR /&gt;
It looks to me like your random line generator for the 2d clothes representation runs every time.&lt;BR /&gt;
&lt;BR /&gt;
An equivalent to my situation would be if you then introduced dynamic hotspots to allow user editing of the 2d clothes lines.  If your random routine keeps running it would not allow a successful user edit - my problem. How do you get  it to do the first run of random generation and then allow user editing?</description>
    <pubDate>Tue, 21 Jun 2011 04:19:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-21T04:19:34Z</dc:date>
    <item>
      <title>failing to get part of this script to run ONCE!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131126#M16745</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Ok so I'm new to this but it CAN'T be this hard!&lt;BR /&gt;
My object is an external cladding screen consisting of a steel frame and automatically generated (random within user set parameters) vertical timber slats on the outside.&lt;BR /&gt;
&lt;BR /&gt;
I have the graphical editing working so that I can stretch the frame and more slats generate - nice.  Now I have created dynamic hotspots for users to edit individual slats.  They show up ok but moving them generates no result BECAUSE it is constantly recalculating the slat positions (Funny how they all stay the same when I've used a RND function to generate them!... another time). So I've  introduced a variable called Regen which when = 0 will run the slat calculation and put a line in the slat calculation which makes Regen = 1, thinking that this will stop the calculation running.  &lt;BR /&gt;
It refuses to work.  Regen is somehow reset to zero on each attempted edit so the dynamic hotspots have no effect.&lt;BR /&gt;
&lt;BR /&gt;
Yes Regen is uninitialized.&lt;BR /&gt;
&lt;BR /&gt;
I must be missing something basic.  Any help?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Jun 2011 03:39:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131126#M16745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-21T03:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: failing to get part of this script to run ONCE!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131127#M16746</link>
      <description>Take a look at how I handle the lines for the hangers in the simple closet object here. I think this will resolve your issue.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://web.me.com/karpenglish/RabbitHole/BLOG/BLOG.html" target="_blank"&gt;Rabbit Hole&lt;/A&gt;</description>
      <pubDate>Tue, 21 Jun 2011 04:03:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131127#M16746</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2011-06-21T04:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: failing to get part of this script to run ONCE!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131128#M16747</link>
      <description>Thanks Erich, But I don't see it yet.&lt;BR /&gt;
&lt;BR /&gt;
It looks to me like your random line generator for the 2d clothes representation runs every time.&lt;BR /&gt;
&lt;BR /&gt;
An equivalent to my situation would be if you then introduced dynamic hotspots to allow user editing of the 2d clothes lines.  If your random routine keeps running it would not allow a successful user edit - my problem. How do you get  it to do the first run of random generation and then allow user editing?</description>
      <pubDate>Tue, 21 Jun 2011 04:19:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131128#M16747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-21T04:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: failing to get part of this script to run ONCE!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131129#M16748</link>
      <description>&lt;BLOCKQUOTE&gt;Angry wrote:&lt;BR /&gt;I've  introduced a variable called Regen which when = 0 will run the slat calculation and put a line in the slat calculation which makes Regen = 1, thinking that this will stop the calculation running.  &lt;BR /&gt;
It refuses to work.  Regen is somehow reset to zero on each attempted edit so the dynamic hotspots have no effect.&lt;/BLOCKQUOTE&gt;
When you set &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Regen&lt;E&gt;&lt;/E&gt; to 1, do you also update the object parameter, e.g.&lt;PRE&gt;parameters regen = 1&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jun 2011 08:43:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131129#M16748</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-06-21T08:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: failing to get part of this script to run ONCE!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131130#M16749</link>
      <description>Thanks Ralph,&lt;BR /&gt;
&lt;BR /&gt;
I am using the "parameters Regen = 1" statement &lt;BR /&gt;
&lt;BR /&gt;
The code looks like this:&lt;BR /&gt;
(3d script)&lt;BR /&gt;
&lt;BR /&gt;
-------------------&lt;BR /&gt;
If Regen = 0 then&lt;BR /&gt;
  gosub 2000 ! recalculate slat lengths&lt;BR /&gt;
  Regen = 1&lt;BR /&gt;
  Parameters Regen = 1&lt;BR /&gt;
endif&lt;BR /&gt;
-------------------&lt;BR /&gt;
 &lt;BR /&gt;
Perhaps the 'parameters' instruction has a limitation on which script it works in?</description>
      <pubDate>Tue, 28 Jun 2011 07:39:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131130#M16749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-28T07:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: failing to get part of this script to run ONCE!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131131#M16750</link>
      <description>&lt;BLOCKQUOTE&gt;Angry wrote:&lt;BR /&gt;I am using the "parameters Regen = 1" statement &lt;BR /&gt;
Perhaps the 'parameters' instruction has a limitation on which script it works in?&lt;/BLOCKQUOTE&gt;
Yes, it does. It will only take effect during some kind of editing operation, i.e. when the use is changing the settings or stretching in 2D/3D.</description>
      <pubDate>Tue, 28 Jun 2011 07:42:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131131#M16750</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-06-28T07:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: failing to get part of this script to run ONCE!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131132#M16751</link>
      <description>&lt;BLOCKQUOTE&gt;Angry wrote:&lt;BR /&gt; &lt;BR /&gt;
Perhaps the 'parameters' instruction has a limitation on which script it works in?&lt;/BLOCKQUOTE&gt;

Yes it will only work in the Parameter or Master scripts - not the 2D or 3D scripts.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 28 Jun 2011 08:34:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131132#M16751</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2011-06-28T08:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: failing to get part of this script to run ONCE!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131133#M16752</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Angry wrote:&lt;BR /&gt; &lt;BR /&gt;
Perhaps the 'parameters' instruction has a limitation on which script it works in?&lt;/BLOCKQUOTE&gt;Yes it will only work in the Parameter or Master scripts - not the 2D or 3D scripts.&lt;/BLOCKQUOTE&gt;
Not quite true. You &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;can&lt;E&gt;&lt;/E&gt; put a parameters statement in the Master script, but it will only work when an editing operation has occurred. Editing is the crucial ingredient for a parameters statement to work, e.g. the Master script also runs when the object is displayed in 2D or 3D but parameter statements in that context will have no effect.</description>
      <pubDate>Sat, 09 Jul 2011 18:37:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131133#M16752</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-07-09T18:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: failing to get part of this script to run ONCE!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131134#M16753</link>
      <description>Follow-up:&lt;BR /&gt;
It was working all along!!&lt;BR /&gt;
The issues were:&lt;BR /&gt;
The PRINT alert I had in the Parameter script to tell me the global-modpar had been detected didn't work - seems PRINT will not work in the parameter script. &lt;BR /&gt;
And ACs static RND results were giving exactly the same 'random' numbers for my slat lengths!! (the results are only new when you place a new instance if the object). Got my own 'random' function now. &lt;BR /&gt;
So the whole thing was working, just not changing or giving me my print alert!&lt;BR /&gt;
So that's all fixed. Now on to the next vexing problem with the dynamic hotspots re-setting all my array values to zero?? - new post time.</description>
      <pubDate>Wed, 07 Sep 2011 10:16:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/failing-to-get-part-of-this-script-to-run-ONCE/m-p/131134#M16753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-07T10:16:48Z</dc:date>
    </item>
  </channel>
</rss>

