On 04/08/2015 at 13:55, xxxxxxxx wrote:
Hello friends,
I've been in Vicon's CaraPost software these days (crazy!), and, skipping all the verbose details, I need to execute a script.py on a bunch of vector data BEFORE I bring it (an fbx) into C4D--all that's fine.
C4D's been my primary Python place for a few years, now, and I was daydreaming about importing the c4d module outside of c4d so I could use utils' matrix helpers. Well, that would be lazy of me and I'm guessing not possible (I imagine the modules are tucked away somewhere), so my primary question is:
Does anyone have a module suggestion for replicating c4d's matrix and helper functions from utils? I'm currently looking into NumPy, then thought I'd just do it myself which took me to places like this one, then started searching again and quickly thought, "If only I could use c4d.utils!" It's good to get me out of my comfort zone, but still, sheesh, it's a crazy world out there.
Thanks guys!
Just to repeat/clarify: I have an imaginary null object with a position and rotation vector (list of three floats). I need to solve for the matrix required to move that null to position2/rotation2 and multiply a list of vector3's by said matrix. I think that question's too big for someone to just walk me through, so I was looking for module advice and distantly hoping I could just be lazy and use c4d.utils out of c4d.
If you read all of this, thanks again x 1,000!