BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Modeling
About Archicad's design tools, element connections, modeling concepts, etc.

How to open doors in animation

Laszlo Nagy
Community Admin
Community Admin
In ArchiCAD, you need to use the GLOB_FRAME_NR Global GDL variable in association with the gs_open_3D parameter of your Door.

Insert the following script at the beginning of your Master Script:


IF GLOB_FRAME_NR>=5 AND GLOB_FRAME_NR<=12 THEN
gs_open_3D=(GLOB_FRAME_NR-5)*(90/(12-5))
ENDIF
IF GLOB_FRAME_NR>12 THEN
gs_open_3D=90
ENDIF
IF GLOB_FRAME_NR>20 THEN
gs_open_3D=0
ENDIF

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).
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.
The opening angle may be between 0 and 180 degrees.
Of course the Rebuild Model for each Frame checkbox must be checked in the Create Fly-Through Dialog.

Hope this helps and is not too complicated
Laszlo
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
0 REPLIES 0
Learn and get certified!