Make all Component Unique
-
My problem. If I make all my small parts components, when I wish to copy the larger piece (made from multiple components) and show a progression of activities, i.e. picking up the large piece and moving, lifting or rotating with a crane, since all the parts are components, I have to drill through a multitude of component to make all the parts and pieces unique.
Is there a one liner that will allow me to make a multi-piece component piece selection and drill down though all the components and groups and make all the component in the selection unique? This would allow me to make a selection of a multiple component piece, run the one liner and have all the component in my selection unique.
Or maybe there is a plugin that already does this and I am having trouble finding the plugin or realizing that it does what I wish.
Thank you in advance
Ken
-
I'm away from my sketchup and can not try, but maybe there is a way in the outliner?
-
m=Sketchup.active_model;m.start_operation('u');m.selection.to_a.select{|e|e.is_a?(Sketchup;;ComponentInstance)||e.is_a?(Sketchup;;Group)}.each{|e|if e.is_a?(Sketchup;;ComponentInstance);e.definition.instances.each{|i|i.make_unique}if e.definition.instances[1];else;e.entities.parent.instances.each{|i|i.make_unique}if e.entities.parent.instances[1];end;};m.commit_operation;It is untested ! It should make all selected components/groups unique, it is undo-able.
To 'drill down' needs a script as it'll have to 'iterate'... Something like### EDIT; removed pending update...Usage
TIG.Uniquify.newon a selection.
Again it's untested
-
FredoScale > Make Unique
-
-
Isn't that crazy how you can ask for a tool to be created and it just appears? Sorcery I say!
-
It already existed in FredoScale...
-
@thomthom said:
It already existed in FredoScale...
thomthom
Actually they work diffidently.
If you have 6 copies of nested components, and you pick one copy of the nested components, FredoScale will make all the components in the copy you picked unique, leaving the other 5 copies un-modified. So one copy has been modified and the other 5 are still the same and connected.
If you have 6 copies of a nested components, and you pick one copy of the nested components and use TIG program, all 6 copies will be made unique. So the all copies will have been modified and have unique components.
At first I wasn't sure, but after using both program on my crane animation, I find both are useful. It just depends on what I wish to achieve.
I searched this forum and other web areas and didn't find FredoScale as a solution.
thomthom thanks for the find. It is getting harder and harder to keep track of the plugins.
Thanks to all you monitor this site and provide advice.
Ken
-
What if you select your whole model and ran fredo's Make Unique?
-
@thomthom said:
What if you select your whole model and ran fredo's Make Unique?
Well I am not sure. My model is in the 50 megs range. And I have found out the hard way, that if you do a series of moving or rotations and you don't save after a few of these operations, ( I don't have an exact number of moves or rotations) Sketchup will shut down. So I am reluctant to do any experiments until I have this project completed.
And saving a model after doing a couple of moves/rotation is very time consuming.
Will try when I am have time.
On another note, I went back to the plugin in index and found FredoScale. And I couldn't find any info on the make unique menu option.
Ken
-
Not sure if it's described in the plugin description - but there is a function there.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement