BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

GDL object moving

Anonymous
Not applicable
We are doing a 4D project with the plug-in in ArchiCAD 14. I would like my cranes (3ds-converted objects) to move as the simulation runs with one or more cameraes-

It must be a ROTz..... something like this with a 4x4x4 block:

BLOCK 4,4,4

ADDx 2
ADDy 2

ROTz (N_+1)/(P_+1)

del 1

HOWEVER, it does not work - what went wrong?


Thanks.
10 REPLIES 10
fuzzytnth3
Booster
Did you tick the box for rebuild model for each frame in the Save fly through settings?
AC versions 3.41 to 25 (UKI Full 5005).
Using AC25 5005 UKI FULL
Mac OSX 10.15.7 (19G2021) Mac Pro-2013 32gbRam AMD FirePro D500 3072 MB graphics
Anonymous
Not applicable
fuzzytnth3 wrote:
Did you tick the box for rebuild model for each frame in the Save fly through settings?
Oh yes, but still there is no movement...Is my script correct? Tried to look something up in the COOKBOOK without any luck although there a movements in many of the samples:-)
Anonymous
Not applicable
Hi,

try to place the BLOCK command after thr ROTz transformation.
I think it may helps.

best regards,
Anonymous
Not applicable
Nope, did not help.

Frank Beister
Advisor
try this:
_ang=360
ROTz (GLOB_FRAME_NR+1) * _ang/(GLOB_LAST_FRAME+1)
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Barry Kelly
Moderator
The BLOCK command must be after the ROY but before the DEL.

There is also a broblem with your maths.

ROTz (N_+1)/(P_+1) will only rotate by a minute amount each time

Just use ROTz N_ to rotate one degree each frame.

Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
YEP, it is working now - my block is moving fine with:

ROTz N_

BLOCK 4,4,4

BUT not around its own axis in the middle of the object....How to?
Barry Kelly
Moderator
You will need to ADD by the negative value of half the block size then place the block then DEL to put the cursor back to the original position.

ADD -2, -2, 0
BLOCK 4,4,4
DEL 1

Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
THANKS, Barry!

Very good basic GDL!
Learn and get certified!