sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [req]Model Scrambler

    Scheduled Pinned Locked Moved Plugins
    48 Posts 19 Posters 16.8k Views 19 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.
    • R Offline
      remus
      last edited by

      I was wondering if it would be possible to make a script that:

      1. Exploded all groups/components in the model
      2. Purged the model
      3. Exploded all curves
      4. Unhid/unsmooth all geometry
      5. Hid a random selections of lines
      6. Rotated the whole model very slightly off axis in every direction
      7. Created lots of new layers and moved random pieces of geometry to the new layers
      8. Made components of random selections of geometry

      And anything else that you can think of that would make it very hard/impossible to work on the file.

      http://remusrendering.wordpress.com/

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

        your too kind ๐Ÿ˜„

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • jeff hammondJ Offline
          jeff hammond
          last edited by

          @tig said:

          You coul;d always delete the file ? ๐Ÿ˜‰

          or, talk to h4zel:
          http://www.sketchucation.com/forums/scf/viewtopic.php?f=15&t=18218
          ๐Ÿ˜„

          dotdotdot

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

            You could always delete the file ? ๐Ÿ˜‰

            TIG

            1 Reply Last reply Reply Quote 0
            • soloS Offline
              solo
              last edited by

              why??

              http://www.solos-art.com

              If you see a toilet in your dreams do not use it.

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

                If your forced to hand over a model that you dont want really want them to have.

                http://remusrendering.wordpress.com/

                1 Reply Last reply Reply Quote 0
                • jeff hammondJ Offline
                  jeff hammond
                  last edited by

                  @remus said:

                  If your forced to hand over a model that you dont want really want them to have.

                  how about if you could password protect a model? you could only use the camera on it.

                  dotdotdot

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    AcesHigh
                    last edited by

                    @remus said:

                    I was wondering if it would be possible to make a script that:

                    1. Exploded all groups/components in the model
                    2. Purged the model
                    3. Exploded all curves
                    4. Unhid/unsmooth all geometry
                    5. Hid a random selections of lines
                    6. Rotated the whole model very slightly off axis in every direction
                    7. Created lots of new layers and moved random pieces of geometry to the new layers
                    8. Made components of random selections of geometry

                    And anything else that you can think of that would make it very hard/impossible to work on the file.

                    thats an awesome idea for a plugin! I really dont know how it could be useful, but still, I LOVE IT! How about also adding a feature, that when someone else, not allowed, tries to edit the model, all the electric appliances in a 10 meters radius will burn? ๐Ÿ˜„

                    1 Reply Last reply Reply Quote 0
                    • soloS Offline
                      solo
                      last edited by

                      While we are at it, why not embed a virus with the model so if the user decides to alter the mesh in any way it drops a virus and removes the .ini files from his operating system and reboots to nothing? ๐Ÿ˜ฎ

                      Seriously I do not see any point to the above scrambler, if you do not want anyone to mess with your model then just do not send it to them.

                      http://www.solos-art.com

                      If you see a toilet in your dreams do not use it.

                      1 Reply Last reply Reply Quote 0
                      • jeff hammondJ Offline
                        jeff hammond
                        last edited by

                        @solo said:

                        Seriously I do not see any point to the above scrambler, if you do not want anyone to mess with your model then just do not send it to them.

                        ultimately, that's the best way to go about it..

                        that aside, maybe you could twist it ever so slightly with freescale2.. or export it as a dwg or something and re-import it -- do that a few times and i'm sure you'll be able to screw it up that way.

                        dotdotdot

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          BTM
                          last edited by

                          Don't forget to lock the compnents, and to have a component in a component in a component, etc. ๐Ÿ’š
                          And best of all, make a hidden line 1000 to 10000km away. No one will notice it, and guess what'll happen ๐Ÿ˜† ๐Ÿ‘ฟ
                          Say goodbye to being able to edit any details! And this is just with 100km!!!

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

                            Ideally all the changes would leave the model visually unchanged, though.

                            scrap the unsmoothing thing in the original post.

                            http://remusrendering.wordpress.com/

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

                              @remus said:

                              Ideally all the changes would leave the model visually unchanged, though.

                              AAaahhhh, that makes so much more sense now! You could write something like that.

                              model = Sketchup.active_model ents = model.entities group_found = true to_explode = [] curve = [] while group_found group_found = false ents = model.entities ents.each do |e| if e.typename == "Group" or e.typename == "ComponentInstance" to_explode.push e group_found = true end end to_explode.each { |e| e.explode } to_explode = [] end ents = model.entities ents.each do |e| if e.typename == "Edge" curve.push e if e.curve end end curve.each { |e| e.explode_curve }

                              That is the explode all group/comps and then explode all curves part of the script. Just add something to randomly move geometry onto layers and hide things, delete all scenes, purge all, etc. Your good to go! ๐Ÿ˜„

                              Chris

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

                              1 Reply Last reply Reply Quote 0
                              • soloS Offline
                                solo
                                last edited by

                                How difficult would it be to make a script that renders the model uneditable?, making it a locked component that cannot be unlocked without a password?

                                http://www.solos-art.com

                                If you see a toilet in your dreams do not use it.

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

                                  Cheers chris ๐Ÿ‘ I should have said that te model should appear unchanged in the original post, would have saved a lot of confusion i think.

                                  http://remusrendering.wordpress.com/

                                  1 Reply Last reply Reply Quote 0
                                  • GaieusG Offline
                                    Gaieus
                                    last edited by

                                    Also add some tiny faces with lots of random materials so that it would actually be a PITA to purge it. Ideally biiig tiff files or something.

                                    Gai...

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

                                      Question: How do 'they' know what the model should be like ?

                                      If they haven't seen it then you could send them any old model containing assorted rubbish...

                                      If they've seen some images of it then send them any old model containing assorted old rubbish but with the same images inserted into it...

                                      If they've received a draft of the model re-send that (perhaps with the later version images inserted).

                                      Who are 'they' that 'they' can demand this model from ? If they 'own it', or have a claim on it in some way, you must give it to them - otherwise they can sue you... You should only ever agree to provide images unless they specifically are paying for the 3D model...

                                      A contract in law is 'an offer' and 'an acceptance' - however, it usually consists of three basic bits 'a time/cost', 'a date' and 'a handshake': i.e. how long it'll take or how much it'll cost [the "lead-in time" and/or "the total cost" of the service/goods - often the same because "time is money"] + when it'll be ready [the "programme to delivery"] + what it is that's to be done [the "specification"]... Anything else is extra window dressing - what happens if xyz etc...

                                      Who offered what to whom. Technically no 'consideration' is necessary (payment), but it does strengthen the case if something is paid for something that's not been received...

                                      I say - don't give'em "it" unless they have a serious threat... By the way - the questions around scrambling / password-protecting models has been around since almost the start of Sketchup BUT it has never been sorted...

                                      TIG

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

                                        To be honest i havent thought a lot about the applications/implications of such a script.

                                        The only real use i had in mind was if you wanted to send someone a file for visual inspection but didnt want them to be able to modify it.

                                        I think it could be pretty useful in this context, as it makes it feasible to provide models for inspection by a client without risking them being able to use it. I imagine youd have to be quite careful using it in this context, though, as the potential for pissing of your client is pretty big.

                                        http://remusrendering.wordpress.com/

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          BTM
                                          last edited by

                                          I'd say password protection would be best. I know that there are ways to fix "messed up" models, but a password would be foolproof.

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

                                            Ahh nice, that saves about 20 lines of code ๐Ÿ˜„ I find I'm not very concise in my coding. I use a lot of lines to get stuff done. But its easier for me to read later when I'm checking over my code.

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

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

                                            Advertisement