Hello all,
I'm reasonably new to Maya, and I'm working on a fairly specific project.
For the project, I need to select the vertices of objects individually. Typically, this is fairly easy using something like select -r pCube.vtx[3]
.
But, the names of these objects are variable and stored in array I obtain using the command:
string $dataset[] = ls data\_*
;
I can still select the whole object using select -r $dataset[1]
, but I'm running into an issue when I try to select the individual vertices.
So far, I have tried select -r $dataset[1].vtx[3]
, but obviously that brings up a syntax error.
Is there any way to do this? Or perhaps a workaround?
ThanksĀ