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.
    • E Offline
      Ecuadorian
      last edited by

      You could:

      • Use Chris Fullmer's random scale and rotate to mess everything up with only really tiny rotations (no scaling)
      • Explode everything afterwards (how about using smustard's "bomb"?)
      • Random push-pull everything with tiny values. I guess you could use Chris Fullmer's greeble script for this.
      • Select everything and use TIG's random select to select a random 20% of everything and copy it (Ctrl+C)
      • Select everything remaining, make it a group, paste in place what you copied before, make it another group, and
      • Use Chris Fullmer's random scale and rotate again with really tiny rotations (no scaling) to mess up everything
      • Again, explode everything

      Be prepared to be declared a slobbish 3D modeler after they try to edit that file.

      -Miguel Lescano
      Subscribe to my house plans YouTube channel! (30K+ subs)

      1 Reply Last reply Reply Quote 0
      • K Offline
        kwistenbiebel
        last edited by

        Make a script that randomly bugsplats the Su file when someone wants to edit it.....
        Oh wait a minute, Sketchup does that by default.... 😄

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

          @kwistenbiebel said:

          Make a script that randomly bugsplats the Su file when someone wants to edit it.....
          Oh wait a minute, Sketchup does that by default.... 😄

          Many a true word spoken in jest... the tool put everything onto Layer0 and explodes everything to bare geometry, the tool then groups the whole model into one giant group/compo, we do 'something' to the group that causes a bugsplat if you try to edit it - otherwise the model remains orbitable, viewable etc...

          Good candidates for 'something' would be some humongous hidden geometry causing GL to fall over, or a definition that includes itself ?

          TIG

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            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.

            Sounds like some the architects where I work... ...with exception of point 2.

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

            1 Reply Last reply Reply Quote 0
            • PixeroP Offline
              Pixero
              last edited by

              As some has said, I dont think giving the client a crippled SU file would be good for business.
              Either give them a movie or still images. The good thing about that is that you can deside what they should be looking at. With just the SU file they could start commenting irrelevant things that you quickly fly past in an animation.
              Also many clients (at least where I live) are not very good with computers and they would either loose themselves trying to navigate SU or just be getting a less experience of your work navigating SU themselves.

              1 Reply Last reply Reply Quote 0
              • H Offline
                HFM
                last edited by

                @solo said:

                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?

                Don't think that's possible, since it probably needs a .rb file to work [password data]. You could ask the receiving party to first install the .rb and then open the model and hope they fall for that 😄

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

                  Is it possible for a ruby to go in and tweak something in the .skp file that makes it appear un-openable to SU? But the ruby could be installed on another computer and the user could start the ruby, then select a file to open and the ruby could then re-tweak the file back to normal if the correct PW was given? the PW would also be stored in the .skp file.

                  Is that possible?

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

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

                    Another possibility: the ruby performs a series of transformations to mess up the model but records all the transformations. You then put in a password and it magically undoes all the transformations to give you a working model. (i'd guess this is easier said than done, though.)

                    http://remusrendering.wordpress.com/

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

                      One last idea: you type in a password and the ruby works out a transformation based on the password. You then type the password in at the other end, the ruby script works out what transformation was performed and does it in reverse.

                      http://remusrendering.wordpress.com/

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        dlomas
                        last edited by

                        Model Scrambler you could also have it run in an endless cycle to arrange models randomly (evolve); evolve based on a basic floor plan layout, volume, materials, components. For when your having one of those dysfunctional modelling days. 😆

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

                          I think this is all do-able and I've got some ideas....

                          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

                            I' liking this so far. I really need to fix the bug where its not scrambling everything in one try...thats annoying.

                            Guess what this one is...

                            scrambled_2.png

                            password is 'remus'

                            Chris


                            scrambled 2.skp

                            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

                              Proof of Concept

                              Here is a ruby that begins to do some of this. Its incredibly crude right now. DO NOT run it on a model that is more than a few undered faces. It will not work on groups or components, or loose edges. Just plain geometry.

                              Obvious major problems in this test.

                              • Everything is stored in plain text in the model. Anyone with some ruby background could find it all and probably figure out how to rebuild the model. I would hope there is a way to encode the text so it is not so easy to read.
                              • There needs to be a way for the plugin to encode and decode what the user types. Otherwiser it would be easy to just find the text string in the ruby console and then copy and paste it into the PW entry box.
                              • It would be possible to strip the model of all info if the PW was entered incorrectly after a few tries. That is currently not implemented though.
                              • Its super slow. I think moving and rotating every face might be overkill. Perhaps it needs to be done in chunks of faces for speed issues. Or maybe give a few different settings for the amount of faces to be grouped together and moved around
                              • It does not work on groups/components, but I'm sure it could. It could deform everything inside each groupd, then relocate each group too. That could all be unscrambled.

                              I've attached a scrambled model and the script. Install the script. Then open the provided model. Run Plugins>Chris Fullmer Tools> Unscramble Model and watch the beauty of it!

                              You can also make any geomtery you want (again, not too much or it will take hours!). Run the Set Password first to set a PW for the model. THen run the scrambler. It will scramble the model (well, about 65% of it, see the known bug listed above). Then you can unscramble it with the unscramble method.

                              Can you guess what this is?

                              scrambled.png

                              This has potential,

                              Chris

                              PS: I forgot to mention the PW for the supplied model is 'chris' with no quotes.


                              scrambler.skp


                              clf_password_protector.rb

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

                              1 Reply Last reply Reply Quote 0
                              • EarthMoverE Offline
                                EarthMover
                                last edited by

                                It seems you are on to something. I guess you would have to have the ruby installed on the recipients computer in order to unlock the file. It would be nice if the file was able to be orbited and viewed, but as soon as a tool is chosen, then a password prompt would pop up. If the wrong password is entered three times in a row, the model will automatically scramble, or just continue to lock the edit tools.

                                3D Artist at Clearstory 3D Imaging
                                Guide Tool at Winning With Sketchup
                                Content Creator at Skapeup

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

                                  Yeah, unfortunately that gets back to the problem where they have to install the ruby to break the model. And if they don't have it, then it wouldn't scramble it. So it who would want to install that ruby?

                                  I suppose my scrambling is only useful for people wanting to protect their model entirely, not letting anyone read it at all. So it really doesn't help with a type of write protection unfortunately.

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

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

                                    Why not just put the model into a password protected zip file?

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

                                    1 Reply Last reply Reply Quote 0
                                    • L Offline
                                      linea
                                      last edited by

                                      The chaos that this could unleash in the 3DW...........

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

                                        @thomthom said:

                                        Why not just put the model into a password protected zip file?

                                        Yeah, that's really a better solution. I think somewhere in my head I was hoping this would lead to something useful, but in the end, the ability to PassWord protect a model from being looked at is not what is wanted. the ability to PassWord protect people from editing and copying is what is desired.

                                        What if the script could automatically assemble the file in the sketchup viewer while leaving it scrambled in SU? Does SU even make the viewer anymore?

                                        Chris

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

                                        1 Reply Last reply Reply Quote 0
                                        • K Offline
                                          kwistenbiebel
                                          last edited by

                                          @linea said:

                                          The chaos that this could unleash in the 3DW...........

                                          😮

                                          This is actually a sort of virus.
                                          Is such a plugin really something you guys would like to see developed?

                                          Next step: a SU file that self destructs after a certain date?

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

                                            @kwistenbiebel said:

                                            Next step: a SU file that self destructs after a certain date?

                                            Anyone else hears the Mission Impossible tune in their head..?

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

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

                                            Advertisement