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

    Properties to save between scenes

    Scheduled Pinned Locked Moved Developers' Forum
    12 Posts 5 Posters 509 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      If you want to change materials across scenes you need to use layers to control the visibility of similar components that have different materials applied in the two scenes...

      TIG

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

        Ok, but that's duplicating the entities, which i really want to avoid at all costs

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          Sorry, but changing materials of one instance across scenes is not possible unless you make duplicates , then vary their materials and use layers in the scenes to control their visibility - it's just not a function of Sketchup !

          TIG

          1 Reply Last reply Reply Quote 0
          • M Offline
            MartinRinehart
            last edited by

            @pout said:

            Ok, but that's duplicating the entities, which i really want to avoid at all costs

            Add my vote. Would really be nice to have a blue ball and a red ball without having two otherwise identical balls.

            Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

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

              It MIGHT be possible using an observer. I've used Scene observers to trigger animation of objects (very rudimentary animation), so it might be possible to use them to (re)paint objects.

              RickW
              [www.smustard.com](http://www.smustard.com)

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                Dynamic components re-color objects. You can't do anything very detailed as far as texture placement, but you most certainly can use ruby to re-color objects without having to duplicate the object.

                Making scenes rememeber the material attribute might work using Rick's idea, and it might not. But you could re-write your own scene manager that could remember color settings.

                Would it be painful to write? Probably.

                Chris

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

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

                  @rickw said:

                  It MIGHT be possible using an observer. I've used Scene observers to trigger animation of objects (very rudimentary animation), so it might be possible to use them to (re)paint objects.

                  Using scene observers works like a charm to do it. BUT, and for me this is a big BUT, the scene observer has big disadvantages:

                  • does not fire when creating an animation
                  • does not fire in Layout
                  • is gone if you close and reopen a model

                  So, when i want to create a movie, i'll need to write a complete script which saves images along a path between two camera views and then look for some external library which can create a movie of all these images and using Layout is impossible

                  Maybe there is some plugin already available with some of this functions available

                  1 Reply Last reply Reply Quote 0
                  • Chris FullmerC Offline
                    Chris Fullmer
                    last edited by

                    My camera recorder writes images to the disk to make a movie from. You can use mencoder, a command line driven movie encoder, to turn those images into a movie. Or imagemagick. I do not think anyone has put all that into a single script yet. Its on my list of things to do with my camera recorder script, I've just not quite gotten it done yet.

                    Lately you've been tan, suspicious for the winter.
                    All my Plugins I've written

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

                      Chris,

                      Great plugin! Do you think it can be used like this:

                      1. get all camera settings of all scenes
                      2. create a path from one camera setting to the other
                      3. execute a rb function (already written) with camera viewpoint of first scene
                      4. capture the movement along the 1st path (like your script does)
                      5. upon arriving at the camera viewpoint of the second scene: execute a rb function
                      6. capture the movement along the 2nd path (like your script does)
                      7. upon arriving at the camera viewpoint of the third scene: execute a rb function

                      and so on

                      In the end: Write all that to images (like your script does)

                      • combine into movie (i'll check the mencoder to see how to fire this from ruby)
                      1 Reply Last reply Reply Quote 0
                      • Chris FullmerC Offline
                        Chris Fullmer
                        last edited by

                        Yup, that is all definitely possible. Writing the images to disk is not all that hard. It would be quite easy to make a script that exports animation frames from scene to scene, and executes a ruby method at each scene.

                        Does onyone out there know how to re-creatae the exact flythrough path though? Is that what you are hoping to achieve Pout? I have not ever figured out how to do that, but I think it is possible because it seems like some of the renderers are able to re-create SU's camera paths.

                        Chris

                        Lately you've been tan, suspicious for the winter.
                        All my Plugins I've written

                        1 Reply Last reply Reply Quote 0
                        • Chris FullmerC Offline
                          Chris Fullmer
                          last edited by

                          Pages.show_frame_at

                          I think that answer's my own question. I would guess that is how the actualy flightpath created by SU is re-created. It would be easy then to export images from scenes - recreating the actual SU flightpath, and then compile those into a movie (presuming you get mencoder to cooperate).

                          Chris

                          Lately you've been tan, suspicious for the winter.
                          All my Plugins I've written

                          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