[Plugin] Silhouette to Plane v1.1
-
(c) TIG 2010
Permission to use, copy, modify, and distribute this software for
any purpose and without fee is hereby granted, provided that the above
copyright notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
You need this file
#SilhouetteToPlane.rb >>> Plugins Folder
You must also have this file
#WorkPlane.rb >>> Plugins Folder
Usage:
Make or choose a 'WorkPlane' that is located on the 'plane' onto which
you want to project your 'flattened' Geometry.
Select the 'WorkPlane' and the required Geometry [Edges etc, note that
Faces etc will be ignored], and/or Groups, and/or Component_Instances.
Run this Tool from the menu 'Plugins' > 'Silhouette to Plane'
or type 'silhouettetoplane' in the Ruby Console.
If there is no 'WorkPlane' and/or other objects in the Selection you get an
error message.
Assuming it runs...
All Edges in the Selection that are not 'hidden' or not on 'off layers' are
projected onto that 'plane'.
The new 'flattened' Edges are put into a new Group named 'SIL_123456.789'
[it has a 'date/time' suffix].
Each new Edge takes the original Edge's layer.
The new Edges are inspected and only those that are needed to form a fully
faced 'silhouette' WITHOUT cut-outs are retained.
With this version internal 'hole' cut-outs in silhouettes are NOT formed.
On completion the new Group ['SIL_123456.789'] is left highlighted.
Donations:
by PayPal to info @ revitrev.org ___________________________________________________________________________
Version:
1.0 20101022 First release.
1.1 20101023 The correct Plane of a 'WorkPlane' is now used even if it has
been Transformed inside its own Group.
Speed and reliability improved. Title fixed.
___________________________________________________________________________#SilhouetteToPlane.rb -
very good idea TIG! Although, I am getting some errors here - with a single loop of edges it works fine, but for several faces it gets messed up:
btw, would it be possible to have the projection lines run all to the same focal point, similar to Radial Lines plugin? Like this we could also have a flattened picture of a perspective view.
-
This is the first [buggy] release!
Can you post and example SKP so that I can see the errors... -
-
TIG, How many plugin, and point releases are you currently averaging? 1 a week?-)
And, you still find time to help us. Thanks!!!!!
-
-
Hi TIG,
I suggest you change line #63 to: @model.start_operation("Silhouette to Plane")
Thanks for all your hard work ! -
Here's v1.1 http://forums.sketchucation.com/viewtopic.php?p=281445#p281445
The correct Plane of a 'WorkPlane' is now used even if it has been Transformed inside its own Group.
Speed and reliability improved.
Title fixed. -
Great Script! Perfect for sorting out faces that have trouble closing. Could you possibly have it so that if no work plane is selected, that it will default to a placing the silhouette on the 0 z plane? Similar to ThomThoms Flatten script in his "Plan Tools", except yours automagically creates the face and groups it.
-
@earthmover said:
Great Script! Perfect for sorting out faces that have trouble closing. Could you possibly have it so that if no work plane is selected, that it will default to a placing the silhouette on the 0 z plane? Similar to ThomThoms Flatten script in his "Plan Tools", except yours automagically creates the face and groups it.
You could always make a quick WorkPlane on the ground...
-
Just great! You are a hero, hats off to thee!
-
Here's an example...
-
This sort of image must be at each first post
-
Here's another example.
Silhouette to plane is also great for flattening a set of looped edges you want to be planar to form a face, but cant seem to find the vert that's out of whack.
-
this could be great for making face me components! render the 3d version then apply as texture to the 2d.
-
TIG, fabulous! Thank you for the flatten to plane script as well. You are very generous, and gifted.
-
TIG!!!
-
Thanks, TIG. Amazing script.
Does this plugin do the flatten to plane, or is that a separate plugin? I can't seem to find the command for flatten to plane. (Silhouette to Plane is working great)
-
Flatten to Plane:
-
Just to point out again what Adam already said, Silhouette to Workplane makes closing difficult outlines sooo easy. Brought back the faith in freehand tool to me.
Rocky, that is a pretty smart idea. I am having thoughts about this kind of matte painting tricks all the time.
(like here: http://forums.sketchucation.com/viewtopic.php?f=79&t=31069)thanks again for your generosity TIG!
Advertisement