Design forum
cancel
Showing results for 
Search instead for 
Did you mean: 

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
....................................................................................................
Laszlo Nagy, Lead Moderator, Community Admin
Get Archicad Tips at https://twitter.com/laszlonagy
AMD Ryzen 1700X CPU, 48 GB RAM, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995
0 REPLIES 0

Didn't find the answer? Start a new discussion

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!