Would anyone be able to tell me if its possible to access the proxy mesh visibility lists via script? For example, if you had a list of many meshes you wanted to change the visibility of but didn’t really want to trawl through the list and double click each one?
You can use setAttr mesh_vraymesh.visibilityListNames[n] x where n is the index of the object in the list you want hidden and x is the state (1 is hidden, 0 is visible when set to Exclude).
And the example below will change the visibility of a specific object by name, in this case pCylinderShape1
int $size = `getAttr -s mesh_vraymesh.objectListNames`;
int $i;
for ($i=0; $i<$size; $i++) {
if (`getAttr mesh_vraymesh.objectListNames[$i]`=="pCylinderShape1") {
setAttr mesh_vraymesh.visibilityListNames[$i] 1;
}
}
yeah i wanted the same thing, so just added the commands to a marking menu. Probably not as pretty as the solution above but works on what you have selected.