<?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: retrieve the ID of a Hotspot2 in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208167#M16570</link>
    <description>&lt;BLOCKQUOTE&gt;Piotr wrote:&lt;BR /&gt;What is the purpose of this?&lt;BR /&gt;
If editable poly - it is easier to manage with matrix parameters...&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr&lt;/BLOCKQUOTE&gt;

Not that.&lt;BR /&gt;
If I move the point 3 (in the drawing), can I know in the scripts, which point has been moved ?&lt;BR /&gt;
&lt;BR /&gt;
I write again my solution from start :&lt;BR /&gt;
&lt;BR /&gt;
------&lt;BR /&gt;
An editable poly, use parameter  P [4][x,y] &lt;BR /&gt;
at first parameter P2 [4][x,y] = parameter P [4][x,y] &lt;BR /&gt;
&lt;BR /&gt;
after hotspot2 moved, comparison P and P2 :&lt;BR /&gt;
FOR point = 1 TO 4&lt;BR /&gt;
	IF P [point] &lt;X&gt; ≠ P2 [point] &lt;X&gt; OR P [point] &lt;Y&gt; ≠ P2 [point] &lt;Y&gt;  THEN the point has been moved&lt;BR /&gt;
NEXT point&lt;BR /&gt;
&lt;BR /&gt;
and after P2 = P again :&lt;BR /&gt;
PARAMETERS P2 [pointMoved] &lt;X&gt; = P [pointMoved] &lt;X&gt;,  ditto y&lt;BR /&gt;
------&lt;BR /&gt;
&lt;BR /&gt;
it works, but it is long. Is there another way?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/X&gt;&lt;/X&gt;&lt;/Y&gt;&lt;/Y&gt;&lt;/X&gt;&lt;/X&gt;</description>
    <pubDate>Sat, 26 Nov 2011 10:14:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-11-26T10:14:01Z</dc:date>
    <item>
      <title>retrieve the ID of a Hotspot2</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208164#M16567</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
I would like to know if it is possible to know the ID of a hotspot2 moved in 2D. Here, the point 3 in the drawing.&lt;BR /&gt;
&lt;IMG src="http://illimmo.free.fr/essais/GDL02.jpg" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I can do it with :&lt;BR /&gt;
parameter P [3] [x,y]&lt;BR /&gt;
parameter P2 [3] [x,y]  = P [3] [x,y]&lt;BR /&gt;
&lt;BR /&gt;
script 2D : HOTSPOT2  P [3] &lt;X&gt;, P[3] &lt;Y&gt;,...&lt;BR /&gt;
If I move some points, I can compare P to P2 to know if P was moved.&lt;BR /&gt;
And after, PARAMETERS P2 [3] [x,y] = P [3] [x,y]&lt;BR /&gt;
&lt;BR /&gt;
But it is not practical, if there are lot of points.&lt;BR /&gt;
Thanks&lt;BR /&gt;
Do you have any other solution?&lt;/Y&gt;&lt;/X&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Nov 2011 17:38:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208164#M16567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-25T17:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve the ID of a Hotspot2</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208165#M16568</link>
      <description>up...&lt;BR /&gt;
&lt;BR /&gt;
I don't know if it is understandable. If not, please tell me.&lt;BR /&gt;
&lt;BR /&gt;
I want to retrieve the ID of the hotspot2 moved, or the number of the point moved in a parameter matrix (with many points).&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Sat, 26 Nov 2011 10:00:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208165#M16568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-26T10:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve the ID of a Hotspot2</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208166#M16569</link>
      <description>What is the purpose of this?&lt;BR /&gt;
If editable poly - it is easier to manage with matrix parameters...&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Sat, 26 Nov 2011 10:07:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208166#M16569</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2011-11-26T10:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve the ID of a Hotspot2</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208167#M16570</link>
      <description>&lt;BLOCKQUOTE&gt;Piotr wrote:&lt;BR /&gt;What is the purpose of this?&lt;BR /&gt;
If editable poly - it is easier to manage with matrix parameters...&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr&lt;/BLOCKQUOTE&gt;

Not that.&lt;BR /&gt;
If I move the point 3 (in the drawing), can I know in the scripts, which point has been moved ?&lt;BR /&gt;
&lt;BR /&gt;
I write again my solution from start :&lt;BR /&gt;
&lt;BR /&gt;
------&lt;BR /&gt;
An editable poly, use parameter  P [4][x,y] &lt;BR /&gt;
at first parameter P2 [4][x,y] = parameter P [4][x,y] &lt;BR /&gt;
&lt;BR /&gt;
after hotspot2 moved, comparison P and P2 :&lt;BR /&gt;
FOR point = 1 TO 4&lt;BR /&gt;
	IF P [point] &lt;X&gt; ≠ P2 [point] &lt;X&gt; OR P [point] &lt;Y&gt; ≠ P2 [point] &lt;Y&gt;  THEN the point has been moved&lt;BR /&gt;
NEXT point&lt;BR /&gt;
&lt;BR /&gt;
and after P2 = P again :&lt;BR /&gt;
PARAMETERS P2 [pointMoved] &lt;X&gt; = P [pointMoved] &lt;X&gt;,  ditto y&lt;BR /&gt;
------&lt;BR /&gt;
&lt;BR /&gt;
it works, but it is long. Is there another way?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/X&gt;&lt;/X&gt;&lt;/Y&gt;&lt;/Y&gt;&lt;/X&gt;&lt;/X&gt;</description>
      <pubDate>Sat, 26 Nov 2011 10:14:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208167#M16570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-26T10:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve the ID of a Hotspot2</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208168#M16571</link>
      <description>Why not put the original coords to temporary matrix, than compare the temporary with the coords - the result can be the number of point moved by last move?&lt;BR /&gt;
A lot of compares (assuming that poly is long) but can be automated&lt;BR /&gt;
&lt;BR /&gt;
Remember the all coords in one matrix parameter (coords &lt;N&gt;&lt;M&gt; - eg. n-point no, m with 2 positions for x and y and maybe z),&lt;BR /&gt;
You can get the matrix size so You can define the loop&lt;BR /&gt;
&lt;BR /&gt;
if the MODPAR of your coords parameter occure - You can start compare...&lt;BR /&gt;
Hotspot mooving would triger so.&lt;BR /&gt;
&lt;BR /&gt;
Again - what You are trying to achieve with the point no?&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr&lt;/M&gt;&lt;/N&gt;</description>
      <pubDate>Sat, 26 Nov 2011 19:02:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208168#M16571</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2011-11-26T19:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve the ID of a Hotspot2</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208169#M16572</link>
      <description>&lt;BLOCKQUOTE&gt;Piotr wrote:&lt;BR /&gt;
&lt;BR /&gt;
Again - what You are trying to achieve with the point no?&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr&lt;/BLOCKQUOTE&gt;

I make a wall object for landscape, garden with slope… with z point (hotspot 3D) for each corner, with straight and curves… (I don't understand why Graphisoft did not invent a wall tool to which one can define different heights).&lt;BR /&gt;
In 2D, I can add points and move them.&lt;BR /&gt;
&lt;BR /&gt;
I want to know the number of point moved, for example when I move a hotspot2 to curve the path between two points…&lt;BR /&gt;
If there is no other solution, i'll use this solution with temporary matrix.&lt;BR /&gt;
Thanks</description>
      <pubDate>Sat, 26 Nov 2011 23:26:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208169#M16572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-26T23:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve the ID of a Hotspot2</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208170#M16573</link>
      <description>To make the curve of a poly segment: add another matrix parameter: "bulge"  - for all segments. Than if "bulge"&lt;N&gt; changes from 0 than the poly segment will change from straight to curve, You have to calculate the arc from start and end of the segment and bulge to the circle arc in position.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr&lt;/N&gt;</description>
      <pubDate>Mon, 28 Nov 2011 18:02:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208170#M16573</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2011-11-28T18:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve the ID of a Hotspot2</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208171#M16574</link>
      <description>&lt;BLOCKQUOTE&gt;Piotr wrote:&lt;BR /&gt;To make the curve of a poly segment: add another matrix parameter: "bulge"  - for all segments. Than if "bulge"&lt;N&gt; changes from 0 than the poly segment will change from straight to curve, You have to calculate the arc from start and end of the segment and bulge to the circle arc in position.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr&lt;/N&gt;&lt;/BLOCKQUOTE&gt;

Yes, I do like that, thanks again.</description>
      <pubDate>Mon, 28 Nov 2011 19:51:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/retrieve-the-ID-of-a-Hotspot2/m-p/208171#M16574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-28T19:51:27Z</dc:date>
    </item>
  </channel>
</rss>

