{"id":64,"date":"2016-07-26T14:17:09","date_gmt":"2016-07-26T21:17:09","guid":{"rendered":"http:\/\/blog.stevenzaharakis.com\/?p=64"},"modified":"2016-07-26T14:19:35","modified_gmt":"2016-07-26T21:19:35","slug":"motionbuilder-tip-getting-global-transformation-values","status":"publish","type":"post","link":"https:\/\/blog.stevenzaharakis.com\/index.php\/2016\/07\/26\/motionbuilder-tip-getting-global-transformation-values\/","title":{"rendered":"Motionbuilder Tip : Getting Global transformation values"},"content":{"rendered":"<p>Get transforms of testCube1, then Set those to testCube2 transforms&#8230;<\/p>\n<pre class=\"lang:default decode:true \">cube = FBModelCube(\"testCube1\")\r\nposition = FBVector3d()\r\nrotation = FBVector3d()\r\nscaling = FBVector3d()\r\ncube.GetVector (position, FBModelTransformationType.kModelTranslation)\r\ncube.GetVector (rotation, FBModelTransformationType.kModelRotation)\r\ncube.GetVector (scaling, FBModelTransformationType.kModelScaling)\r\n\r\ncube2 = FBModelCube(\"testCube2\")\r\ncube2.SetVector(position, FBModelTransformationType.kModelTranslation)\r\ncube2.SetVector (rotation, FBModelTransformationType.kModelRotation)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Get transforms of testCube1, then Set those to testCube2 transforms&#8230; cube = FBModelCube(&#8220;testCube1&#8221;) position = FBVector3d() rotation = FBVector3d() scaling = FBVector3d() cube.GetVector (position, FBModelTransformationType.kModelTranslation) cube.GetVector (rotation, FBModelTransformationType.kModelRotation) cube.GetVector (scaling, FBModelTransformationType.kModelScaling) cube2 = FBModelCube(&#8220;testCube2&#8221;) cube2.SetVector(position, FBModelTransformationType.kModelTranslation) cube2.SetVector (rotation, FBModelTransformationType.kModelRotation)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[8,7],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/posts\/64"}],"collection":[{"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":5,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":70,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions\/70"}],"wp:attachment":[{"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}