<?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: Rotate 2D hotspots code into 3D? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/581954#M6111</link>
    <description>&lt;P&gt;Unfortunately no.&amp;nbsp;&lt;BR /&gt;Hotspots in 3D have to be coded with HOTSPOT x,y,z. They really just follow the same logic, just with the added z coord.&amp;nbsp;&lt;BR /&gt;You may however be able to do a rotx 90 to rotate your working plane and then just draw your hotspots with a 0 z coord.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Dec 2023 01:19:38 GMT</pubDate>
    <dc:creator>scottjm</dc:creator>
    <dc:date>2023-12-29T01:19:38Z</dc:date>
    <item>
      <title>Rotate 2D hotspots code into 3D?</title>
      <link>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/581945#M6109</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to copy 2D hotspots from the 2D script, paste them into the 3D script and add a ROTx beforehand to bring them into the z-axis?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of my objects is rotated in 3D by 90 degrees but the hotspots remain on the x,y plane when viewed in 3D. My hope is that something like a simple rotate command could apply to 2D hotspots as well? The complexity of HOTSPOT x,y,z is way high!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks, Matt&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:30:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/581945#M6109</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-09-26T11:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate 2D hotspots code into 3D?</title>
      <link>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/581954#M6111</link>
      <description>&lt;P&gt;Unfortunately no.&amp;nbsp;&lt;BR /&gt;Hotspots in 3D have to be coded with HOTSPOT x,y,z. They really just follow the same logic, just with the added z coord.&amp;nbsp;&lt;BR /&gt;You may however be able to do a rotx 90 to rotate your working plane and then just draw your hotspots with a 0 z coord.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 01:19:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/581954#M6111</guid>
      <dc:creator>scottjm</dc:creator>
      <dc:date>2023-12-29T01:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate 2D hotspots code into 3D?</title>
      <link>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/581974#M6112</link>
      <description>&lt;P&gt;Don't think that that works. Hotspots don't take the transformation stack into account i think.&lt;BR /&gt;&lt;BR /&gt;On the plus side after messing with the 3D hotspots once you automatically get 2D ones aswell.&lt;BR /&gt;&lt;BR /&gt;Here is my code which may make it easier since you only have to pass x,y,z to to the subroutine.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;!==========================================================
! creates Hotspots in 3D
!----------------------------------------------------------
!Input paramater: 
!	mypoint[ti][1], mypoint[ti][2],mypoint[ti][3]
!Output parameter : 
!	mypoint[ti][1], mypoint[ti][2],mypoint[ti][3]
!Remark:
!	set ti before calling sub
! 	Hotspots need to work directly on the parameter, variables don't seem to work
!==========================================================

"h_xyz":

!HOTSPOT for points_h[ti]
!HOTSPOT for X:

		id_hs = id_hs+1
	!Vector
	HOTSPOT -1,points_s[ti][2],points_s[ti][3],
		id_hs, points_s[ti][1],3
		id_hs = id_hs+1
	!Base
	HOTSPOT 0,points_s[ti][2],points_s[ti][3],
		id_hs, points_s[ti][1], 1+128 !Invisible
		id_hs = id_hs+1 
	!Move
	HOTSPOT points_s[ti][1],points_s[ti][2],points_s[ti][3],
		id_hs, points_s[ti][1], 2
		id_hs = id_hs+1 

!HOTSPOT for Y:

	!Vector
	HOTSPOT points_s[ti][1],-1,points_s[ti][3],
		id_hs,points_s[ti][2],3
		id_hs = id_hs+1
	!Base
	HOTSPOT points_s[ti][1],0,points_s[ti][3],
		id_hs,points_s[ti][2],1+128
		id_hs = id_hs+1 
	!Move
	HOTSPOT points_s[ti][1],points_s[ti][2],points_s[ti][3],
		id_hs,points_s[ti][2],2
		id_hs = id_hs+1

!HOTSPOT for Z:

	!Vector
	HOTSPOT points_s[ti][1],points_s[ti][2],-1,
		id_hs,points_s[ti][3],3
		id_hs = id_hs+1
	!Base
	HOTSPOT points_s[ti][1],points_s[ti][2],0,
		id_hs,points_s[ti][3],1+128
		id_hs = id_hs+1 
	!Move
	HOTSPOT points_s[ti][1],points_s[ti][2],points_s[ti][3],
		id_hs,points_s[ti][3],2
		id_hs = id_hs+1 

RETURN&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 09:27:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/581974#M6112</guid>
      <dc:creator>rudl</dc:creator>
      <dc:date>2023-12-29T09:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate 2D hotspots code into 3D?</title>
      <link>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/582141#M6117</link>
      <description>&lt;P&gt;The amount if trig I sometimes need because of the transformation stack being ignored is such a pain...&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2023 16:25:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/582141#M6117</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-12-30T16:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate 2D hotspots code into 3D?</title>
      <link>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/582250#M6118</link>
      <description>&lt;P&gt;Thank you Scott, that saved me a lot of time! Best regards, Matt&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 18:35:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/582250#M6118</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-01-01T18:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate 2D hotspots code into 3D?</title>
      <link>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/582251#M6119</link>
      <description>&lt;P&gt;Hi Rudl,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Okay that is cool! I didn't know the 3D Hotspots also produce the 2D Hotspots, thank you for that info, two birds, one stone! Best regards, Matt&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 18:37:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/582251#M6119</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-01-01T18:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate 2D hotspots code into 3D?</title>
      <link>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/582252#M6120</link>
      <description>&lt;P&gt;Soooo complex right!!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 18:38:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/582252#M6120</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-01-01T18:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate 2D hotspots code into 3D?</title>
      <link>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/583178#M6142</link>
      <description>&lt;P&gt;Hi, hotspots should work with the transformation stack as long as the axes remain unit length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 15:12:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Rotate-2D-hotspots-code-into-3D/m-p/583178#M6142</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2024-01-08T15:12:36Z</dc:date>
    </item>
  </channel>
</rss>

