Selecting vertices from a variable object
Not applicable
07-13-2016
09:58 AM
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
Link copied