getVisible unexpected behaviour
I wanted to use the visibility of a object to execute (or not) certain code in a vizAction to my surprise all object returned getVisible() is True while I knew that the certain parent object where invisible. A simple test confirmed that child object don't return the correct visibility value
Code:
groupA = viz.addGroup() |
This is by design. The node.getVisible() command returns the visible flag of the node. It does not take into account the visible flag of any parents.
You can use the node.getParents() command to determine the visibility state taking into account all parent nodes. Example: Code:
import viz |
All times are GMT -7. The time now is 08:05 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC