This page contains reference documentation for the GetTransformToGroup function. This function fills in a matrix with the values required to transform a coordinate from the source group to the destination group.
Matrix GetTransformToGroup( Group DestinationGroup, Matrix Transformation )
Function parameters are as follows:
Examples are as follows:
Vec aVec1 = new Vec; Vec aVec2 = new Vec; Matrix RootTransform = new Matrix; node.Parent().GetTransformToGroup( Model, RootTransform ); Model.GetSelectedNode( 0 ).GetSelectBounds( aVec1, aVec2 ); node.Parent().TransformPointToGroup( Model, aVec1); RootTransform.Position[0] = aVec1.X; RootTransform.Position[1] = aVec1.Y; RootTransform.Position[2] = aVec1.Z; Model.Grid.SetManipulatorTransform( RootTransform ); delete RootTransform; delete aVec1; delete aVec2;
For sample code: