[Closed] Selecting Vertex by number on Alembic file with Edit Mesh Modifier Added
The title sort of says it all.
I have an Alembic format file imported to Max, and have an Edit Mesh modifier added, (not needed, but thought it might make it easier).
Is there any way via Masxcript to select a specific vertex on the model by vertex number?
I want to move through the timeline manually, select a vertex, (at the tip of the nose, for example), and since the mesh of an Alembic file is constantly changing, select the ‘new’ vertex at the tip of the nose each time the mesh changes, and ‘re-orders’, or re-assigns vertex numbers. These vertex numbers will be stored in an array, along with the frame they change on, and used for tracking in a later portion of the script.
I’ve figured it out on a standard mesh object, but not something as challenging as the Alembic format.
Beginner at scripting…Thanks for any input!
Here are two methods for selecting the vertices on a Edit_Mesh modifier:
(
-- Must be in vertex subobject level
select $.verts[50]
select $.verts[#{10..20}]
-- Works in other command panel modes
-- setVertSelection <node> <modifier or modifier index> <vertices array|bitarray> keep:<keep current selection>
setVertSelection $ 1 #{50} keep:false
setVertSelection $ 1 #{10..20} keep:false
)
Thanks!
setVertSelection $ 1 #{50} keep:false” worked great for me.