Jump to content

Python delete parameter ref but keep previous keyframes


MAYA_

Recommended Posts

Hey,

I am making some shelf tools at the moment and in one, I am linking some paramters from one node to another (which works fine by just setting one parmater to be the other). I have a seperate tool that breaks all the references using deleteAllKeyframes(). Now this does get rid of my references but it also breaks all kinds of keyframes that the channel had at any point. I would love to be able to delete the reference but keep the keyframes, but I am struggling to figure out how. I am fairly new to python but I am currently investing some time learning. 

Could someone help me out?

Cheers :)

Link to comment
Share on other sites

you may need to clarify what exactly are you trying to replicate

as setting the reference will create a keyframe with ch() or chs() expression

if there were previous keyframes on such parameter, the segment function belonging to left keyframe of the current time segment will be replaced with ch() or chs() expression while other keyframes will keep the segment functions they had

what keyframes are you trying to get back to? the ones replaced by the reference functions? (those are gone)

or are you trying to delete reference, but replace it with the actual keyframes that the referenced parameter has? 

Edited by anim
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...