Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
list.remove function based on a string match criteria not working consistently. Please watch the video to see what I am talking about.
selection = cmds.ls(selection = True)
childList = cmds.listRelatives(selection, allDescendents = True)
print('the childList is: ' + str(childList))
for eachMember in childList:
print('eachMember is: ' + str(eachMember))
if 'RT' in eachMember:
print('RT found!')
childList.remove(eachMember)
print('the childList is: ' + str(childList))
Seth Meshko
3D Artist
3danimationartist.com
3D Artist
3danimationartist.com
Solved! Go to Solution.