Message 1 of 3
Convert "mel.eval('select -r mesh.vtx[10]')" to Python
Not applicable
02-23-2021
11:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Sorry this is a basic question.
I'm trying to figure out how to select mesh vertices by vertex id in Python.
I have it working with the mel code mel.eval('select -r mesh.vtx[10]')
but I need to be able to use a variable number in place of 10, so I need to be able to do this in Python. Also, how do you return the vertex number of a selected mesh vertex? Thanks.