Can anyone share python script to remove all AOVs in scene.??

Can anyone share python script to remove all AOVs in scene.??

Anonymous
Not applicable
2,297 Views
2 Replies
Message 1 of 3

Can anyone share python script to remove all AOVs in scene.??

Anonymous
Not applicable

Can anyone share python script to remove all AOVs in scene.??

0 Likes
2,298 Views
2 Replies
Replies (2)
Message 2 of 3

icapathos
Advocate
Advocate

Just try it.

import maya.cmds as cmds
for node in cmds.ls(type="aiAOV"):
    if not cmds.referenceQuery(node, inr=1):
        cmds.delete(node)
Message 3 of 3

Anonymous
Not applicable

Thanks alot. Working fine. 

0 Likes