Home Technical Talk

[Maya - Python] Extruding faces using [start:stop:step]

polycounter lvl 3
Offline / Send Message
IacopoAntonelli polycounter lvl 3
Hi! I am doing a simple Auto gear creation script, and I was wondering if the command
cmds.polyExtrudeFacet()
supports a step in the faces selection.
I mean, if I want to extract faces from 49 to 60 with a step of 2 in a polyPipe how can I do it with polyExtrudeFacet?
I tried to use this format [start:end:step] but maya doesn't accept this.

How could I approach that?

Thank you!
 



Replies

  • IacopoAntonelli
    Offline / Send Message
    IacopoAntonelli polycounter lvl 3
    I forgot to mention that I would like to use a single extrude command, or I would have used an iteration through a pre-computed list of the faces splitted with a spacing of 2.
    I am trying to avoid this:


    And have a single history for the extrude command.
Sign In or Register to comment.