Skip to content

Instantly share code, notes, and snippets.

@splinecraft
Created January 30, 2020 05:27
Show Gist options
  • Save splinecraft/de52cd77346151eade56d276ad018a51 to your computer and use it in GitHub Desktop.
Save splinecraft/de52cd77346151eade56d276ad018a51 to your computer and use it in GitHub Desktop.
import pymel.core as pm
from anim_utilities import anim_util
selection = pm.selected()
pm.refresh(suspend=True)
pm.bakeResults(selection, time=anim_util.get_playback_range())
pm.delete(staticChannels=True)
pm.filterCurve(selection)
pm.refresh(suspend=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment