Auto make multiple group or component
-
Copy+Paste the one-liner below into a Notepad++ file.
The reason for that is so you can edit the start partn="???"
, this sets the name of each group Face#1, Face#2 etc... If you are processing several parts it might be useful to have differing names ? They list in the Outliner in alphanumerical order.Select what you want to separate into groups - only faces are processed so no need to be too careful, just ensure the faces you want to group are included.
Copy all of the text.
Open the Ruby Console.
Paste the text.
Press <enter>.Now all selected faces are made into separate groups.
It is one step undo-able...n="Face";m=Sketchup.active_model;s=m.selection;fs=s.grep(Sketchup;;Face);s.clear;a=m.active_entities;m.start_operation("~",true);fs.each_with_index{|f,i|g=a.add_group(f);g.name="#{n}##{i+1}"};m.commit_operation
-
it works perfectly!! thank you so much! you save my day
-
great thanks!!!
-
Great plugin!
Saved my time for hundreds of separated objects to group/component!
Thanks! -
Took me a few goes to get it running but got there! This is just what I needed. Huge thanks, Tig.
-
this is such a great time saver for tricky situations. thanks!
Has this ever been officially made into a plugin for the masses?
thanks,
bob -
Hello;
I've tried several times but it doesn't work. I don't understand where is my fault .
I cannot see any shortcutI use SU 17 thanks for helping
-
@ozansahin said:
I use SU 17 thanks for helping
fix it in your bio (currently showing SU8) then you wouldn't have to remember to type it
-
It works perfectly. your are god TIG
-
hello,
I am looking to generate Groups instead of Components as output, also sometimes the components generated by the script are pieces of the same whole element, for example a chair is autogenerated in components separately by each leg, arm, rest but all of them must be the same group. It is like a nested components
Advertisement