![]() #10) SetAttr anslateZ randomly from -20 to 20Ĭmds.setAttr(locator+ ‘.tz’, random.uniform(-20,20)) #9) SetAttr anslateY randomly from -20 to 20Ĭmds.setAttr(locator+ ‘.ty’, random.uniform(-20,20)) #8) SetAttr anslateX randomly from -20 to 20Ĭmds.setAttr(locator+ ‘.tx’, random.uniform(-20,20)) Mylocator = cmds.spaceLocator(name=‘locator’) Ĭmds.setAttr(m圜ube+ ‘.ty’, random.uniform(-0.5,0.5)) Ĭmds.setAttr (m圜trl+ ‘.ty’, random.uniform(-0.5,0.5)) Ĭmds.parent(‘m圜ube’, ‘Ctrl’, relative=True) Ĭmds.parent(‘Ctrl’, ‘locator’, relative=True) #3) Create a spaceLocator and assign the name of the transform node to a variable named ‘locator’ #2) Create a circle and assign the name of the transform node to a variable named ‘ctrl’, with the normals facing Y axis #1) Create a pol圜ube, assign the name of the transform node to a variable named ‘cube’ This is the code I’m working with any help would be greatly appreciated. Error: TypeError: file line 18: can only concatenate list (not “str”) to list I keep having an issue that I can’t seem to resolve. Hey guys, I’m doing an assignment for school and I have no Python experience and my instructor isn’t much help.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |