THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/09/2007 at 20:36, xxxxxxxx wrote:
Cinema 4D Version: R8.2-R10
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
This is baffling me at the moment. I have a null object elsewhere in a document and want to convert its global position so that it is a local position with respect to another object in a hierarchy (local to that object's parent system). Not sure how to do this - and I can't just parent the null object to get a proper local position using GetPos().
Maybe an inverse global matrix?
lpos = null->GetMg().off * !obj->GetMg();