Bug in InvertSelection Command (since Maya 2017)

Bug in InvertSelection Command (since Maya 2017)

ACOLTEL
Contributor Contributor
1,433 Views
6 Replies
Message 1 of 7

Bug in InvertSelection Command (since Maya 2017)

ACOLTEL
Contributor
Contributor

Hey Maya devs,

 

Our Character TD found a bug in the Inverse Selection Command and I just want to share the solution with the community.

The bug is present in Maya 2018 and 2019 (probably also in 2017 but i didn't checked).

 

When a Mesh selected has history nodes, the inverse selection is incorrect.

The history is not correctly handled.

 

I recorded a GifAnim in order to illustrate the bug.

 

InverseSelectionBug.gif

 

the bug is in the file :

\Maya2018\scripts\startup\invertSelection.mel

 

Ligne 72 :

for ($component in $selection) {

 

The corrected code should be instead :

for ($component in $orig) {

 

This modification fixed the probleme for us.

I hope it will helps.

 

Accepted solutions (1)
1,434 Views
6 Replies
Replies (6)
Message 2 of 7

ACOLTEL
Contributor
Contributor
Accepted solution

As i said, we fixed the problem in our studio by changing the .mel script provided by the Maya installation (we have a mechanism to override official Maya Mel script during the loading of our tech, so it's not destructive).

 

I would be nice if someone at Autodesk could take a look at our suggested bug-fix to let the other Maya users benefit from it.

0 Likes
Message 3 of 7

mspeer
Consultant
Consultant

Hi!

 

Please report this problem + solution to Autodesk here:
In Maya main menu:
Help -> Speak Back -> Report a Problem

0 Likes
Message 4 of 7

ACOLTEL
Contributor
Contributor

done  🙂

Message 5 of 7

ACOLTEL
Contributor
Contributor

Hey,

 

Here is an exact 100% "step to reproduce" of the issue in order to help the Autodesk QA to validate the solution.

 

You can reproduce it with Maya 2019, vanilla version, with default prefs and default plugin.

 

1. File -> NewScene

2. Create a PolyCube

3. Delete the history : Edit -> Delete By Type -> Delete History 

Please note that this step is very important to reproduce the problem.
if you skip this step, the problem will not be visible.

4. apply a soften edge : Mesh Display -> Soften Edge

5. Select a face

6. inverse the selection with the command : Selection -> Inverse

7. delete the current selection

8. Note that the result of the "Delete selection" is incorrect.

 

0 Likes
Message 6 of 7

absoluteKelvin
Collaborator
Collaborator

does anyone know if this is fixed in maya 2020?

https://www.artstation.com/kelvintam
0 Likes
Message 7 of 7

mspeer
Consultant
Consultant

Hi!

 

Yes, this is fixed (also in later Maya 2019 versions).