How do you control opacity with scripts?


how does i control opactiy with scripts?? aswell the whole text script thing really confused what to use with them


Hi @Tsake,

You can change the opacity of an object by writing

objectName.opacity = 0.1; 

The value you set opacity to must be between 0 and 1 where 0 is invisible and 1 is completely opaque.

Here’s a script that changes the opacity of an object over time. (Change objectName to the name of the object)

function update() {
  objectName.opacity = objectName.opacity - .01;

Let me know if this helps!


thanks! this cleared up all the questions :D