by thomthom » Wed Apr 25, 2012 2:37 pm
OverviewDebugging utility to visualize and edit the transformation matrix of groups and components. AccessPlugins > Transformation InspectorUsageTop 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 GuideFootprint <Sketchup>/Plugins/ +- 
tt_transformation.rb +- 
TT_Transformation Source Codehttps://bitbucket.org/thomthom/transfor ... inspector/
Last edited by thomthom on Sat Jan 18, 2014 1:41 pm, edited 1 time in total.
-

thomthom
- PluginStore Author

-
- Posts: 19457
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
-
by pilou » Wed Apr 25, 2012 2:55 pm
Does this works for any volumes ? Cylinders etc.. 
-

pilou
- Top SketchUcator
-
- Posts: 23067
- Joined: Wed Jan 23, 2008 10:33 pm
- Name: Pilou
- Operating system: Windows
- SketchUp version: 2017
- License type: Free/Make
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by Rich O Brien » Wed Apr 25, 2012 2:56 pm
Go get some beer 
I never know where I'm headed, just make it up as I go - Box 22:4
-

Rich O Brien
- Administrator
-
- Posts: 13460
- Joined: Fri Oct 31, 2008 9:05 am
- Location: Ireland
- Operating system: Windows
- SketchUp version: 2023
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
by thomthom » Wed Apr 25, 2012 3:07 pm
Pilou wrote:Does this works for any volumes ? Cylinders etc.. 
It works on Groups and Components - doesn't care for the content. Rich O'Brien wrote:Go get some beer  Will do!  And I promise there will be a new toy for you soon*! *soon being relative to infinite time.
-

thomthom
- PluginStore Author

-
- Posts: 19457
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
-
by Rich O Brien » Wed Apr 25, 2012 3:27 pm
Enjoy
I never know where I'm headed, just make it up as I go - Box 22:4
-

Rich O Brien
- Administrator
-
- Posts: 13460
- Joined: Fri Oct 31, 2008 9:05 am
- Location: Ireland
- Operating system: Windows
- SketchUp version: 2023
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
by 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"
TIG
-

TIG
- Global Moderator
-
- Posts: 20427
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by 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.
-

thomthom
- PluginStore Author

-
- Posts: 19457
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
-
by Pixero » Thu Apr 26, 2012 9:00 am
This is great! 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...
-

Pixero
-
- Posts: 2595
- Joined: Thu May 24, 2018 12:49 pm
- Location: Halmstad, Sweden
- Name: Pixero
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by 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!  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 
-
function
-
- Posts: 120
- Joined: Mon Mar 29, 2010 6:24 am
- Name: shredd
by 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
-
mattao
-
- Posts: 1
- Joined: Wed May 23, 2012 10:01 pm
by Bob James » Sat Jul 07, 2012 4:43 am
Off Subjectthomthom 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? 
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
-

Bob James
- Premium Member

-
- Posts: 1239
- Joined: Fri Jan 18, 2008 9:29 pm
- Location: Lompoc, CA, USA
- Name: Robert James
- Operating system: Windows
- SketchUp version: 2018
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Intermediate
by thomthom » Sat Jul 07, 2012 11:55 am
Bob James wrote:Speaking of "new toy", what ever happened to the gizmo for Vertex Tools? 
Summer happened.  And life in general. Sorry it's taking so long.
-

thomthom
- PluginStore Author

-
- Posts: 19457
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
-
by 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?
-

thomthom
- PluginStore Author

-
- Posts: 19457
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: Thomas Thomassen
- Operating system: Windows
- SketchUp version: 2019
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
-
by 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.htmli 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?
-
glro
-
- Posts: 395
- Joined: Mon Nov 30, 2009 9:45 am
- Location: Spain
- Name: georges louis m le roux
- Operating system: Windows
- SketchUp version: pre-2013
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Intermediate
by glro » Sat May 04, 2013 2:06 pm
-
glro
-
- Posts: 395
- Joined: Mon Nov 30, 2009 9:45 am
- Location: Spain
- Name: georges louis m le roux
- Operating system: Windows
- SketchUp version: pre-2013
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Intermediate
by Ad Machine » 5 minutes ago
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|