View Single Post
  #1  
Old 11-30-2011, 07:48 AM
sleiN13 sleiN13 is offline
Member
 
Join Date: Dec 2008
Posts: 83
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()
groupB = viz.addGroup(parent = groupA)

groupA.visible(viz.OFF)
print groupB.getVisible()

>>> True
Is this a bug or by design and in case of the second reason is there a function that will give the result I need?
Reply With Quote