Passing Objects to function

Hello,

I’m trying to make a function which changes the visibility (with object.visible(value)) of some variable object.

My problem is that I cant find the right “passing object” reference like here with “milliseconds:number”:
function millisecondsToSeconds(milliseconds:number) {}

Thanks in advance!

Bumb. Still need help

Hi @berzontax,

You will likely find our Scripting documentation helpful here; in particular, the Z.Node reference which has both the getter and setter versions of the visibility property.

The visibility property itself is a boolean type, meaning that its values will only ever be true or false :white_check_mark: :x:

You can find out more information about the getter visibility method here and more information (with an example) about the setter method here.

All the best,
Francesca :blush:

Thank you, that’s what I was looking for!

1 Like