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

    [REQ] Plugin to scale collection of components

    Scheduled Pinned Locked Moved Plugins
    3 Posts 3 Posters 648 Views 3 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.
    • bagateloB Offline
      bagatelo
      last edited by

      I have a big collection of components and objects for sketchup. When inserting in a scene, there is a behavior that sometimes irritates is that the components are out of the axis 0,0,0, then to the insert, they end up being very far away from the center of the current vision. A form of correcting that would be to open the components one for one and to move them for the center. But that would be very annoying to do that in more than 2000 components. Maybe it was possible to create a script to open all components of a folder and move them for the point zero.

      Another possibility would be to scale them for a reasonable value, because some of them come very big or very small. Then say are to assign a paste with cars, then we would say to the script that left them in a certain dimension, and it assigned all with that pattern.

      Another possibility would be to do that whenever it imported some component, instead of to open and to save files in a folder.

      While the cat's away, the mice will play

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

        Hmm, that would require more than a ruby script. It would need some sort of batch program written and I don't know how to do that.

        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

          @chris fullmer said:

          Hmm, that would require more than a ruby script. It would need some sort of batch program written and I don't know how to do that.

          I think it can be done in ruby. Loop over all .skp files in a folder, load them into the model, move all entities to origin, then export. ComponentDefinition has the .save_as method. DefinitionList has the .load method.

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

          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