Great plugin thomthom, nice work, only wish remove by selection would remove the materials applied to faces and groups/components inside selected groups/components, and components in selection are made unique.
Posts made by bentleykfrog
-
RE: [Plugin] Material Tools
-
RE: [Plugin] UV Toolkit
Finally wrapped my head around this plugin and its genius. Its saving me an amazing amount of time, thanks thomthom
-
[Plugin] Face(s) to group(s)
I thought I'd re-write this script to provide an edge-condition for the grouping. Thanks to Didier and Gavvy for permission to publish this.
This is my first attempt at a sketchup ruby script though i've had some previous experience with OOP, so any advice/suggestions would be greatly appreciated.
The script can be accessed through the menu 'Plugins' -> 'Face(s) to Group(s)' or 'Context Menu (With Face Selected)' -> 'Face(s) to Group(s)'
First select some ungrouped geometry containing faces and run one of three commands:
F2G: by Any Edge: Creates a single group for each face selected
F2G: by Hard Edge: Creates a single group for each collection of faces defined by a hard edged outer loop
F2G: by Hard + Hard Hidden: Creates a single group for collection of faces defined by either a hard edged outer loop or a hard hidden edged outer loop
The first option can create an incredible amount of groups if there is a large selection, and Sketchup tends to slow down at around 750 groups per context, so F2G: by Hard Edge and F2G: by Hard + Hard Hidden gives you some control of the division of each group. F2G: by Hard Edge combined with an intersect operation allows you to define the cutting planes for large geometry, ie.
1. Group the selection of faces you want to divide
2. Enter this group and change the face style to wireframe to select and hide all the edges inside the group
3. Switch the style to any style other than wireframe and in a seperate group define some cutting planes to divide up the faces
4. In the first group, select all geometry and run 'intersect faces' -> 'with model' from the context menu
5. In the first group, select all geometry and run 'Face(s) to Group(s)' -> 'F2G: by Hard Edge' from the context menu
This should create groups seperated by the 'hard' edge created by the cutting planes.
In this version there are also some extra settings to change the edge style during the operation. They can be accessed by the menu 'Plugins' -> 'Face(s) to Group(s)':
Preserve Edge Condition: Does exactly that, leaves the edges in the selection as they are
Restore Hidden Edges: Turns all hidden edges into unhidden edges
All Edges Hard: Turns all edges in the selection to unhidden, unsoft and unsmooth (ie a hard edge)
Changelog
-
13th January 2011 (v0.51)
-
General Maintenance: Added sketchup 6 check for start_operation (thanks to Jim and Daarboven)
-
-
RE: [Plugin] each face to one group
Nice script, saves a little time putting faces into groups manually.
Little bit buggy though, it doesn't like anything other than faces, holes and erased faces make it splat in SU8 and It also divides along softened lines.Is there anything similar to this out there?
-niall