Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #bake follicle attached fk chain
- #check chain name
- selected_cns = 'Dinah_01:L_Whisker03_A_Drv_Prc'
- flc_driver = cmds.listConnections(selected_cns)[0]
- cmds.spaceLocator(n=selected_cns.replace('Drv_Prc','Flc_Loc'))
- cmds.parentConstraint(flc_driver,selected_cns.replace('Drv_Prc','Flc_Loc'))
- tmin = cmds.playbackOptions(min=1,q=1)
- tmax = cmds.playbackOptions(max=1,q=1)
- cmds.bakeResults( selected_cns.replace('Drv_Prc','Flc_Loc'),
- time = (tmin,tmax),
- simulation=True,
- sampleBy=1,
- oversamplingRate=1,
- disableImplicitControl=True,
- preserveOutsideKeys=False,
- sparseAnimCurveBake=False,
- removeBakedAttributeFromLayer=False,
- removeBakedAnimFromLayer=False,
- bakeOnOverrideLayer=False,
- minimizeRotation=True,
- controlPoints=False,
- shape=True,
- )
- cmds.parentConstraint(selected_cns.replace('Drv_Prc','Flc_Loc'),selected_cns.replace('Drv_Prc','Cfx'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement