visibility_check¶
-
source.Maya.misc_tools.visibility_check(obj)¶ check the visibility of given objects
Note
There is multiple way in maya to make an object invisible this function should be able to return the visibility state in most cases.
Example:
import Maya.misc_tools as mtools visible_object = [] invisible_object = [] objects = ['Psphere1','Psphere2','Psphere3'] for object in objects: if mtools.visibility_check(object) is True: visible_object.append(object) else: invisible_object.append(object)
- Parameters
obj (str) – object to be tested
- Returns
The visibility of one object
- Return type
Boolean