[REQ] Plugin to scale collection of components
-
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.
-
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.
-
@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.
Advertisement