THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/04/2010 at 17:14, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11.528
Platform:
Language(s) : C++ ;
---------
Hi everyone,
Is there any way to report and/or set the matrices of clones as they are effected by a MoDynamics RigidBody tag with C++? Is everything I need in c4d_baseeffectordata.h? A rigid body tag isn't really an effector, right, so I don't see how this class would work.
All I want for now is to report the positions of each clone as they move. The Xpresso MotionGraphic>MotionObjects>Data can report the positions of the top level objects in a cloner, but I'd like to get positions for objects even if they are allowed to fall apart using the "all" settings, i.e., if I have 3 Cubes as children of a clone, each with one child sphere, I want to print the correct global positions of all 6 objects whether the Tag>Collision>IndividualElements is set to Top Level, All, Second Level, etc.
Eventually, I'd like to be able to set positions as well.
I understand from previous threads that Global Matrices of clones altered by modynamics forces cannot be retrieved or set with Coffee. There is some chat that one can do this with C++. I've written a few C++ plugins, so I'm ready-ish, but I can't find any discussion of how to gain any access to MoDynamics, to Rigid Body Tags, to MoData, etc I'm guessing the commands to find a clone's position are more generic when in C++ and that I'd have to follow one of the Hair examples in the SDK to get something close.
Any pointers to appropriate threads or examples would be most appreciated.
Thanks,
Graham