<?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: CONTROL OBJECT ROTATION VIA GDL in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/CONTROL-OBJECT-ROTATION-VIA-GDL/m-p/277339#M4883</link>
    <description>&lt;PRE&gt;	! +1    : fragments index start from -6
	! -1e-6 : to avoid exactly 12

rng_open_DIM = INT(RND(13)-1e-6) + 1&lt;/PRE&gt;


&lt;PRE&gt;IF rng_open = 1 then
	gs_louvre_opening_angle = (gs_louvre_opening_angle_max - gs_louvre_opening_angle_min) / 12 * rng_open_dim + gs_louvre_opening_angle_min
endIF&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
I use those two lines in one of my window objects to randomise the lourvre rotation. You could try something similar. I am not sure which parameter you would have to update to change the floor plan rotation parameter you highlighted....&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
    <pubDate>Mon, 07 Sep 2020 01:56:11 GMT</pubDate>
    <dc:creator>Lingwisyer</dc:creator>
    <dc:date>2020-09-07T01:56:11Z</dc:date>
    <item>
      <title>CONTROL OBJECT ROTATION VIA GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/CONTROL-OBJECT-ROTATION-VIA-GDL/m-p/277338#M4882</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I want to control an objects rotation angle via GDL is it possible (ie i want to have a random rotation each time i place the object)&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/%5Battachment=0%5DARCHICAD_lHGjl0NDqp.jpg%5B/attachment%5D" border="0" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:44:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/CONTROL-OBJECT-ROTATION-VIA-GDL/m-p/277338#M4882</guid>
      <dc:creator>Nuge</dc:creator>
      <dc:date>2022-09-26T20:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: CONTROL OBJECT ROTATION VIA GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/CONTROL-OBJECT-ROTATION-VIA-GDL/m-p/277339#M4883</link>
      <description>&lt;PRE&gt;	! +1    : fragments index start from -6
	! -1e-6 : to avoid exactly 12

rng_open_DIM = INT(RND(13)-1e-6) + 1&lt;/PRE&gt;


&lt;PRE&gt;IF rng_open = 1 then
	gs_louvre_opening_angle = (gs_louvre_opening_angle_max - gs_louvre_opening_angle_min) / 12 * rng_open_dim + gs_louvre_opening_angle_min
endIF&lt;/PRE&gt;

&lt;BR /&gt;
&lt;BR /&gt;
I use those two lines in one of my window objects to randomise the lourvre rotation. You could try something similar. I am not sure which parameter you would have to update to change the floor plan rotation parameter you highlighted....&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Mon, 07 Sep 2020 01:56:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/CONTROL-OBJECT-ROTATION-VIA-GDL/m-p/277339#M4883</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2020-09-07T01:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: CONTROL OBJECT ROTATION VIA GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/CONTROL-OBJECT-ROTATION-VIA-GDL/m-p/277340#M4884</link>
      <description>Yes you can control the rotation of an object in 2D with the ROT2 command.&lt;BR /&gt;
Remember to make the same transformation in 3D with ROTx.&lt;BR /&gt;
&lt;BR /&gt;
You can generate random angles (with the RND command) but I think you will have to do this in the Master Script so the same value can be used in both the 2D &amp;amp; 3D scripts.&lt;BR /&gt;
&lt;BR /&gt;
I am not sure if the RND command generates truly random numbers or it repeats the same 'random' series every time it runs.&lt;BR /&gt;
Search here and I am sure you will find information on it.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: you will not actually be changing the symbol rotation that you image shows.&lt;BR /&gt;
You will still be placing the object with a 0° rotation - the script will add extra rotation.&lt;BR /&gt;
The value you show in you image can only be manipulated by the user at placement of the object, or via API (add-on) scripting.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 07 Sep 2020 01:57:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/CONTROL-OBJECT-ROTATION-VIA-GDL/m-p/277340#M4884</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2020-09-07T01:57:03Z</dc:date>
    </item>
  </channel>
</rss>

