Untick display layer checkbox

Untick display layer checkbox

Anonymous
Not applicable
448 Views
1 Reply
Message 1 of 2

Untick display layer checkbox

Anonymous
Not applicable

Hi, I'm using a python script to turn the visibility off for some display layers, and it's working fine except the fact that the checkboxes for the layer looks like the visibility is still on. Is there a way to change these boxes?

0 Likes
449 Views
1 Reply
Reply (1)
Message 2 of 2

olarn
Advocate
Advocate

The implementation looks like this.

global proc setDisplayLayerVisibility(string $layer, int $layerVisibility)
{
	setAttr ($layer + ".visibility") $layerVisibility;

	//Update layer button UI
	layerButton -edit -layerVisible $layerVisibility $layer;
}

Apparently this command were used to update the UI.

http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/CommandsPython/layerButton.html

0 Likes