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

advertisement

new template



I installed a new template that will hopefully fix the comments on this blog. Also installed SyntaxHighlighter:


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

1 comments:

Thomas Thomassen said...

Seems to be working fine now.
The highlighter is a nice addition.