<?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: Hotspot/Node to adjust a parameter?? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Hotspot-Node-to-adjust-a-parameter/m-p/284560#M5591</link>
    <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;What sort of variable - length, boolean (on/off), value list?&lt;BR /&gt;
&lt;BR /&gt;
Barry.&lt;/BLOCKQUOTE&gt; Length&lt;/BLOCKQUOTE&gt;

That is just a standard hotspot.&lt;BR /&gt;
Assuming you want the hotspot to stretch in the 'x' direction then you need the following code for 2D script and 3D script.&lt;BR /&gt;
'distance' is the parameter you want to stretch.&lt;BR /&gt;

&lt;PRE&gt;!!Stretchy x – 2D
HSID = HSID+1
hotspot2 0, 0,HSID, distance, 1+128		!base
HSID = HSID+1
hotspot2 -1, 0, HSID, distance, 3		!reference
HSID = HSID+1
hotspot2 distance, 0, HSID, distance, 2	!moveable


!!Stretchy x – 3D
HSID = HSID+1
HOTSPOT 0, 0, 0,HSID, distance, 1+128		!base
HSID = HSID+1
HOTSPOT -1, 0, 0, HSID, distance, 3			!reference
HSID = HSID+1
HOTSPOT distance, 0, 0,HSID, distance, 2		!moveable&lt;/PRE&gt;

&lt;BR /&gt;
You can use and ADD command before this code to position the hotspot or you can add the co-ordinates into the code.&lt;BR /&gt;
&lt;BR /&gt;
You can also use a ROT command before if you want the hotspot to stretch in a different direction (i.e. not along the x-axis). Or if you want to stretch along the y-axis it is just a matter of swapping the variable in the script to the 'y' co-ordinate - then you don't need the ROT.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My understanding of hotspots is as follows ...&lt;BR /&gt;
&lt;BR /&gt;
The BASE hotspot is the starting point from where you want to stretch the movable hotspot - where you want to measure from.&lt;BR /&gt;
The REFERENCE hotspot is the direction opposite to where you want to stretch.&lt;BR /&gt;
The MOVEABLE hotspot is the one you want to move and uses the variable you want to alter.&lt;BR /&gt;
&lt;BR /&gt;
They should all have unique IDs&lt;BR /&gt;
&lt;BR /&gt;
They all share the same parameter reference (the parameter you want to stretch)&lt;BR /&gt;
&lt;BR /&gt;
And they all have their own flag which nominate the type of hotspot they are (base, reference, moveable).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
There is a little more to them which you may be able to make sense on from the GDL reference or if you have more specific questions then ask here with examples of what you are trying to do.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Wed, 17 May 2017 01:56:05 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2017-05-17T01:56:05Z</dc:date>
    <item>
      <title>Hotspot/Node to adjust a parameter??</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Hotspot-Node-to-adjust-a-parameter/m-p/284557#M5588</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I am looking to add a hotspot/node to my object to make it so that the user can adjust a variable with it. Any help would be much appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 May 2017 15:27:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Hotspot-Node-to-adjust-a-parameter/m-p/284557#M5588</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-05-15T15:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hotspot/Node to adjust a parameter??</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Hotspot-Node-to-adjust-a-parameter/m-p/284558#M5589</link>
      <description>What sort of variable - length, boolean (on/off), value list?&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 16 May 2017 00:33:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Hotspot-Node-to-adjust-a-parameter/m-p/284558#M5589</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-05-16T00:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hotspot/Node to adjust a parameter??</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Hotspot-Node-to-adjust-a-parameter/m-p/284559#M5590</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;What sort of variable - length, boolean (on/off), value list?&lt;BR /&gt;
&lt;BR /&gt;
Barry.&lt;/BLOCKQUOTE&gt; Length</description>
      <pubDate>Tue, 16 May 2017 12:24:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Hotspot-Node-to-adjust-a-parameter/m-p/284559#M5590</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-05-16T12:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hotspot/Node to adjust a parameter??</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Hotspot-Node-to-adjust-a-parameter/m-p/284560#M5591</link>
      <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;What sort of variable - length, boolean (on/off), value list?&lt;BR /&gt;
&lt;BR /&gt;
Barry.&lt;/BLOCKQUOTE&gt; Length&lt;/BLOCKQUOTE&gt;

That is just a standard hotspot.&lt;BR /&gt;
Assuming you want the hotspot to stretch in the 'x' direction then you need the following code for 2D script and 3D script.&lt;BR /&gt;
'distance' is the parameter you want to stretch.&lt;BR /&gt;

&lt;PRE&gt;!!Stretchy x – 2D
HSID = HSID+1
hotspot2 0, 0,HSID, distance, 1+128		!base
HSID = HSID+1
hotspot2 -1, 0, HSID, distance, 3		!reference
HSID = HSID+1
hotspot2 distance, 0, HSID, distance, 2	!moveable


!!Stretchy x – 3D
HSID = HSID+1
HOTSPOT 0, 0, 0,HSID, distance, 1+128		!base
HSID = HSID+1
HOTSPOT -1, 0, 0, HSID, distance, 3			!reference
HSID = HSID+1
HOTSPOT distance, 0, 0,HSID, distance, 2		!moveable&lt;/PRE&gt;

&lt;BR /&gt;
You can use and ADD command before this code to position the hotspot or you can add the co-ordinates into the code.&lt;BR /&gt;
&lt;BR /&gt;
You can also use a ROT command before if you want the hotspot to stretch in a different direction (i.e. not along the x-axis). Or if you want to stretch along the y-axis it is just a matter of swapping the variable in the script to the 'y' co-ordinate - then you don't need the ROT.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My understanding of hotspots is as follows ...&lt;BR /&gt;
&lt;BR /&gt;
The BASE hotspot is the starting point from where you want to stretch the movable hotspot - where you want to measure from.&lt;BR /&gt;
The REFERENCE hotspot is the direction opposite to where you want to stretch.&lt;BR /&gt;
The MOVEABLE hotspot is the one you want to move and uses the variable you want to alter.&lt;BR /&gt;
&lt;BR /&gt;
They should all have unique IDs&lt;BR /&gt;
&lt;BR /&gt;
They all share the same parameter reference (the parameter you want to stretch)&lt;BR /&gt;
&lt;BR /&gt;
And they all have their own flag which nominate the type of hotspot they are (base, reference, moveable).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
There is a little more to them which you may be able to make sense on from the GDL reference or if you have more specific questions then ask here with examples of what you are trying to do.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 17 May 2017 01:56:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Hotspot-Node-to-adjust-a-parameter/m-p/284560#M5591</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-05-17T01:56:05Z</dc:date>
    </item>
  </channel>
</rss>

