Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

(MEL)polyDisc command does not return name of Object

5 REPLIES 5
Reply
Message 1 of 6
absoluteKelvin
673 Views, 5 Replies

(MEL)polyDisc command does not return name of Object

absoluteKelvin
Collaborator
Collaborator

Why does polyDisc return polyDisc -sides 3 -subdivisionMode 4 -subdivisions 3 -radius 1; instead of the Object Name ?

This is very annoying. Most poly creation commands results in the object name instead of cmd name.

Like this

polyCube -ch on -o on -w 1.362547 -h 1.362547 -d 1.362547 -cuv 4 ;
// Result: pCube1 polyCube1 // 

 

https://www.artstation.com/kelvintam

(MEL)polyDisc command does not return name of Object

Why does polyDisc return polyDisc -sides 3 -subdivisionMode 4 -subdivisions 3 -radius 1; instead of the Object Name ?

This is very annoying. Most poly creation commands results in the object name instead of cmd name.

Like this

polyCube -ch on -o on -w 1.362547 -h 1.362547 -d 1.362547 -cuv 4 ;
// Result: pCube1 polyCube1 // 

 

https://www.artstation.com/kelvintam
Tags (3)
Labels (3)
5 REPLIES 5
Message 2 of 6
g2m.agent
in reply to: absoluteKelvin

g2m.agent
Collaborator
Collaborator

This is definitely a bug.
cmds.polyDisc() return nothing!

This is definitely a bug.
cmds.polyDisc() return nothing!

Message 3 of 6
zewt
in reply to: absoluteKelvin

zewt
Collaborator
Collaborator

Several of these commands also don't undo at all.

 

Several of these commands also don't undo at all.

 

Message 4 of 6
Anonymous
in reply to: absoluteKelvin

Anonymous
Not applicable

 I am trying to create a mel script using polydisc but it's going to be tougher because this polyDisc command, doesn't undo like zewt says and worse the -n flag for name doesnt work on it, one has to select the polyDisc and rename it (3 steps). Why are they putting out Maya with these flawed functions?

 I am trying to create a mel script using polydisc but it's going to be tougher because this polyDisc command, doesn't undo like zewt says and worse the -n flag for name doesnt work on it, one has to select the polyDisc and rename it (3 steps). Why are they putting out Maya with these flawed functions?

Message 5 of 6
absoluteKelvin
in reply to: Anonymous

absoluteKelvin
Collaborator
Collaborator

@Anonymous  when you run polyDisc command, it auto selects the transform node. so it can be optimized into 2 steps.

polyDisc -r 1 -s 4 -sd 1;

string $polyDisc = `rename "pDiscMesh"`;

 

its a bummer that undo doesn't work with these commands which makes undo system broken

https://www.artstation.com/kelvintam

@Anonymous  when you run polyDisc command, it auto selects the transform node. so it can be optimized into 2 steps.

polyDisc -r 1 -s 4 -sd 1;

string $polyDisc = `rename "pDiscMesh"`;

 

its a bummer that undo doesn't work with these commands which makes undo system broken

https://www.artstation.com/kelvintam
Message 6 of 6
Anonymous
in reply to: absoluteKelvin

Anonymous
Not applicable
Thanks for the tip!!!
0 Likes

Thanks for the tip!!!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report