1
Python and Java API / Re: Best way to move a model?
« on: July 12, 2018, 12:50:09 AM »
Hello Alexey,
thank you for helping me out. Your tip has already helped me to move the chunk. Unfortunately I now have a different problem.
Originally I thought that the region center would be in world space. Since the region appears to be in some sort of parenting structure I found that this is not the case.
Do you have a way for me to easily get the world position of the region center? I tried just adding the chunk translation vector to the region center vector but that's not enough as the chunk seems to be rotated.
If there's a way to get the region center world position, I'd greatly appreciate a little code-example on how to get it using agisoft python scripting.
Thanks again,
Yän
thank you for helping me out. Your tip has already helped me to move the chunk. Unfortunately I now have a different problem.
Originally I thought that the region center would be in world space. Since the region appears to be in some sort of parenting structure I found that this is not the case.
Do you have a way for me to easily get the world position of the region center? I tried just adding the chunk translation vector to the region center vector but that's not enough as the chunk seems to be rotated.
If there's a way to get the region center world position, I'd greatly appreciate a little code-example on how to get it using agisoft python scripting.
Thanks again,
Yän