Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, everyone, I want to control parameters through Python. Why is it useless? Is there a problem with my script?
def yetivision():
mod = cmds.ls(sl=True, dag=True)
for each in mod:
vision=int(cmds.checkBox('yetiSubdivision', q=1, v=1))
cmds.setAttr(each + ".yetiSubdivision",vision)
def yetiset_name():
name=str(cmds.textFieldGrp('yetiUVSetName', q=1, text=1))
mod = cmds.ls(sl=True, dag=True)
for each in mod:
cmds.setAttr(each + ".yetiUVSetName",name)
cmds.checkBox('yetiSubdivision',*args:SubdIter(), w=100, h=30, v=0, label="yetiSubdivision")
cmds.textFieldGrp('yetiUVSetName', w=300, h=30)
cmds.button("O K",w=60, bgc=(0.4, 0.2, 0.3), h=30, c="yetiset_name()")
Solved! Go to Solution.