polyExtrudeFacet provides naming (name flag) but the resulting polyExtrudeFace node has no name attribute

polyExtrudeFacet provides naming (name flag) but the resulting polyExtrudeFace node has no name attribute

daniel_vanwesten
Explorer Explorer
290 Views
1 Reply
Message 1 of 2

polyExtrudeFacet provides naming (name flag) but the resulting polyExtrudeFace node has no name attribute

daniel_vanwesten
Explorer
Explorer

Hey there,

 

I tried to extrude a polyPlane via pymel:

 

 

 

pm.polyExtrudeFacet('pPlane', tk=0.3, name='myExtrude')

 

 
 The extrude works, but the name of the extrude node is polyExtrudeFace1. Shouldn't the Extrude node then be called "myExtrude"?
 
Cheers,
Daniel
 
Win 11, Maya 2024.1
 
0 Likes
Accepted solutions (1)
291 Views
1 Reply
Reply (1)
Message 2 of 2

FirespriteNate
Advocate
Advocate
Accepted solution

you would assume so, but clearly not... 😕 

Quite a lot of those types of commands all share several common flags like name, so it wouldn't surprise me if the engineers made some of them from a standard template, then just forgot to hook up all the common flags. The fact that the official polyExtrudeFacet command doc (which I assume is auto-generated from the source code) contains amazing pearls of wisdom like this:

FirespriteNate_0-1691670463730.png

would suggest that could be the case 😂

 

I assume you probably know how to work around this already, and are just highlighting the bug, but just on the off-chance:

 

pm.rename(pm.polyExtrudeFacet('pPlane', tk=0.3)[0], 'myExtrude')

 

 

0 Likes