Document & Visualize forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Open Doors in 3-D view

Anonymous
Not applicable
Is there a way to show doors as open in the 3-D view? I think I read a post on this subject a while ago, but I can't find it.

Thanks!
18 REPLIES 18

Anonymous
Not applicable
Most doors have a parameter for this but it will vary from one library part to the next. You will have to look in the settings dialog to see.

Anonymous
Not applicable
how to set the door open during the rendering?
When the camera get close to the door it open, and when camera move away it will close by itself.

Ben Odonnell
Newcomer
I know it's possible to script it in GDL. Sorry but I don't know how it's done I've only seen it and it's really effect full.
Ben O'Donnell
Architect and CTO at BIMobject®
Get your BIM objects from bimobject.com

Anonymous
Not applicable
ashley wrote:
how to set the door open during the rendering?
When the camera get close to the door it open, and when camera move away it will close by itself.
I think Niel McCann's D3 Library (AKA Real Doors) can do this. The feature has to be written into the library part. It also requires that the model is rebuilt for each frame of the fly-through.
create fly through.jpg

Djordje
Expert
Matthew wrote:
ashley wrote:
how to set the door open during the rendering?
When the camera get close to the door it open, and when camera move away it will close by itself.
I think Niel McCann's D3 Library (AKA Real Doors) can do this. The feature has to be written into the library part. It also requires that the model is rebuilt for each frame of the fly-through.
... and it also requires to render in ArchiCAD, which IMHO at the moment is only feasible with AV Works or sketch rendering. But, leave it running through a long vacation ...
Djordje



ArchiCAD since 4.55 ... 1995
HP Omen

Anonymous
Not applicable
Djordje wrote:
Matthew wrote:
ashley wrote:
how to set the door open during the rendering?
When the camera get close to the door it open, and when camera move away it will close by itself.
I think Niel McCann's D3 Library (AKA Real Doors) can do this. The feature has to be written into the library part. It also requires that the model is rebuilt for each frame of the fly-through.
... and it also requires to render in ArchiCAD, which IMHO at the moment is only feasible with AV Works or sketch rendering. But, leave it running through a long vacation ...
If you want to go outside of ArchiCAD and animate stuff (as I've said elsewhere) Cinema 4D will do anything you want. You can open the doors as you approach, or make them evaporate, or they can cringe, scream and run away from you.

Anonymous
Not applicable
Actually I did fly-through twice, but the door won't automatically open. That's why I wonder What I need to do to make door open auto. I have same setting as you show in this forma.

I did hear people told me that I need to write a code to make it happen, but I don't know anything of code. That's why I was wondering if there is any way that I can make it happen without writing a code 😛

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

Anonymous
Not applicable
Thank you so much. I'll try this code tonigh. Do you might I ask more question if I fale on useing the code?

Laszlo Nagy
Community Admin
Community Admin
Yes, you may.
It keeps ME refreshed and practising as well
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

Anonymous
Not applicable
I don't know where should I put the code. could you show me how to choose the perspective door, and put the code in that perspective door. Thank you

Anonymous
Not applicable
"laszlonagy" wrote:
In ArchiCAD, you need to use the GLOB_FRAME_NR Global GDL variable in association with the gs_open_3D parameter of your Door.

Hope this helps and is not too complicated
Laszlo



What is GLOB_FRAME_NRGLOBAL GDL?

Laszlo Nagy
Community Admin
Community Admin
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
....................................................................................................
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

Anonymous
Not applicable
Hi, sorry to resurrect an old thread but i'm a bit stuck on this and wondered if anyone can help. Every time I entered Laszlo's code except once, I got a whole lot of different error messages or weird corruptions of the new object when i tried to use it. The time I did get the door to work, i got the frame numbers wrong, so the door closes too soon (see http://www.vimeo.com/19839854).

I've uploaded an A14 file to the link below, containing two pairs of doors. The doors on the left are the original unedited archicad doors. The top right door is the one edited door that worked. The bottom right door is one of many where I have inserted the same code (except sometimes with different frame numbers) in the same place (as far as I can tell - top of the master script) and got all kinds of different errors back!

If anyone can spot the difference between the two doors on the right hand side and tell me what I did wrong on the bottom one, I'd be eternally grateful. Cheers.

To download the file scroll down towards the bottom of the page the below link sends you to and hit "regular download." http://www.easy-share.com/1913863779/opening

Anonymous
Not applicable
laszlonagy, i have an additional question related to this topic. i have followed your instructions below to get doors to open in my fly-thru. thanks for the excellent instructions and code. i am trying to add some addition animation to my model. specifically i have a Murphy bed that is shown in the vertical position (current modeled as a slab. i also have an object that will work too.) what i want to do is have the bed fold down from a vertical or 90 degree position, to a horizontal or 0 degree position, during my fly-thru. how can i do this? thx in advance

Anonymous
Not applicable
Brian

I'm guessing here, but i think if you replace every instance of "gs_open_3D" in Laszlo's code with "ROTX" to rotate your bed around the x-axis or "ROTY" to rotate around the y-axis, that should do the trick.

Laszlo Nagy
Community Admin
Community Admin
Guys, looks like there are some solutions to these problems in this other thread:

http://archicad-talk.graphisoft.com/viewtopic.php?p=184322#184322
....................................................................................................
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

Anonymous
Not applicable
Thanks for the replies, got it figured out. you guys are the best!

Start a new conversation!

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!