I googled and searched for this theme, but could not yet find the working solution that would fit my needs.
I am looking for a python or even mel function to simulate AimConstraint behaviour, not in realtime, just to rotate an object to look at another once.
I made a tool, and as part of it’s process it goes through the timeline and selection of objects, aims and transforms objects along curve, and sets keyframes on those.
Due to the specifics of it, I need to only touch the objects with cmds.xform command, I can’t actually constraint them or do anything that could break the rig.
So what I do now, is create temporary locators, aimConstrain those locators, delete contstraint, xform my objects to those locators, etc etc.
It works, but it leaves a lot of garbage in the scene, likr AimBlend nodes, which I then cleanup. And this makes Undo process really slow. So… I hope for your help.
Thanks.