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...
-
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...
-
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...
-
The Construction Line Tool allows you to draw constructions lines in a similar way as the Pencil Tool. Toolbar: View > Toolbars >...
-
Apr 2014 * Renamed to MoveIt , and available in t SketchUcation Plugin Store Aug 16, 2009 * Released update fixing possible bugsplat...
-
The Inputbox class makes it easy to create user input dialogs by providing a consistent interface to UI.inputbox for text fields and drop-do...
-
I am looking for suggestions on where I could host my plugins. The main limitation of using a blog to host content is the feedback (or lack ...
-
Update: Plusing has been released here . A bend plugin for SketchUp. Another outstanding plugin by Fredo6.
1 comment:
Seems to be working fine now.
The highlighter is a nice addition.
Post a Comment