Maya 2020.1 selected vertex in pymel returns Attribute

Maya 2020.1 selected vertex in pymel returns Attribute

formjune
Participant Participant
1,269 Views
5 Replies
Message 1 of 6

Maya 2020.1 selected vertex in pymel returns Attribute

formjune
Participant
Participant

Does anyone knows why Autodesk had decided to replace return of MeshVertex with Attribute("mesh.pnts[i]") for single vertex in pymel? Problem remains for CVs end EPs as well. 

And how to manipulte with them now as unlike vertex class attribute contains local position only? For Maya 2020 everything is ok, problem is 2020.1 only

sss
0 Likes
Accepted solutions (1)
1,270 Views
5 Replies
Replies (5)
Message 2 of 6

brentmc
Autodesk
Autodesk

Hi,

 

I am pretty sure we are aware of the issue (and it should be fixed in the next update) so if you provide a sample script I can confirm.

 

Thanks.

--

Brent

Brent McPherson
Principle Engineer
0 Likes
Message 3 of 6

formjune
Participant
Participant

Hi,

Thank you for reply!

 

import pymel.core as pm
plane = pm.polyPlane()[0]
pm.select(plane.vtx)
pm.selected()[0].getNormal("world") # works like in 2020
pm.select(plane.vtx[0])
pm.selected()[0].getNormal("world") # broken in 2020.1

 

Thanks,

Andrey

sss
0 Likes
Message 4 of 6

brentmc
Autodesk
Autodesk
Accepted solution

Hi Andrey,

 

Thanks for the script. I can confirm that this is the same issue and it will be addressed in a future update.

 

Thanks.

--

Brent

Brent McPherson
Principle Engineer
0 Likes
Message 5 of 6

formjune
Participant
Participant

Just have checked in Maya 2020.2 and it works again! Thank you!

sss
0 Likes
Message 6 of 6

brentmc
Autodesk
Autodesk

You're welcome. Thanks for following up!

--

Brent

Brent McPherson
Principle Engineer
0 Likes