Maya Python

From Antoine Vienne | Wiki
Jump to navigation Jump to search

Maya Python Scripts

Maya Texture Reference - Force image sequence

import maya.mel as mel
sels = cmds.ls(sl=True)
print sels

for item in sels:
    cmds.select(item, replace=True)
    #cmds.setAttr("%s.translateX" % item, 5)
    mel.eval("CreateTextureReferenceObject")