Computer Science, asked by vishalkadam472, 9 months ago

Want to create multiple empty group nodes in mayaScene so for example I use this below script in new maya scene _______________________________________________________ from maya import cmds mel.eval("CreateEmptyGroup;") def addPrefix(prefix): for obj in cmds.ls(sl=True): cmds.rename(obj, prefix + obj) addPrefix("test") _______________________________________________________ Result will create a empty group node with prefix like testnull1 but I want the result should be testNull1 so here test Will be in lowercase and null1 only First first letter should be in caps I have a list of names in a text file example:- doorBell01 doorBell02 doorBell03 doorBell04 can a text file with names linked to mel or python and get the output as below so final output should be testDoorBell01 testDoorBell02 testDoorBell03 testDoorBell04 so in this case only D should be in caps with test as prefix and remaining should be same I just need empty group nodes with prefix and names from text file.

Answers

Answered by majumdarpankaj1
0

Answer: It's free and easy to answer

Explanation:

Similar questions