<?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: GLOB_WORLD_ORIGO_OFFSET always returns Zero in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235127#M3951</link>
    <description>Hey Barry, I know. I'm using it in the 2D script. &lt;BR /&gt;
There is even an example code in the reference manual:&lt;BR /&gt;

&lt;PRE&gt;add2 -GLOB_WORLD_ORIGO_OFFSET_X-SYMB_POS_X, -GLOB_WORLD_ORIGO_OFFSET_X-SYMB_POS_Y
line2 -0.1, 0.0, 0.1, 0.0
LINE2 0.0, -0.1, 0.0, 0.1
hotspot2 0.0, 0.0, 1
text2 0, 0, "( 0.00 ; 0.00 )"
text2 0, 0.5, "World Origin"
del top

if abs(GLOB_WORLD_ORIGO_OFFSET_X) &amp;gt; 0.01 or\
    abs(GLOB_WORLD_ORIGO_OFFSET_Y) &amp;gt; 0.01 then
   ! THIS WILL NEVER BE EXECUTED
    add2 - SYMB_POS_X, - SYMB_POS_Y
    line2 -0.1, 0.0, 0.1, 0.0
    line2 0.0, -0.1, 0.0, 0.1
    hotspot2 0.0, 0.0, 2
    text2 0, 0, "(" + str(GLOB_WORLD_ORIGO_OFFSET_X, 9, 4) + "; " + str(GLOB_WORLD_ORIGO_OFFSET_Y, 9, 4) + " )"
    text2 0, 0.5, "Virtual Origin"
    del top
endif

if abs(GLOB_WORLD_ORIGO_OFFSET_X + SYMB_POS_X) &amp;gt; 0.01 or\
    abs(GLOB_WORLD_ORIGO_OFFSET_Y + SYMB_POS_Y) &amp;gt; 0.01 then
    line2 -0.1, 0.0, 0.1, 0.0
    line2 0.0, -0.1, 0.0, 0.1
    hotspot2 0.0, 0.0, 3
    text2 0, 0, "(" + str(GLOB_WORLD_ORIGO_OFFSET_X + SYMB_POS_X, 9, 4) + "; " + str(GLOB_WORLD_ORIGO_OFFSET_Y + SYMB_POS_Y, 9, 4) + " )"
    text2 0, 0.5, "Object Placement"
endif
&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Jan 2021 09:11:32 GMT</pubDate>
    <dc:creator>runxel</dc:creator>
    <dc:date>2021-01-08T09:11:32Z</dc:date>
    <item>
      <title>GLOB_WORLD_ORIGO_OFFSET always returns Zero</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235125#M3949</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hey there, found another bug:&lt;BR /&gt;GLOB_WORLD_ORIGO_OFFSET_X (and _Y) always return 0 (zero).&lt;BR /&gt;&lt;BR /&gt;Tested with AC 23 and 24.&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 11:32:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235125#M3949</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-09-14T11:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_WORLD_ORIGO_OFFSET always returns Zero</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235126#M3950</link>
      <description>&lt;BLOCKQUOTE&gt;runxel wrote:&lt;BR /&gt;
Hey there, found another bug:&lt;BR /&gt;
GLOB_WORLD_ORIGO_OFFSET_X (and _Y) always return 0 (zero).&lt;BR /&gt;
&lt;BR /&gt;
Tested with AC 23 and 24.
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Where are you using it?&lt;BR /&gt;
It doesn't work in Parameter (Master) script.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 08 Jan 2021 00:25:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235126#M3950</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-01-08T00:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_WORLD_ORIGO_OFFSET always returns Zero</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235127#M3951</link>
      <description>Hey Barry, I know. I'm using it in the 2D script. &lt;BR /&gt;
There is even an example code in the reference manual:&lt;BR /&gt;

&lt;PRE&gt;add2 -GLOB_WORLD_ORIGO_OFFSET_X-SYMB_POS_X, -GLOB_WORLD_ORIGO_OFFSET_X-SYMB_POS_Y
line2 -0.1, 0.0, 0.1, 0.0
LINE2 0.0, -0.1, 0.0, 0.1
hotspot2 0.0, 0.0, 1
text2 0, 0, "( 0.00 ; 0.00 )"
text2 0, 0.5, "World Origin"
del top

if abs(GLOB_WORLD_ORIGO_OFFSET_X) &amp;gt; 0.01 or\
    abs(GLOB_WORLD_ORIGO_OFFSET_Y) &amp;gt; 0.01 then
   ! THIS WILL NEVER BE EXECUTED
    add2 - SYMB_POS_X, - SYMB_POS_Y
    line2 -0.1, 0.0, 0.1, 0.0
    line2 0.0, -0.1, 0.0, 0.1
    hotspot2 0.0, 0.0, 2
    text2 0, 0, "(" + str(GLOB_WORLD_ORIGO_OFFSET_X, 9, 4) + "; " + str(GLOB_WORLD_ORIGO_OFFSET_Y, 9, 4) + " )"
    text2 0, 0.5, "Virtual Origin"
    del top
endif

if abs(GLOB_WORLD_ORIGO_OFFSET_X + SYMB_POS_X) &amp;gt; 0.01 or\
    abs(GLOB_WORLD_ORIGO_OFFSET_Y + SYMB_POS_Y) &amp;gt; 0.01 then
    line2 -0.1, 0.0, 0.1, 0.0
    line2 0.0, -0.1, 0.0, 0.1
    hotspot2 0.0, 0.0, 3
    text2 0, 0, "(" + str(GLOB_WORLD_ORIGO_OFFSET_X + SYMB_POS_X, 9, 4) + "; " + str(GLOB_WORLD_ORIGO_OFFSET_Y + SYMB_POS_Y, 9, 4) + " )"
    text2 0, 0.5, "Object Placement"
endif
&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Jan 2021 09:11:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235127#M3951</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-01-08T09:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_WORLD_ORIGO_OFFSET always returns Zero</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235128#M3952</link>
      <description>I found that ....
&lt;PRE&gt;if abs(GLOB_WORLD_ORIGO_OFFSET_X) &amp;gt; 0.01 or\
    abs(GLOB_WORLD_ORIGO_OFFSET_Y) &amp;gt; 0.01 then&lt;/PRE&gt;

needs to be ...&lt;BR /&gt;

&lt;PRE&gt;if abs(GLOB_WORLD_ORIGO_OFFSET_X) &amp;gt; 0.01 or abs(GLOB_WORLD_ORIGO_OFFSET_Y) &amp;gt; 0.01 then&lt;/PRE&gt;

All on one line and the "/" removed after the OR&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 11 Jan 2021 02:15:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235128#M3952</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-01-11T02:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_WORLD_ORIGO_OFFSET always returns Zero</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235129#M3953</link>
      <description>I couldn't reproduce that in AC24 build 3022.&lt;BR /&gt;
This offset is only recalculated when a file is opened, so it might look it isn't working with a moved object.&lt;BR /&gt;
First move the object far away from the origin, save the file, re-open it, and the extra hotspot will be visible.</description>
      <pubDate>Mon, 11 Jan 2021 08:15:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235129#M3953</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2021-01-11T08:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: GLOB_WORLD_ORIGO_OFFSET always returns Zero</title>
      <link>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235130#M3954</link>
      <description>&lt;BLOCKQUOTE&gt;Peter wrote:&lt;BR /&gt;
This offset is &lt;B&gt;only recalculated when a file is opened&lt;/B&gt;, so it might look it isn't working with a moved object.&lt;BR /&gt;
First move the object far away from the origin, save the file, re-open it, and the extra hotspot will be visible.
&lt;/BLOCKQUOTE&gt;

THAT was the missing piece of information...  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;  &lt;BR /&gt;
Sorry for the confusion and thanks to Péter!&lt;BR /&gt;
&lt;BR /&gt;
It becomes quite obvious when you think about it, but man, sometimes the easiest things are the hardest. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_redface.gif" style="display : inline;" /&gt;</description>
      <pubDate>Mon, 11 Jan 2021 16:08:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GLOB-WORLD-ORIGO-OFFSET-always-returns-Zero/m-p/235130#M3954</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-01-11T16:08:18Z</dc:date>
    </item>
  </channel>
</rss>

