[Plugin] Loose Geometry to Groups (Updated August 28, 2009)
-
Sorry, I tried to be too clever in my last example...
this:
("Edge" or "Face")
always returns "Edge" so your comparison always boils down to
if entity.typename == "Edge"
which works just fine since all_connected will pick up any connected faces.
-
Ohh! That makes so much sense now. I was wondering why it was working, but that explains it. But yes,it was not doing what I thought it was doing. Thanks for clearing that up Jim.
Chris
-
-
This script had a bug that I updated. I also added a counter to the status bar so that you can see the script in action. It counts the entities as it processes them so you know where it is in the process (though it is possible that the Sketchup user interface might freeze and quite showing the counter while processing large selections).
version 1.2 2009-08-28
- Fixed a major bug where the script was not working with selections.
- Fixed some internal coding that might make it slightly faster.
- Added an entity counter to the Status Bar so you can see the script working.
- Changed the Undo title from "Make groups" to "Loose to Groups" (this is the title that you see in the Edit > Undo command).
This is script is located on smustard.com at:
http://www.smustard.com/script/Loose2Groups
Chris
-
Hi Chris Fullmer
Great plugin, it is very usefull.
Would the plugin be possible to make components instead of groups??
-
Just edit it when the group is made and
group.to_component
? -
Yup, add that line:
group.to_component
in between lines 82 and 83 - so right after this line:
group = @entities.add_group(to_group)
Its near the bottom of the scipt. about 25 lines up from the bottom.
Chris
-
-
Chris, why are you splitting the geometry processing into chunks of 1000? Is it to speed up creation?
do you not risk splitting groups of loose geometry? -
Thom, yes it was an attempt to speed things up. I do not think it helped at all. I can't look at the code right now, but I was thinking that I done something to make sure I did not split up geometry......but its also possible I did not think of that
Chris Fullmer
-
Maybe you did, I did not decipher the code that thoroughly. Was curious if you found some speed tricks.
-
hi, i played with this plugin and all was god, but now
i have a bug that say in spanish "AJUSTA LA HORA", in english its something like "CHANGE THE CLOCK TIME"
????????WHY -
@guaucorreo said:
hi, i played with this plugin and all was god, but now
i have a bug that say in spanish "AJUSTA LA HORA", in english its something like "CHANGE THE CLOCK TIME"
????????WHYCan you post a screenshot of your error message?
-
i have the "loose geometry to components"
-
@guaucorreo said:
i have the "loose geometry to components"
The error isn't from this plugin. The plugin is all English, and there is nothing in its code that mess with the clock.
If you post a screenshot of the error message we might be able to determine what it is.
-
after three seconds of runing the plugin send me this message "ajusta la hora"
-
i have to erase the plugin and then upload to go wright, but after two or three times going well, the pluging crash.
i am working on the xfrog trees to make components of the leaves, and this plugin its perfect. then i work with yours similar objects, and all goes good except this bug.
thanksss -
There's nothing in the source code of this plugin that has that text or any reference to any Time objects either.
What that is, is the tooltip for the Shadow Toolbar your mouse is currently hovering over in that screenshot.
You can see how it looks like in my English SU version:
-
you have reason, the window plugin is near the sun toolbar. that´s not the bug
thanks -
Advertisement