Forum

absolute vs relative positions

21 May 2016 18:12
Here's a blend file, the json and bin files exported from it, and a slightly modified version of your starter program which just loads it and prints some diagnostics.

I want to get the absolute position of the "Right_limiter" object
which ought, I think, to be 5,0,0, but …

get_translation();
get_translation_rel();
m_transform.get_tsr();
get_tsr_rel();
get_object_center();
… all return the same (wrong) thing.

Right_limiter get_translation @     0,-0.20000000298023224,-2
Right_limiter get_translation_rel @ 0,-0.20000000298023224,-2
Right_limiter get_tsr @ 0,-0.20000000298023224,-2,1,0,0,0,1
Right_limiter get_tsr_rel @ 0,-0.20000000298023224,-2,1,0,0,0,1
Right_limiter get_object_center @ -0.0660799965262413,-0.20000000298023224,-1.9314600229263306

I must be missing something obvious but what? Even if there's a "user too stupid" error here, surely the "_rel" versions should produce a different result from the non "_rel" ones?
TIA Phil Robinson

03 June 2016 14:55
Answered in this topic.
The Founder | Twitter | Facebook | Linkedin
 
Please register or log in to leave a reply.