Transformation
-
I am Working with component Instance. In that I am using the Transformation object and I am calling the method "transformation.to_a" method and it will return a 16 element array.
So I want help to identify the value returning in the array. I am not exactly understand values that is in the array.
Thank you -
There are several threads discussing Transformations - do a search on SCF.
You can already access several properties without looking into it as a matrix.
e.g. t.origin, t.zaxis etc
The rotation and scale parts of the matrix are complicated as they interact with one another...
Here are a few pointers/links etc, but search the forums for more details... -
In addition, if you are not already knowledgeable on the subject of 3D transformations, you should do some reading up on the web. SketchUp uses a conventional representation, but the math can be quite confusing...
-
You might find it useful to use the Transformation Inspector to visualize the matrix:
http://extensions.sketchup.com/en/content/transformation-inspector
Advertisement