18
« on: February 18, 2016, 12:42:16 AM »
Thanks for sharing the script! It was hugely helpful in getting me started scripting for Agisoft. I am now modifying it for my own use, but I am confused. I would like to set a different center for the bounding box.
Currently (3dmij's script):
mx = (chunk.markers[c1].position + chunk.markers[c2].position + chunk.markers[c3].position + chunk.markers[c4].position) / 4.
mx = PhotoScan.Vector([mx[0], mx[1], mx[2]])
newregion.center = mx
This also works:
m2 = chunk.markers[mp0].position
m2 = PhotoScan.Vector([m2[0], m2[1], m2[2]])
newregion.center = m2
But when I try to shift the bounding box along one of the axes by adding a constant to one of the values, I see the box move along a diagonal path in my coordinate system:
m2 = chunk.markers[mp0].position
m2 = PhotoScan.Vector([m2[0], m2[1], m2[2]+5])
newregion.center = m2
Are there multiple coordinate systems at work here? It would be really nice if could shift the bounding box in the coordinate system that is the same as the RGB arrows that show on the screen.