I need to print each shave shape and its assigned shader name if assigned. Please help in this.
import os
import maya.cmds as cmds
shave_list = cmds.ls(type='shaveHair')
cmds.select(cl=True)
a = 0
list_texture = []
while a < len(shave_list):
file_list = cmds.listconnections(shave_list[a],type="file")
a+=1