Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Save mappings for all selected mesh deformers 4 months 1 week ago #580

  • admin
  • admin's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 155
  • Thank you received: 19
To save mappings for all selected mesh deformers
Select deformer folder and run this python script:
import maya.cmds as cmds
location = 'H:\\Numerion Dropbox\\MetaHumans\\bryan_with_clothes\\jacket_jeans_shirt_v2\\mappings'
cmds.select(hierarchy=True)
deformers = cmds.ls(sl=True, dag=True, type='CarbonMeshDeformer')
for defo in deformers:
    cmds.setAttr(defo + '.filePath', location + '\\' + defo + '.nmrb', type='string')
Last edit: by admin.
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.050 seconds