<?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: Can't get Graphical Hotspots to work in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188932#M21648</link>
    <description>Cheers, but no luck - still doesn't let the arm change in width...</description>
    <pubDate>Fri, 12 Feb 2010 15:51:11 GMT</pubDate>
    <dc:creator>derekjackson</dc:creator>
    <dc:date>2010-02-12T15:51:11Z</dc:date>
    <item>
      <title>Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188930#M21646</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi, not sure why this isn't working. Trying to make an L shaped poly that lets me change the width of the 'L' arms, as opposed to the overall dimensions of the L. This is my 2D script:&lt;BR /&gt;

&lt;PRE&gt;line2 a,0,a,c
line2 a,c,d,c
line2 d,c,d,b
line2 d,b,0,b
line2 0,0,0,b

hotspot2 0,0
hotspot2 a,0


	hsid=hsid+1
	HOTSPOT2 (d+((a-d)/2)),0,	hsid,c,1+256
	hsid=hsid+1
	HOTSPOT2 (d+((a-d)/2)),c,	hsid,c,2+256
	hsid=hsid+1
	HOTSPOT2 0,1,	hsid,c,3+256
	
hotspot2 0,b

&lt;/PRE&gt;

I want the graphical hotspot to allow me to change the width of the table piece, but it doesn't seem to give me the option - I can just change the overall size of the table. (c &amp;amp; d are the width of the two arms).&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?!&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Feb 2010 11:01:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188930#M21646</guid>
      <dc:creator>derekjackson</dc:creator>
      <dc:date>2010-02-12T11:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188931#M21647</link>
      <description>line2 a,0,a,c&lt;BR /&gt;
line2 a,c,d,c&lt;BR /&gt;
line2 d,c,d,b&lt;BR /&gt;
line2 d,b,0,b&lt;BR /&gt;
line2 0,0,0,b&lt;BR /&gt;
&lt;BR /&gt;
hotspot2 0,0&lt;BR /&gt;
hotspot2 a,0&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
	hsid=hsid+1&lt;BR /&gt;
	HOTSPOT2 (d+((a-d)/2)),0,	hsid,c,1+256&lt;BR /&gt;
	hsid=hsid+1&lt;BR /&gt;
	HOTSPOT2 (d+((a-d)/2)),c,	hsid,c,2+256&lt;BR /&gt;
	hsid=hsid+1&lt;BR /&gt;
	&lt;FONT color="#FF0048"&gt;HOTSPOT2 (d+((a-d)/2)),-1,	hsid,c,3+256&lt;/FONT&gt;&lt;BR /&gt;
	&lt;BR /&gt;
hotspot2 0,b&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This should fix the problem. The value in the type 3 hotspot defines the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;negative&lt;E&gt;&lt;/E&gt; direction (opposite from the positive value of the variable). it also needs to align with the other two (AFAIK). In this case the X coordinate needs to match the other two since the variable is stretching parallel to the Y axis.</description>
      <pubDate>Fri, 12 Feb 2010 14:03:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188931#M21647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-12T14:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188932#M21648</link>
      <description>Cheers, but no luck - still doesn't let the arm change in width...</description>
      <pubDate>Fri, 12 Feb 2010 15:51:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188932#M21648</guid>
      <dc:creator>derekjackson</dc:creator>
      <dc:date>2010-02-12T15:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188933#M21649</link>
      <description>Try this&lt;BR /&gt;

&lt;PRE&gt;uid = 1
hotspot2 (d+((A-d)/2)),  0, uid, c, 1+128 : uid = uid+1    ! base
hotspot2 (d+((A-d)/2)), -1, uid, c, 3     : uid = uid+1    ! ref 
hotspot2 (d+((A-d)/2)),  c, uid, c, 2     : uid = uid+1    ! moving&lt;/PRE&gt;

Change status code 128 to 256, according to your needs. See GDL Guide.</description>
      <pubDate>Fri, 12 Feb 2010 20:13:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188933#M21649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-12T20:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188934#M21650</link>
      <description>Oliver,&lt;BR /&gt;
&lt;BR /&gt;
Just curious...I write my hotspots with the moving and reference lines switched from what you show. Like this:&lt;BR /&gt;

&lt;PRE&gt;hotspot2 (d+((A-d)/2)),  0, uid, c, 1+128 : uid = uid+1    ! base 
hotspot2 (d+((A-d)/2)),  c, uid, c, 2     : uid = uid+1    ! moving
hotspot2 (d+((A-d)/2)), -1, uid, c, 3    : uid = uid+1    ! ref &lt;/PRE&gt;

While I know this is not what is indicated in the GDL style guide (or whatever that document is called) it seems to work just fine and I prefer having the flags sequential. Do you know any reason why I should not do this or is it just a style issue?</description>
      <pubDate>Sat, 13 Feb 2010 02:05:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188934#M21650</guid>
      <dc:creator>Erich</dc:creator>
      <dc:date>2010-02-13T02:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188935#M21651</link>
      <description>&lt;BLOCKQUOTE&gt;Erich wrote:&lt;BR /&gt;While I know this is not what is indicated in the GDL style guide (or whatever that document is called) it seems to work just fine and I prefer having the flags sequential. Do you know any reason why I should not do this or is it just a style issue?&lt;/BLOCKQUOTE&gt;

Hi Erich,&lt;BR /&gt;
&lt;BR /&gt;
I have seen both ways (1, 2, 3 and 1, 3, 2) in GS scripts.&lt;BR /&gt;
It works the same, therefore I think the order doesn't matter. &lt;BR /&gt;
&lt;BR /&gt;
Just a question of preference. I find more convenient to indicate&lt;BR /&gt;
the vector from the reference hotspot before the moving hotspot.</description>
      <pubDate>Sat, 13 Feb 2010 08:13:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188935#M21651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-13T08:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188936#M21652</link>
      <description>Hmm, still not working. I'm sure what I'm after is quite simple (when you know how), so maybe I haven't been explaining what I'm after properly!! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I've attached a JPG showing the end result I need - The outer corner hotspots (essentially A &amp;amp; B) correctly stretch the overall lengths of the 'L' as any other basic object. I'm wanting to add a hotspot to vary the width of one of the arms - so moving the circled hotspot will change the width of the arm (C)&lt;BR /&gt;
&lt;BR /&gt;
I think I've got the hotspot in the right place, and the vector of movement is in the right axis, so how come I don't get the stretch option on the pet palette?</description>
      <pubDate>Mon, 15 Feb 2010 09:40:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188936#M21652</guid>
      <dc:creator>derekjackson</dc:creator>
      <dc:date>2010-02-15T09:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188937#M21653</link>
      <description>Just to check the obvious... Have you listed the C-parameter in your parameters window as a length-type parameter?</description>
      <pubDate>Mon, 15 Feb 2010 11:24:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188937#M21653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-15T11:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188938#M21654</link>
      <description>I hadn't. Now changed it to a length and the hotpots turn magenta and give me the stretch option. Unfortunately it still doesn't stretch - just moves the overall dimension as if I was affecting B instead...</description>
      <pubDate>Mon, 15 Feb 2010 11:30:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188938#M21654</guid>
      <dc:creator>derekjackson</dc:creator>
      <dc:date>2010-02-15T11:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188939#M21655</link>
      <description>Hmm.&lt;BR /&gt;
&lt;BR /&gt;
I've just copypasted your original script and replaced the hotspot definition part with Erich's snippet, and it seems to work just fine.&lt;BR /&gt;
&lt;BR /&gt;
My code looks like this:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;line2 a,0,a,c
line2 a,c,d,c
line2 d,c,d,b
line2 d,b,0,b
line2 0,0,0,b

hotspot2 0,0
hotspot2 a,0

hotspot2 (d+((A-d)/2)),  0, uid, c, 1+128 : uid = uid+1    ! base
hotspot2 (d+((A-d)/2)),  c, uid, c, 2     : uid = uid+1    ! moving
hotspot2 (d+((A-d)/2)), -1, uid, c, 3    : uid = uid+1    ! ref 
   
hotspot2 0,b 
&lt;/PRE&gt;

It's not yet the object your picture describes, but at least the c-parameter seems to stretch fine...</description>
      <pubDate>Mon, 15 Feb 2010 12:09:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188939#M21655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-15T12:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get Graphical Hotspots to work</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188940#M21656</link>
      <description>Not sure what was going on there but it seems to work now. Thanks for the help!!</description>
      <pubDate>Mon, 15 Feb 2010 12:13:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Can-t-get-Graphical-Hotspots-to-work/m-p/188940#M21656</guid>
      <dc:creator>derekjackson</dc:creator>
      <dc:date>2010-02-15T12:13:10Z</dc:date>
    </item>
  </channel>
</rss>

