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
Hello and thanks for visiting! [ My Plugins | Materials | Latest Models | contact: [ form, email ], twitter // Advertise //
I can also be reached at the SketchUcation Community Forums
I can also be reached at the SketchUcation Community Forums
new template
Jim Foltz
site-news
10/06/2009
I installed a new template that will hopefully fix the comments on this blog. Also installed SyntaxHighlighter:
Subscribe to:
Post Comments (Atom)

1 comments:
Seems to be working fine now.
The highlighter is a nice addition.
Post a Comment