admin管理员组

文章数量:1208153

I am a beginner in Autodesk Maya scripting in Python. I would like to ask as in the title why commands like cmds.circle or cmds.polycube have a "[0]" at the end when assigning it to a variable?

For example:

cube = cmds.polycube()[0]
circle = cmds.circle()[0]

It might be a basic question, but I would like to know what it means. Thank you!

本文标签: pythonWhat is the meaning of the quot0quot in cmdscircle()0Stack Overflow