DC's - Can Scenes be made to recall their properties?
-
Hey guys,
Just wondering if there is a way for scenes to recall a DC's properties?Say with a door: I want it to show 'open' in plan view but in elevation I want it 'closed'. Currently, I'm having to update my plans, export to PDF then closing the doors and updating my model to export to elevations.... bit of a pain.
Is this possible? Would it help others?
-
No?
-you could simply create and place different positions of the door and associated lines on different layers, then hide or show the appropriate layer in the scene.
- maybe a ruby script could react to the scene change and animate the doors, much more difficult
-
@utiler said:
... Just wondering if there is a way for scenes to recall a DC's properties?
......
Currently, I'm having to update my plans, export to PDF then closing the doors and updating my model to export to elevations.... bit of a pain.Is this possible? Would it help others?
FAIK it isn't possible. The Scene Manager doesn't show anything other than saving the state the geometry is currently in the model, nothing related to DCs.
If you have many different DCs to update before updating a scene, this might help a little:
- create one scene that shows some location/space on the side, not conflicting with any other needed scene/view.
- in this scene you have copys of each of the uses doors and/or windows (or whatever) DCs in your model that need to be changed by 'OnClick....Animate',
-Since you have them together you can click these to swing open/close. The plane and elevation will do accordingly and you'll not likely forget one.
You might even try to have all these DCs as childs inside a parent container component and have them change by clicking on the parent container. Just one click in this particular scene so to speak. Then return to the appropriate scene, plan view or elevation. Just worth trying I guess.
-
-
Thanks guys, as I thought; very hard to do. I'll have a good think about it and see what I come up with.
Cheers.
-
@faust07 said:
Here an example from 3D-warehouse. It should work with doors too.
I opened this file and the model isn't a DC? I'm not sure; can you explain....?
-
See Dan's update:
Update to "scenes.rb" example (from the old API blog)
I just had to update this old example because it violated so many best practices. (And I got tired of waiting for someone else to do it.) What does it do ? In a Nutshell … From the file header of the example script: …
SketchUp Community (forums.sketchup.com)
-
Thanks Jim, looks like a bit of late night reading there.. Cheers.
-
Sorry, first install "scenes_v2.rb" from Dan's post. I tested it in SUp8 long time ago and forgot to mention the need of the plugin. It works in SUp16 too.
-
Modified example with a door in 4 positions:
The plugin scenes_v2.rb is limited to 4 trigger positions.
Scene animation does not work correctly.
The properties of the DCs are not remembered in the scenes. They are triggered from 1 to 4 no matter what scene you click on as next and how much scenes you have in the model.
With an understanding of these limitations, the plugin should still be useful...
Advertisement