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

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Timer function

Anonymous
Not applicable
Is there a Timer function in GDL?

Zak
10 REPLIES 10
Barry Kelly
Moderator
mallasi wrote:
Hmmmm I thin it is going to be difficult.

I am trying to create a basic animation for a box objects in the GDL 3D window.
If I have to build my own timer in GDL, then can it be done this way:
1 - Capture the current time (T1) of the user’s machine
2 - Start loop to run every 10 seconds starting at T1.
3 - On entering the loop for the first time Draw a box object for an example.
4 – Continue loop.
5- IF T1 = (T1 + 25 sec.) then rotate the box object 10 degrees.
6- Then repeat (4) till the 3D window is shutdown.

Any ideas!
You can animate objects and have them move in fly-throughs based on frame number or camera location.
But to my knowledge you can't animate an object and observe it in the 3D window.
As mentioned there is no way for an object to watch the time, it can only compare times from the system clock when ever the object is activated (i.e. rebuild).
I don't think this can be done directly with GDL but maybe with an API?

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11