python - Delete all expressions in Expression editor -
in maya scene file of mine, when scrubbing through time slider, keep getting following error:
// error: execution error occured in expression stabilizator_expression_mom_bq01_v2_original_2shape6. //
upon opening editor, full error:
# error: line 0: no module named mmtools.v1_0.ford_stabilizerstereo # traceback (most recent call last): # file "<maya console>", line 1, in <module> # importerror: no module named matchmovetools.v1_0.ford_stabilizerstereo #
even so, can delete such expressions in expression editor, list of , unfortunately, has done done manually, clicking on them one-by-one deletion. tried following code no expressions seem deleted:
import maya.cmds cmds cmds.delete( all=true, e=true )
as such, wondering if knows if there ways can delete existing expressions using python @ 1 go?
according maya docs should have worked mentioned does't seem work. 1 option can be
cmds.delete(cmds.ls(type='expression'))
i not sure if answers question.
Comments
Post a Comment