1. select the Door on the Floor Plan or in 3D that you would like to open.
2. Open the Object for editing by File\GDl Objects\Open Object
3. Click the Master Script button so the Master Script appears.
4. At the very beginning of this script insert the script I gave you.
5. Save the changes to the Door.
Here is the info about GLOB_FRAME_NR from
http://www.graphisoft.com/support/archicad/archiguide/generalparameters.html:
Name: GLOB_FRAME_NR
Old name: N_
Type: numerical (positive integer value)
Possible range: 1 and up
Returns the current frame number in animations. The variable returns a valid value only for animations. In case of still images the variable returns ‘0’ as a value.
Note: You need to enable the ‘Rebuild Model for Each Frame’ checkbox in the Create Fly-Through Dialog in order for the variable to give the correct value for each frame of the animation.
The illustration shows the field in the Create Fly-Through Dialog enabling the operation of the GLOB_FRAME_NR variable
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-Ac28