Plugin Facegroup [triple resolved]
-
Seems Facegroup by Gavvy don't works fine
Does exist another plug who transform a selection of 6 faces on 6 groups ?
(for a simple cube) or any selections of x faces in x groups? -
-
When you select only faces of a cube (or all edges + faces) only up and down faces are transformed in groups !
Cube created by a face Pushpulled
And the plug "works" is given for only the V6 but works in same way for the V7 !
-
With the Ruby Console open - do you get any errors?
-
There's an odd line in the code:
next if f.normal.z == 0
Comment that one out and it appears to work.However - there might be other issues - it iterates the selection which is modified as it groups faces.
To be safe, here's a modded snippet:ss.to_a.each {|f| next unless f.is_a?(Sketchup;;Face) #next if f.normal.z == 0 model.active_entities.add_group(f) }
-
Absolutly no error with the ruby console!
Just result is half "false" : only up and down faces are an invidual group!
Seems common "edges, faces" make the false result
have you same result than me? (here in mode XRAY in V6, it's the same in V7)
-
Many thanks!
Else I have found Make_components by Matt66 at Crai Ruby depot!
-
@unknownuser said:
Many thanks!
Else I have found Make_components by Matt66 at Crai Ruby depot!
This simple one-liner makes each face in the selection into a separate group
m=Sketchup.active_model;n=m.active_entities;m.selection.to_a.each{|e|n.add_group(e)if e.class==Sketchup;;Face}
You can use it as the basis of a new tool......
-
@ TIG: Works fine!
So A third solution
I must change the title and my other post!
Line above by TIG, Grow by TIG, Radial Move by C.Plassais
Advertisement