[Python] What is the meaning of the "[0]" in cmds.circle()[0]?

Discussão em 'Python' iniciado por Stack, Janeiro 20, 2025.

  1. Stack

    Stack Membro Participativo

    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!

    Continue reading...

Compartilhe esta Página