<?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 Hotspot rotation in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377762#M1148</link>
    <description>&lt;P&gt;Gdl manual is under pdf help. It has the information on hotspots&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 12:36:06 GMT</pubDate>
    <dc:creator>SenecaDesignLLC</dc:creator>
    <dc:date>2023-04-25T12:36:06Z</dc:date>
    <item>
      <title>GDL Hotspot rotation</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377750#M1147</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I have recently started out with GDL scripting and try to improve step by step by editing a general collection of 2D furniture objects. So far I managed to work with simple commands like Glob Scale and different varients of the "IF" command.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The next step would be to modify my objects so it is possible to move and rotate different components via hotspots. I added two screnshots to clarify what my intentions are.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone hint me to some pointers or commands on how to achieve these modifications?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/56403i66423C6282DDDF97/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Chair Move.PNG" title="Chair Move.PNG" /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/56404i042E96BCF941AEAC/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Chair Rotate.PNG" title="Chair Rotate.PNG" /&gt;</description>
      <pubDate>Tue, 23 May 2023 14:34:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377750#M1147</guid>
      <dc:creator>NWA</dc:creator>
      <dc:date>2023-05-23T14:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Hotspot rotation</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377762#M1148</link>
      <description>&lt;P&gt;Gdl manual is under pdf help. It has the information on hotspots&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 12:36:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377762#M1148</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2023-04-25T12:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Hotspot rotation</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377763#M1149</link>
      <description>&lt;P&gt;Thank you for your suggestion. I already looked the general GDL manual up but still I couldn't figure it out. Graphisoft provides some tutorials (like this one:&amp;nbsp;&lt;A href="https://gdl.graphisoft.com/gdl-basics/hotspots-graphical-editing" target="_blank"&gt;https://gdl.graphisoft.com/gdl-basics/hotspots-graphical-editing&lt;/A&gt;) yet I'm not able to understand the overall concept of the hotspot function. Like how can I apply the Hotspot rotation to for example a whole object, like the chair in my screenshot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 12:51:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377763#M1149</guid>
      <dc:creator>NWA</dc:creator>
      <dc:date>2023-04-25T12:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Hotspot rotation</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377787#M1150</link>
      <description>&lt;P&gt;ok, what you need to do is create a variable of distance in parameter for example "movex" then add a line in the script before draw the object something like "add2 movex,0" , and create the hotspot dynamic (pink one) to move it on the screen&lt;/P&gt;&lt;P&gt;hotspot2 0,0,1,movex, 1+128&amp;nbsp; !1 is for base point and 128 is for hide it&lt;/P&gt;&lt;P&gt;hotspot2 -1,0,2,movex,3 !3 this reference create a vector always oposite where you will move&lt;/P&gt;&lt;P&gt;hotspot2 movex,0,3,movex,2&amp;nbsp; !is will be the pink dot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 15:08:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377787#M1150</guid>
      <dc:creator>Jorge_Arreguin</dc:creator>
      <dc:date>2023-04-25T15:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Hotspot rotation</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377791#M1151</link>
      <description>&lt;P&gt;for rotation create a angle variable in Parameters with the name turnZ&lt;/P&gt;&lt;P&gt;hotspot2 0,0,4,turnZ,6+128&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; !this is the rotation center hide&lt;/P&gt;&lt;P&gt;hotspot2 1,0,5,turnZ, 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;!this is base point where star your rotation&lt;/P&gt;&lt;P&gt;hotspot2 0.9*cos(turnZ), 0.9*sin(turnZ),6,turnZ,5&amp;nbsp; &amp;nbsp; !this is the moving angle&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 15:18:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377791#M1151</guid>
      <dc:creator>Jorge_Arreguin</dc:creator>
      <dc:date>2023-04-25T15:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Hotspot rotation</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377828#M1152</link>
      <description>&lt;P&gt;Google&lt;/P&gt;
&lt;P&gt;gdl cookbook david nicholson cole&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is the version 3.1 PDF and large parts of the 4.0 that were made available by Nicholson Cole himself. The print book if you find it anywhere is a great resource too for your first months/years with GDL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The sections you are looking for specifically are the two “Graphical Hotspots!” in 4.0. In case it helps with the PDF search, the file names are&lt;/P&gt;
&lt;P&gt;CB4_150_G_HotspotIntro.pdf&lt;/P&gt;
&lt;P&gt;CB4_160_GHS_examples.pdf&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 01:52:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Hotspot-rotation/m-p/377828#M1152</guid>
      <dc:creator>Ignacio Azpiazu</dc:creator>
      <dc:date>2023-04-26T01:52:15Z</dc:date>
    </item>
  </channel>
</rss>

