Change visibility as object property

Hello
I try change object visibility by script.
After forum search I found only animation metod, with key frame animation. Can I change buy script object visibility without add keyframe?

Thank You

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Aleksey Kidisyuk's picture

SOLVED

Thank You All

if getVisController obj == undefined do obj.visibility = bezier_float()
obj.visibility.controller.value = 1

works

BUT
I see changes on viewports only when I change current time on timeline :(
I try redrawViews(),completeRedraw(),setNeedsRedraw - not work...

UPDATE:
I add
obj.pos=obj.pos
and work. but it's stupid (IMHO)

Aleksey Kidisyuk's picture

dosn't work

Sorry, dosn't work
From script I can set $.visibility only to true or false
After $.visibility = 0.5 I have unvisible objects
Any other ideas?

Thank You

miauu's picture

.

Something like this:

$.visibility = 0.5

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.