Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how can i delete biped bone keys with pymxs

1 REPLY 1
Reply
Message 1 of 2
1374471911
215 Views, 1 Reply

how can i delete biped bone keys with pymxs

def clear_bone_animation_data(bone, start_frame, end_frame😞
    for frame in range(start_frame, end_frame+1😞
        cotroller = rt.GetPropertyController(bone.controller, 'Position')
        rt.SelectKeys(cotroller, frame)
        rt.DeleteKeys(cotroller)
        #delete rotation keys
        cotroller = rt.GetPropertyController(bone.controller, 'Rotation')
        rt.SelectKeys(cotroller, frame)
        rt.DeleteKeys(cotroller)
 
for some bones, my script can work, but we i use it in biped bone,it not work
Tags (3)
Labels (3)
1 REPLY 1
Message 2 of 2
inquestudios
in reply to: 1374471911

Biped uses its own animation controller system, so for biped bones you have to use 
biped.deleteKeys
https://help.autodesk.com/view/MAXDEV/2025/ENU/?guid=GUID-082B8EB1-B1A7-4D12-92D4-005A2CD899D6

and for tasks like this you actually don't need Python, use pure MAXscript

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report