[Plugin] Transformation Inspector

[Plugin] Transformation Inspector

Postby thomthom » Wed Apr 25, 2012 2:37 pm

Overview
Debugging utility to visualize and edit the transformation matrix of groups and components.

Access
Plugins > Transformation Inspector

Usage
Top matrix is the entity matrix.

Middle matrix allows you to make changes relative to the entity matrix. This can be reset or applied to the entity.

Bottom matrix is the compound result.

TransformationInspector.png


Requirements
  • SketchUp 7 or newer - ( Other versions untested )
  • TT_Lib2 (v2.6.0)

Download


Transformation Inspector - 1.0.1.rbz

Plugin Installation Guide

Footprint
<Sketchup>/Plugins/
+-
tt_transformation.rb
+-
TT_Transformation

Source Code
https://bitbucket.org/thomthom/transfor ... inspector/

0
Last edited by thomthom on Sat Jan 18, 2014 1:41 pm, edited 1 time in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby pilou » Wed Apr 25, 2012 2:55 pm

Does this works for any volumes ? Cylinders etc.. :oops:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby Rich O Brien » Wed Apr 25, 2012 2:56 pm

:thumb:

Go get some beer ;)
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby thomthom » Wed Apr 25, 2012 3:07 pm

Pilou wrote:Does this works for any volumes ? Cylinders etc.. :oops:

It works on Groups and Components - doesn't care for the content.

Rich O'Brien wrote:Go get some beer ;)

:thumb: :berserk: :thumb:
Will do! :D And I promise there will be a new toy for you soon*!

*soon being relative to infinite time.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby Rich O Brien » Wed Apr 25, 2012 3:27 pm

Enjoy
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby TIG » Wed Apr 25, 2012 5:06 pm

It would be more 'intuitive' if there was some guidance about which bits of the transformation matrix did what, and how they interact [especially rotation/scaling/handing] etc
http://www.martinrinehart.com/models/tu ... ial_t.html
Code: Select all
###
trans=trans.to_a

        scalex=Math.sqrt(trans[0]**2+trans[1]**2+trans[2]**2)
        scaley=Math.sqrt(trans[4]**2+trans[5]**2+trans[6]**2)
        scalez=Math.sqrt(trans[8]**2+trans[9]**2+trans[10]**2)
                 
        scale=scalex
        scale=scaley if scaley>scale
        scale=scalez if scalez>scale

        puts "         <pos>#{trans[12]} #{trans[13]} #{trans[14]}</pos>\n"
        puts "         <scale>#{scale}</scale>\n"   
        puts "         <rotation>\n"
        puts "            <matrix>\n"
        puts "               #{trans[0]/scalex} #{trans[4]/scaley} #{trans[8]/scalez} #{trans[1]/scalex} #{trans[5]/scaley} #{trans[9]/scalez} #{trans[2]/scalex} #{trans[6]/scaley} #{trans[10]/scalez}\n"
        puts "            </matrix>\n"
        puts "         </rotation>\n"
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby thomthom » Thu Apr 26, 2012 8:39 am

Yea - that is my plan as well. And I want to be able to create matrices from the Geom::Transformation helper methods so one can visualize what they do.

I started adding tooltips for scaling and translation - but the rotation turned out to be more complex so I put it on hold until I better understood what it did - as RS for the whole 3x3 matrix felt a bit too generic.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby Pixero » Thu Apr 26, 2012 9:00 am

This is great! :thumb:

Actually I have though for some time to do a port of one of my MentalRay plugins that does pretty much the same.
Now I don't have to.

What I would like is a more user friendly GUI.
Something like this:

Code: Select all
Translate  X  Y  Z
Rotate     X  Y  Z
Scale      X  Y  Z
Shear      X  Y  Z

Rotate Order  (dropdown with: 1: XYZ, 2: YZX, 3: ZXY, 4: XZY, 5: YXZ, 6: ZYX
Rotate Axis   X  Y  Z

World Rotate Pivot   X  Y  Z
World Scale Pivot    X  Y  Z



Edit: I just realised that you can easily go back to a undeformed state simply by doing a negative transform of the applied one.
Thats even better...
0
User avatar
Pixero 
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby function » Wed Jun 20, 2012 5:56 pm

Thanks TT - I'd grown so used to the Maya channel box that I was making dyna-components that do this - cept I had to make one for every object! :cry: This is so useful.
I'd love to see units incorporated and that slick java UI you do. Some sort of mini-icon for the rows might be helpful, too.

this is the maya channel box
0

function 
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby mattao » Fri Jul 06, 2012 10:11 pm

I'd like a contextual to "reset" a component position.

I'd like to be sure my component origin is truly at a 0.0.0 position.

Transformation inspector is able to help me to do this ( and it's very efficient and I thank you )

By the way I can mount complex scene using External sketchup files as reference, and thanks to you they are perfectly well located in the main scene.

Could you help me get a right click substitute for transformation inspector.

I'd like to select a component and right click to :
TransfoMenu -> reset position
TransfoMenu -> reset scale
TransfoMenu -> reset rotation
TransfoMenu -> reset all

thanks
0

mattao 
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby Bob James » Sat Jul 07, 2012 4:43 am

Off Subject
thomthom wrote: And I promise there will be a new toy for you soon*!

Speaking of "new toy", what ever happened to the gizmo for Vertex Tools? :roll:
0
i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby thomthom » Sat Jul 07, 2012 11:55 am

Bob James wrote:Speaking of "new toy", what ever happened to the gizmo for Vertex Tools? :roll:

Summer happened. :( And life in general. Sorry it's taking so long.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby thomthom » Sat Jul 07, 2012 11:56 am

mattao wrote:I'd like to select a component and right click to :
TransfoMenu -> reset position
TransfoMenu -> reset scale
TransfoMenu -> reset rotation
TransfoMenu -> reset all


Reset position would place it at 0,0,0?
Reset rotation would align it to the axis of the parent context?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby glro » Sat May 04, 2013 9:50 am

trans mat 45° rotation.jpg
i am trying to understand how the transformation matrix works, and i notice a difference between what is shown in the matrix using your plugin, and what is supposed to be shown refering to http://www.martinrinehart.com/models/tutorial/tutorial_t.html

i took a component, rotated it 45 degrees, and this is what "transformation inspector" shows

However, according to martinrinehart, i would expect the negative value to be first line second row

I am surely missing something; but can you explain the differrence?
0

glro 
 

Re: [Plugin] Transformation Inspector (1.0.1) — 25 April 201

Postby glro » Sat May 04, 2013 2:06 pm

i found the reason

http://www.ruthless.zathras.de/facts/apps/polygonesia/3d-transformation-matrix.php

seems that martinrinehart put the minus sign in the wrong place
0

glro 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: kittles17 and 7 guests

Visit our sponsors: