<?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: Random parameters in Doors and Window in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63187#M33501</link>
    <description>I understand that certain parts of your modules revert to a default when placed...... ??&lt;BR /&gt;
&lt;BR /&gt;
If you need a solution now instead of waiting for new setting from HQ, I wonder if saving the parts in question set as you need with new names and substiuting them in the module would solve the problem.  ?</description>
    <pubDate>Thu, 17 Aug 2006 18:39:45 GMT</pubDate>
    <dc:creator>Dwight</dc:creator>
    <dc:date>2006-08-17T18:39:45Z</dc:date>
    <item>
      <title>Random parameters in Doors and Window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63186#M33500</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I don't know if its possible, but I wanted the shutters and panels of my windows within the hotlinked modules to open randomly in my project... Its annoying to see all of them closed or open in my renders...  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_mad.gif" style="display : inline;" /&gt; &lt;BR /&gt;
BTW It would be great if Graphisoft create this feature to all library parts, isn't it?  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:46:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63186#M33500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T10:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Random parameters in Doors and Window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63187#M33501</link>
      <description>I understand that certain parts of your modules revert to a default when placed...... ??&lt;BR /&gt;
&lt;BR /&gt;
If you need a solution now instead of waiting for new setting from HQ, I wonder if saving the parts in question set as you need with new names and substiuting them in the module would solve the problem.  ?</description>
      <pubDate>Thu, 17 Aug 2006 18:39:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63187#M33501</guid>
      <dc:creator>Dwight</dc:creator>
      <dc:date>2006-08-17T18:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Random parameters in Doors and Window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63188#M33502</link>
      <description>Hi Dwight,&lt;BR /&gt;
&lt;BR /&gt;
I started to try a gdl solution... and then I came with this piece of code to put in the master script of the door or window:&lt;BR /&gt;
&lt;BR /&gt;
IF RNDOPEN THEN&lt;BR /&gt;
	openrand=INT(RND(10))&lt;BR /&gt;
	PARAMETERS gs_open_3D=90*NOT(openrand&amp;gt;=4)&lt;BR /&gt;
	PARAMETERS gs_shut_open=1*(openrand&amp;gt;=4)&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
I created a boolean variable (RNDOPEN) to control the randomness...&lt;BR /&gt;
I've made some tests with modules and it works!  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
What do you think?</description>
      <pubDate>Thu, 17 Aug 2006 19:54:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63188#M33502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-17T19:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Random parameters in Doors and Window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63189#M33503</link>
      <description>You mean it works in the module itself, but does not work when the module is inserted?&lt;BR /&gt;
&lt;BR /&gt;
Try Merge and see if it happens then. Save under a different name of course ...&lt;BR /&gt;
&lt;BR /&gt;
What are your modules? Whole buildings or flats/rooms?&lt;BR /&gt;
&lt;BR /&gt;
Are you using MOD or PLN?</description>
      <pubDate>Fri, 18 Aug 2006 06:42:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63189#M33503</guid>
      <dc:creator>Djordje</dc:creator>
      <dc:date>2006-08-18T06:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Random parameters in Doors and Window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63190#M33504</link>
      <description>Each time you go to the settings dialog or you change the window by a moveable hotspot the opening is changed. If this is OK for you. Well done.</description>
      <pubDate>Fri, 18 Aug 2006 06:47:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63190#M33504</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-08-18T06:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Random parameters in Doors and Window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63191#M33505</link>
      <description>Hi Djordje and F.Beister,
&lt;BLOCKQUOTE&gt;Djordje wrote:&lt;BR /&gt;What are your modules? Whole buildings or flats/rooms?&lt;BR /&gt;
Are you using MOD or PLN?&lt;/BLOCKQUOTE&gt;
I'm using modules (MOD) for hotel rooms... They seem to work pretty fine every time I copy or insert another module...  Now I can get windows open randomly within the instances of a single module  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; 
&lt;BLOCKQUOTE&gt;F. wrote:&lt;BR /&gt;Well done.&lt;/BLOCKQUOTE&gt;
Coming from a GDL Master as you are is always a great honor. Thank you!</description>
      <pubDate>Fri, 18 Aug 2006 10:34:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63191#M33505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-18T10:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Random parameters in Doors and Window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63192#M33506</link>
      <description>&lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I say "Well done", because you don't change gs_shut_open and gs_open every time the script runs to a random value, but only in the moment you do changes in the window settings. The random value is effective only in the moment PARAMETERS works and that's only in the moment GLOB_SCRIPT_TYPE=5 (and some other minor circumstances), means you are in the settings dialog or dragging a hotspot. This bewares of flickering of the openings in different views or animations.&lt;BR /&gt;
&lt;BR /&gt;
One could use instead of RND a mixture of "random" parameters of the object as GUID, Position, Elevation, Rotation of the wall. But I think your way is pretty good.</description>
      <pubDate>Fri, 18 Aug 2006 11:37:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63192#M33506</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-08-18T11:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Random parameters in Doors and Window</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63193#M33507</link>
      <description>&lt;BLOCKQUOTE&gt;F. wrote:&lt;BR /&gt;The random value is effective only in the moment PARAMETERS works and that's only in the moment GLOB_SCRIPT_TYPE=5 (and some other minor circumstances), means you are in the settings dialog or dragging a hotspot. This bewares of flickering of the openings in different views or animations.&lt;/BLOCKQUOTE&gt;
I didn't know that  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt;  I guess its what they call "The luck of the newbie"  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
BTW... I'm developing the idea by controling the probability of a "Closed window" in the randomness. So I created an integer variable named RNDPROB for it. Here it goes:&lt;BR /&gt;
&lt;BR /&gt;
Parameters Script:&lt;BR /&gt;
VALUES "RNDPROB" RANGE [0,10]&lt;BR /&gt;
&lt;BR /&gt;
Master Script:&lt;BR /&gt;
IF RNDOPEN THEN&lt;BR /&gt;
	OPENRAND=INT(RND(10))&lt;BR /&gt;
	PARAMETERS gs_open_3D=90*NOT(OPENRAND&amp;gt;=RNDPROB)&lt;BR /&gt;
	PARAMETERS gs_shut_open=1*(OPENRAND&amp;gt;=RNDPROB)&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
Sorry for the unformated code  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_redface.gif" style="display : inline;" /&gt;</description>
      <pubDate>Fri, 18 Aug 2006 14:31:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Random-parameters-in-Doors-and-Window/m-p/63193#M33507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-18T14:31:01Z</dc:date>
    </item>
  </channel>
</rss>

