<?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 How to open doors in animation in Modeling</title>
    <link>https://community.graphisoft.com/t5/Modeling/How-to-open-doors-in-animation/m-p/54789#M27794</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;In ArchiCAD, you need to use the GLOB_FRAME_NR Global GDL variable in association with the gs_open_3D parameter of your Door.&lt;BR /&gt;
&lt;BR /&gt;
Insert the following script at the beginning of your Master Script:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_FRAME_NR&amp;gt;=5 AND GLOB_FRAME_NR&amp;lt;=12 THEN&lt;BR /&gt;
	gs_open_3D=(GLOB_FRAME_NR-5)*(90/(12-5))&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF GLOB_FRAME_NR&amp;gt;12 THEN&lt;BR /&gt;
	gs_open_3D=90&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF GLOB_FRAME_NR&amp;gt;20 THEN&lt;BR /&gt;
	gs_open_3D=0&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
Explanation: GLOB_FRAME_NR returns the current frame of the animation. The above example will, between frames 5 and 12, open the Door from 0 degrees to 90 degrees in opening angle. If the frame number is above 12, then it will stay open at 90 degrees for a while. Then at frame 20, it will close again (gs_open_3D=0). &lt;BR /&gt;
Of course you may create new parameters for starting frame of door opening and ending frame of door opening, with which you can control for each placement at which frame the door should open and close.&lt;BR /&gt;
The opening angle may be between 0 and 180 degrees.&lt;BR /&gt;
Of course the Rebuild Model for each Frame checkbox must be checked in the Create Fly-Through Dialog.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps and is not too complicated&lt;BR /&gt;
Laszlo&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 09 May 2023 14:45:14 GMT</pubDate>
    <dc:creator>Laszlo Nagy</dc:creator>
    <dc:date>2023-05-09T14:45:14Z</dc:date>
    <item>
      <title>How to open doors in animation</title>
      <link>https://community.graphisoft.com/t5/Modeling/How-to-open-doors-in-animation/m-p/54789#M27794</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;In ArchiCAD, you need to use the GLOB_FRAME_NR Global GDL variable in association with the gs_open_3D parameter of your Door.&lt;BR /&gt;
&lt;BR /&gt;
Insert the following script at the beginning of your Master Script:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_FRAME_NR&amp;gt;=5 AND GLOB_FRAME_NR&amp;lt;=12 THEN&lt;BR /&gt;
	gs_open_3D=(GLOB_FRAME_NR-5)*(90/(12-5))&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF GLOB_FRAME_NR&amp;gt;12 THEN&lt;BR /&gt;
	gs_open_3D=90&lt;BR /&gt;
ENDIF&lt;BR /&gt;
IF GLOB_FRAME_NR&amp;gt;20 THEN&lt;BR /&gt;
	gs_open_3D=0&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
Explanation: GLOB_FRAME_NR returns the current frame of the animation. The above example will, between frames 5 and 12, open the Door from 0 degrees to 90 degrees in opening angle. If the frame number is above 12, then it will stay open at 90 degrees for a while. Then at frame 20, it will close again (gs_open_3D=0). &lt;BR /&gt;
Of course you may create new parameters for starting frame of door opening and ending frame of door opening, with which you can control for each placement at which frame the door should open and close.&lt;BR /&gt;
The opening angle may be between 0 and 180 degrees.&lt;BR /&gt;
Of course the Rebuild Model for each Frame checkbox must be checked in the Create Fly-Through Dialog.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps and is not too complicated&lt;BR /&gt;
Laszlo&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 May 2023 14:45:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/How-to-open-doors-in-animation/m-p/54789#M27794</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2023-05-09T14:45:14Z</dc:date>
    </item>
  </channel>
</rss>

