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


Remove empty Stitchings and Narrow Filters 3 years 1 month ago #536

  • admin
  • admin's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 207
  • Thank you received: 28
The Carbon Garment Processor is a brute force process and creates many empty Stitchings and Narrow Filters nodes.
To remove these.... Select the Stitchings group and run this python script:
import maya.cmds as cmds
import carbonPublicAPI
stitchingsGroup =
stitchings = cmds.listRelatives(stitchingsGroup, children=True)
simulation = cmds.listConnections(stitchings[0] + '.carbonSimulationData', d=False, s=True, sh=True)[0]
carbonPublicAPI.setSimulationStatus(simulation, 0)
print simulation
for stitching in stitchings:     
    constraintCount = cmds.getAttr(stitching + '.constraintCount')     
    if constraintCount == 0:         
        narrowFilters = cmds.listConnections(stitching + '.carbonNodeData', d=True, s=False, sh=True, t='CarbonNarrowFilter')         
        if narrowFilters is not None:             
            cmds.delete(cmds.listRelatives(narrowFilters, parent=True)[0])         
carbonPublicAPI.setSimulationStatus(simulation, 1)

If you have any questions about this script please start a topic below.
Last edit: by admin.
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.108 seconds