ScriptSpot home

Forum topic · General Scripting

Change visibility as object property

By Aleksey Kidisyuk · 2016-10-11

Description

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 (3)
Aleksey Kidisyuk

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

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

.

Something like this:


$.visibility = 0.5