sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    DC's - Can Scenes be made to recall their properties?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    10 Posts 5 Posters 628 Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • utilerU Offline
      utiler
      last edited by

      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?

      purpose/expression/purpose/....

      1 Reply Last reply Reply Quote 0
      • P Offline
        pcmoor
        last edited by

        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
        1 Reply Last reply Reply Quote 0
        • Wo3DanW Offline
          Wo3Dan
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • F Offline
            faust07
            last edited by

            Here an example from 3D-warehouse. It should work with doors too.


            DC trigger via scenes

            1 Reply Last reply Reply Quote 0
            • utilerU Offline
              utiler
              last edited by

              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.

              purpose/expression/purpose/....

              1 Reply Last reply Reply Quote 0
              • utilerU Offline
                utiler
                last edited by

                @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....?

                purpose/expression/purpose/....

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jim
                  last edited by

                  See Dan's update:

                  Link Preview Image
                  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: …

                  favicon

                  SketchUp Community (forums.sketchup.com)

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • utilerU Offline
                    utiler
                    last edited by

                    Thanks Jim, looks like a bit of late night reading there.. Cheers.

                    purpose/expression/purpose/....

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      faust07
                      last edited by

                      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.

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        faust07
                        last edited by

                        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...


                        door test

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement