<?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: graphic hotspot length + rotation in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/graphic-hotspot-length-rotation/m-p/267098#M3326</link>
    <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;The problem with an angle and length is you can add the length into the angle stretchy hotspot, but you can add the angle into the length stretchy hotspot.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Wouldn't you just add a ROT before your length hotspot that references the rotation hotspot?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
    <pubDate>Thu, 06 Dec 2018 04:11:41 GMT</pubDate>
    <dc:creator>Lingwisyer</dc:creator>
    <dc:date>2018-12-06T04:11:41Z</dc:date>
    <item>
      <title>graphic hotspot length + rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/graphic-hotspot-length-rotation/m-p/267096#M3324</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I would like a graphic hotspot that can extend in one direction and also rotate around the base.&lt;BR /&gt;
&lt;BR /&gt;
Is there any way that I can achieve this with one hotspot?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Dec 2018 11:15:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/graphic-hotspot-length-rotation/m-p/267096#M3324</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2018-12-05T11:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: graphic hotspot length + rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/graphic-hotspot-length-rotation/m-p/267097#M3325</link>
      <description>I don't think this is possible - but if I am wrong please let me know.&lt;BR /&gt;
&lt;BR /&gt;
You can stretch two lengths with what appears to be one hotspot by adding the x-length in the y stretchy hotspot and the y-length in the x stretchy hotspot.&lt;BR /&gt;
The problem with an angle and length is you can add the length into the angle stretchy hotspot, but you can add the angle into the length stretchy hotspot.&lt;BR /&gt;
At least that is the way I see it.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 06 Dec 2018 02:46:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/graphic-hotspot-length-rotation/m-p/267097#M3325</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-12-06T02:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: graphic hotspot length + rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/graphic-hotspot-length-rotation/m-p/267098#M3326</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;The problem with an angle and length is you can add the length into the angle stretchy hotspot, but you can add the angle into the length stretchy hotspot.&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Wouldn't you just add a ROT before your length hotspot that references the rotation hotspot?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Thu, 06 Dec 2018 04:11:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/graphic-hotspot-length-rotation/m-p/267098#M3326</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2018-12-06T04:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: graphic hotspot length + rotation</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/graphic-hotspot-length-rotation/m-p/267099#M3327</link>
      <description>&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
Wouldn't you just add a ROT before your length hotspot that references the rotation hotspot?
&lt;/BLOCKQUOTE&gt;

That is the problem.&lt;BR /&gt;
The length hotspot can not reference the rotation.&lt;BR /&gt;
&lt;BR /&gt;
Try this - works fine as two hotspots.&lt;BR /&gt;
Create a 'length' and 'angle' parameter&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 0,0, 	HSID&lt;BR /&gt;
HSID=HSID+1											!increase ID for next hotspot&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 0,0,HSID,angle,6												!centre !!512 flag for clockwise rotation&lt;BR /&gt;
HSID=HSID+1																!increase ID for next hotspot&lt;BR /&gt;
HOTSPOT2 (length-off_angle_hs),0,HSID,angle,4+128						!base&lt;BR /&gt;
HSID=HSID+1																!increase ID for next hotspot&lt;BR /&gt;
HOTSPOT2 (&lt;FONT color="#FF0000"&gt;length*0.9&lt;/FONT&gt;)*COS(angle),(&lt;FONT color="#FF0000"&gt;length*0.9&lt;/FONT&gt;)*SIN(angle),HSID,angle,5	!stretchy hotspot&lt;BR /&gt;
HSID=HSID+1																!increase ID for next hotspot&lt;BR /&gt;
&lt;BR /&gt;
ROT2 angle&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT2 0,0, 	HSID, length,1+128					!base&lt;BR /&gt;
HSID=HSID+1											!increase ID for next hotspot&lt;BR /&gt;
HOTSPOT2 length,0, 	HSID, length,2					!stretchy hotspot&lt;BR /&gt;
HSID=HSID+1											!increase ID for next hotspot&lt;BR /&gt;
HOTSPOT2 -1,0,	HSID, length,3						!reference&lt;BR /&gt;
HSID=HSID+1											!increase ID for next hotspot&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
LINE2 0,0,length,0&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Now change '&lt;FONT color="#FF0000"&gt;length*0.9&lt;/FONT&gt;' in the script to just '&lt;FONT color="#FF0000"&gt;length&lt;/FONT&gt;' or '&lt;FONT color="#FF0000"&gt;length *1.0&lt;/FONT&gt;'&lt;BR /&gt;
You can still stretch the length but not the angle.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 06 Dec 2018 05:18:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/graphic-hotspot-length-rotation/m-p/267099#M3327</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-12-06T05:18:08Z</dc:date>
    </item>
  </channel>
</rss>

