Maya Python

From Antoine Vienne | Wiki
Revision as of 23:47, 7 June 2019 by Walter (talk | contribs) (Created page with "=Maya Python Scripts= === Maya Texture Reference - Force image sequence === <pre> import maya.mel as mel sels = cmds.ls(sl=True) print sels for item in sels: cmds.select(...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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")