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

    State of DC and scenes

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    4 Posts 4 Posters 1.1k Views 4 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.
    • J Offline
      jzer7
      last edited by

      I have a couple of dynamic components in a model (doors, windows and cabinets). I also tend to use scenes quite often -- especially for selecting spots to render, as I make changes to the model.

      My questions: is it possible to have a scene remember the state of the DC (e.g., a door being opened or closed)? If not, is there an easy way to "hack" it (e.g., a script that first changes to a given scene and then closes all exterior doors). I am not familiar with the Ruby API to DC (if any), but willing to learn if needed.


      Juan

      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by

        I think it might be possible using ruby, though, by using ruby to change a custom attribute which would then drive the animation. I might be remembering wrong, though, as im not entirely sure if you can set attributes through ruby (you can definitely read them, though.)

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • scottliningerS Offline
          scottlininger
          last edited by

          Remus is right. There's no "easy" way to tie DC redraws to scene changes. One could do it with a custom Ruby script.

          It's on the feature request list, so it could show up in a future version.

          Cheers,

          • Scott Lininger
            SketchUp Software Engineer
            Have you visited the Ruby API Docs?
          1 Reply Last reply Reply Quote 0
          • F Offline
            FenS
            last edited by

            Don't know if it is an option,
            but i have seen some tutorial-skp's, where there was a model in scene 1, and scene 2 was looking at a (changed) cópy of that same model which was located a bit to the right so you did not see that one when you were looking at scene 1.
            If you change to scene 2, scene one is leaving your screen and you see the changed model.
            (but ofcourse you won't see the doors getting opened in 1 model, you will just see model 1 dissappearing and model 2 appearing and this is probably not what you were looking for?)

            Qué sais je? there is still so much to be learned...

            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