So I am trying to map all the rotation angles present into the range of 0<angle<360, at every key points for all the mesh objects present in the selected group, this is the approach i took to get all the objects but i am struggling at the keypoint partBY KEYPOINT I MEANT THE MARKED PART IN THE IMAGE
import maya.cmds as cmds
grps = []
subgroups = []
objs = []
rotation_keys = set()
attributes = ['rotateX','rotateY','rotateZ']
for i in cmds.ls():
if "_SET" in i:
grps.append(i)
for g in grps:
subgroups.append(cmds.listRelatives(g))
for sg in subgroups:
objs.extend(cmds.listRelatives(sg))
for attrib in attributes:
for key in cmds.keyframe(obj, attribute = attrib, q=True, tc=True):
rotation_keys.append(key)
print(rotation_keys)
But after this i am kinda lost, i have already created the function to map the angles tho so i don't have any issue regarding that, but how should i access all of they keys and change rotation values on each of them.
Thanks & Regards Kartikey