UI.add_context_menu_handler do |menu|
sel = Sketchup.active_model.selection
if sel.nitems == 1
if sel[0].is_a? Sketchup::Group or sel[0].is_a? Sketchup::ComponentInstance
menu.add_item("Reset Transformation") { sel[0].transformation = IDENTITY }
menu.add_item("Move to Origin") {
tr = sel[0].transformation.to_a
tr[12] = 0
tr[13] = 0
tr[14] = 0
sel[0].transformation = tr
}
end
end
end
new template
I installed a new template that will hopefully fix the comments on this blog. Also installed SyntaxHighlighter:
Subscribe to:
Post Comments (Atom)
Popular Posts (Last 30 Days)
-
Sketchup materials library of 12x12 vinyl floor tiles. Download download
-
This SketchUp script assists the user in flattening, or unfolding, 3d objects onto a 2d plane. Installation Download unfoldtool.zip . M...
-
This importer lets you import both ASCII and binary STL files into SketchUp. It automatically detects the type of .stl file and imports acc...
-
The Construction Line Tool allows you to draw constructions lines in a similar way as the Pencil Tool. Toolbar: View > Toolbars >...
-
This Windows-only plugin creates a Toolbar for controlling the Ruby Console It can open and close the Ruby console, clear the console, loa...
-
This is the first step in a greeble plugin. And by first step I mean there are possible bugs. Protrude performs 4 basic operations: div...
-
Apr 2014 * Renamed to MoveIt , and available in t SketchUcation Plugin Store Aug 16, 2009 * Released update fixing possible bugsplat...
-
2010-09 * Updated for small bug in placement in SketchUp 8. toolbars-2010-09.zip This is an update to Custom Toolbars plugin with t...
-
Dec 18, 2010 - TIG just released a new .obj exporter. TIG's plugins are usually solid, so I recommend trying TIG's. ( TIG's OBJe...
-
As you probably know, SketchUp 8 Free does not include the ability import/export DXF/DWG files. Although there are some free and commercia...
1 comment:
Seems to be working fine now.
The highlighter is a nice addition.
Post a Comment