def unhide(obj: Object, viewport: bool = True, render: bool = True): if obj.hide_viewport and viewport: obj.hide_viewport = False if obj.hide_render and render: obj.hide_render = False
def unhide(obj:Object, viewport:bool=True, render:bool=True): if obj.hide_viewport and viewport: obj.hide_viewport = False if obj.hide_render and render: obj.hide_render = False
def hide(obj: Object, viewport: bool = True, render: bool = True): if not obj.hide_viewport and viewport: obj.hide_viewport = True if not obj.hide_render and render: obj.hide_render = True
def hide(obj:Object, viewport:bool=True, render:bool=True): if not obj.hide_viewport and viewport: obj.hide_viewport = True if not obj.hide_render and render: obj.hide_render = True