Animating custom objects on Flythrough
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-03-07
05:28 PM
- last edited on
2023-05-24
12:56 PM
by
Rubia Torres
What brought me here is a question about the ability to use gdl scripting to animate objects (opening drawers, cabinets, trolleys, etc.) during a flythrough... I am able to do this with doors, but custom library objects are never saved with the necessary parameters.
Is there any sort of tutorial about doing this?
Thank you, best,
Josef.
PS: I don't know how I missed this one-liner before (so thanks!), but if there is something a little more elaborate, that would be great, too. Thanks!
- Labels:
-
Default Archicad Libraries
-
GDL
-
Library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-03-08 08:28 PM
That aside, I've found an oddness that's a bit irksome: as soon as I animate an object, it loses its floor-plan outline (and it is reduced to a single dot in the object overview).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-03-09 12:37 AM
ThePromenader wrote:Adding the code in the link you found is indeed how you animate... and the 3D window must be rebuilt for the objects to move in a flythrough (must check the flythrough box to rebuild for each frame).
That aside, I've found an oddness that's a bit irksome: as soon as I animate an object, it loses its floor-plan outline (and it is reduced to a single dot in the object overview).
If you are just opening a drawer/door/etc for an object, the object should not be moving - just the relative position of the subelement you are animating. Animating something like a vehicle is another story... there should be tips about that in the forum, but they're probably around 10 years old. (Nothing has changed in how to do it - I just don't recall anyone caring any longer as animation in programs designed for animation is so much simpler: e.g., Artlantis can animate any object as can Cinema4D, etc.)
The dot is not a result of animating, but some other error you have made that has made the 2D symbol invalid. Did you get any 'check script' errors after adding your animation code? Are you able to view the 2D symbol in the GDL editor?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-03-09 12:43 AM
Again, you'll be time and money (if the client is paying) ahead by using an external program that supports proper animation. Besides scripting the objects, you have to mess with frame rates to get the speeds right, and Archicad's tools for creating an animation path/duration/etc are limited, especially if you want to make it smooth. It can be done, but it is a lot of work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-03-14 05:55 PM
The animation is kind of rudimentary in Archicad, but I decided to see what I could do with it while I was there... I have my OCD to thank for that ; )
I did manage to figure out the 'relative position' scripting (for each frame), and concocted something that looks pretty good (for what it is), enough to use, anyway.
And the 2d symbols disappearing: this was due to my not creating one upon creating a new object in 3d view. I managed to set that straight by creating a 'temp' object from the original in 2d view, and copying the script from that over to the 3d-made object.
I hope this works here... attaching the finished film.
Thanks so much for your advice!
PS: nope, so attaching link to my G+ drive:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-03-14 06:09 PM
ThePromenader wrote:Well done!
. attaching the finished film.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-03-14 09:26 PM
ThePromenader wrote:I have CDO, which is like OCD except the letters are in alphabetical order, the way they should be.
...I have my OCD to thank for that ; )
And if you really had OCD you would have closed the drawers before you left each room

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-03-16 03:11 PM
I think I've learned to put my OCD into a 'controlled spin', so it