toggleVisibility

Toggles/changes the visibility of the Objects specified. You can use an optional parameter to force the visibility of the objects instead of toggling.

toggleVisibility(
	objectNames: string[],
	visible?: boolean
): Promise<void>
Parameters
Description
Type

objectNames

Array of the names of the objects you would like to toggle the visibility from.

string[]

visible

Optional boolean to force/specify the visibility

boolean

Usage:

await modelApi.toggleVisibility(["Box"]);

Last updated