Member kritskiy Posted October 22, 2024 Member Share Posted October 22, 2024 I'm trying to understand the object position values. Tool Options Position, Symmetry Bounding Box and API .getTransform() all give absolutely different values. How do they correlate? For example if I want to set the Symmetry center to the object pivot, how do I approach that? Quote Link to comment Share on other sites More sharing options...
VitalVolokh Posted October 22, 2024 Share Posted October 22, 2024 Hello! Thank you for request. To better understand and solve your problem, please send a part of your python script, it is possible that we have a bug in the API. Quote Link to comment Share on other sites More sharing options...
Member kritskiy Posted October 23, 2024 Author Member Share Posted October 23, 2024 (edited) On 10/22/2024 at 11:24 AM, VitalVolokh said: Hello! Thank you for request. To better understand and solve your problem, please send a part of your python script, it is possible that we have a bug in the API. Hi Vitaly, I sent via email to Andrew and you! Thank you Edited October 23, 2024 by kritskiy Quote Link to comment Share on other sites More sharing options...
Member kritskiy Posted October 28, 2024 Author Member Share Posted October 28, 2024 (edited) On 10/22/2024 at 11:24 AM, VitalVolokh said: Hello! Thank you for request. To better understand and solve your problem, please send a part of your python script, it is possible that we have a bug in the API. Didn't get any response via email so I'll post the script here: import coat transform = coat.Scene.current().getTransform() row1 = transform.GetRow0() row2 = transform.GetRow1() row3 = transform.GetRow2() row4 = transform.GetRow3() print(f"row 1: {row1.w} {row1.x} {row1.y} {row1.z}") print(f"row 2: {row2.w} {row2.x} {row2.y} {row2.z}") print(f"row 3: {row3.w} {row3.x} {row3.y} {row3.z}") print(f"row 4: {row4.w} {row4.x} {row4.y} {row4.z}") In this example I import a cube with a pivot in its corner: After importing to 3DC the Position values seem to be similar to Blender's. In the Symmetry window if I click "Pick from Bounding Box" I'm getting values that I can't understand, how they correlate with position/location. And then if I print out transformation values from a script I'm getting a matrix like this: If my move the object by 100 units in Z axis, I'm getting a different matrix with a weird value: Thanks! Edited October 28, 2024 by kritskiy 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.