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

    [Plugin] Update all other scenes..

    Scheduled Pinned Locked Moved Plugins
    26 Posts 4 Posters 998 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.
    • renderizaR Offline
      renderiza
      last edited by

      The fallowing code will update all scenes to current scene settings.

      
      model = Sketchup.active_model
      pages = model.pages
      
      pages.each {|page| page.update}
      
      

      Not sure if this is what you want πŸ˜•

      [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Just select the scenes you want to update and hit the Update button.

        UpdateScenes.png

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • CadFatherC Offline
          CadFather
          last edited by

          Hi and thanks for the replies.. Rafael, that is exactly what i need (you will soon see why). Thank You Sir! πŸ˜„

          ThomThom, that is exactly what i'm trying to avoid! πŸ˜†

          Edit/: sorry Rafael, i just realized, is there a way not to update the scenes not included in the slideshow?

          1 Reply Last reply Reply Quote 0
          • renderizaR Offline
            renderiza
            last edited by

            You can skip scenes you don't want to update if you know their names. For example;

            
            model = Sketchup.active_model
            pages = model.pages
            
            pages.each {|page| 
            
              if page.name != "scene 3" || page.name != "scene 4"
                page.update
              end
            
            }
            
            

            scene 1 = Updated
            Scene 2 = Updated
            scene 3 = Not Updated
            scene 4 = Not Updated
            Scene 5 = Updated

            Thier might be other ways to skip scenes but when you refer to slideshow I get little lost in what you mean.

            [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

            1 Reply Last reply Reply Quote 0
            • CadFatherC Offline
              CadFather
              last edited by

              yes, all the scenes you create can be included (or not) in the exported animation by checking a box in the scenes manager (the scenes not included will appear in parenthesis.

              however, i do know the scenes names so this should work...i'll give it a go.. Thanks again Rafael.

              1 Reply Last reply Reply Quote 0
              • renderizaR Offline
                renderiza
                last edited by

                I understand now!

                Here is a better way then;

                
                model = Sketchup.active_model
                pages = model.pages
                
                pages.each {|page|
                
                  if page.label[-1..-1] != ")"
                    page.update
                  end
                
                }
                
                

                [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                1 Reply Last reply Reply Quote 0
                • CadFatherC Offline
                  CadFather
                  last edited by

                  wow, that is amazing! πŸ‘ πŸ˜„

                  i put a menu in it - i'll link in the first post - works great Rafael... i'd love to see ThomThom go through the motions while i fire my magic script! πŸ˜‰ πŸ˜†

                  Thanks!

                  1 Reply Last reply Reply Quote 0
                  • CadFatherC Offline
                    CadFather
                    last edited by

                    done.

                    PS ..don't tempt me! πŸ˜†

                    1 Reply Last reply Reply Quote 0
                    • renderizaR Offline
                      renderiza
                      last edited by

                      Hi,

                      Very good idea I will be using this...please keep coming up with great ideas and if you need help in scripting let us know.

                      Cheers!

                      [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                      1 Reply Last reply Reply Quote 0
                      • CadFatherC Offline
                        CadFather
                        last edited by

                        actually i just realised the camera view also gets changed, which is dangerous..

                        i think what i'd like to change are shadow settings and style and fog

                        otherwise, even better might be for the script to call up a similar dialog as the scene one.

                        folder.jpg

                        of course the changes propagate to all scenes (in the slideshow) without having to manually select them.

                        (got excited too soon..) πŸ˜„

                        1 Reply Last reply Reply Quote 0
                        • renderizaR Offline
                          renderiza
                          last edited by

                          That can be fixed...I will do some tests and let you know. πŸ‘

                          [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                          1 Reply Last reply Reply Quote 0
                          • renderizaR Offline
                            renderiza
                            last edited by

                            Here is a quick test for not changing camera settings but yes to everything else...

                            
                            model = Sketchup.active_model
                            pages = model.pages
                            
                            
                            pages.each {|page| 
                            
                              if page.label[-1..-1] != ")"
                                if page.use_camera? 
                                  page.use_camera = false
                                  page.update
                                  page.use_camera = true
                                else
                                  page.update
                                end
                              end
                            
                            }
                            
                            

                            Now to add a dlg as to what you posted that might need a web dlg which is not that hard to do. Beside the camera you don't want other things like hidden stuff and layers so let me see how to go about that...cheers!

                            [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                            1 Reply Last reply Reply Quote 0
                            • CadFatherC Offline
                              CadFather
                              last edited by

                              Works great Rafael, in fact it is faster than going through the scene manager (with the thumbnails updated etc) - the change is instant on all scenes - if you have a long animation, it's great to check different styles.

                              i'm wondering, what is easier webdialog or input box?

                              in.jpg

                              1 Reply Last reply Reply Quote 0
                              • renderizaR Offline
                                renderiza
                                last edited by

                                Not sure which one is faster between input box & web-dialog but I personally prefer web-dialog because you can have more control with it and can add some advance stuff that input box can't. Pretty sure both of them are fast so we won't have any problems there. I am working at a web-dialog to test it at the moment, will post it soon so you can make tests on it as-well.

                                By the way I am having some difficulties to replace other pages styles without affecting things like visible layers, hidden entities, ect. πŸ˜• I can still make them remember their properties to save check boxes if checked or not but the style that is applied to them carry its properties and overwrites them except for camera which seems to be only one we got working at the moment. 😒

                                Anyways will keep you posted...cheers!

                                Note: the input box example you posted above seems like it would work fine though.

                                [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                                1 Reply Last reply Reply Quote 0
                                • CadFatherC Offline
                                  CadFather
                                  last edited by

                                  , yes i tried running your plugin with some other commands from the api but was not successful..( πŸ˜’ )

                                  anyway, had some thoughts on this: i think it'd be good if we had 2 button (hence the 2 icons)
                                  one button shows the dialog, another repeats the same choices without the dialog.

                                  what do you think?

                                  rz_rec_24.pngrz_rec_16.pngrz_res_24.pngrz_res_16.png

                                  1 Reply Last reply Reply Quote 0
                                  • renderizaR Offline
                                    renderiza
                                    last edited by

                                    Seems like a great idea!

                                    I am almost finish with the web dialog so will be posting it soon.

                                    Oh and nice icons! πŸ’š

                                    [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                                    1 Reply Last reply Reply Quote 0
                                    • renderizaR Offline
                                      renderiza
                                      last edited by

                                      menu.png

                                      [RE]SCENE v1.0.0(Current version tools buttons)
                                      tools-1.jpg

                                      For now there is no options until we can figure out some stuff but the camera position of each page is maintained when plugin is used.
                                      dlg-1.jpg

                                      Here is an example on how more options will look on web dlg;
                                      dlg-2.jpg

                                      Download: [RE]SCENE v1.0.0

                                      CAD_RESCENE v1.0.0.rar

                                      CAD_RESCENE v1.0.0.rbz

                                      Note: CadFather maybe you will put new updates on top post if you see fit...will let that up to you. πŸ˜‰

                                      [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                                      1 Reply Last reply Reply Quote 0
                                      • CadFatherC Offline
                                        CadFather
                                        last edited by

                                        at 1.45am, it is good to see this update! 😲

                                        looking good - in fact the graphic looks way better than my icons.. πŸ‘

                                        if you think you'll manage to overcome the options thing, i'll wait before updating the first post..

                                        ps. btw, you shouldn't put 'cad' - name it as one of your plugins. in fact you could consider to put all your plugins in one RZ folder, and just use some loaders to call them up... anyway..just taking too much credit since you're doing all the work! πŸ˜†

                                        EDIT: actually it is working really well already! i'll update the first post..

                                        1 Reply Last reply Reply Quote 0
                                        • renderizaR Offline
                                          renderiza
                                          last edited by

                                          Well maybe update it now because I am not to sure how to make the options work at the moment so it might take longer than expected.

                                          And CadFather this plugin is your idea and ideas deserve more credit than you think, even more than what I am doing but don't worry lets call it our plugin and we both be happy. πŸ˜›

                                          And its 9:06 PM here πŸ˜†

                                          Cheers! πŸ‘

                                          [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

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

                                            very nice plugin.
                                            you can add an option to rename all the scenes?

                                            thanks

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

                                            Advertisement