Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

Unable to set single value of "translation" property

I have some code that changes the "Y" value of the translation property on a RowList.

This works

m.vueRowList.translation = [m.vueRowList.translation[0], m.vueRowList.translation[1] + topGroupHeight]

This does not

m.vueRowList.translation[1] = m.vueRowList.translation[1] + topGroupHeight

0 Kudos
1 REPLY 1\
Level 11

Re: Unable to set single value of "translation" property

Yep! Welcome to the mysteries of scenography world. That's by design, apparently.
Don't try to mutate a Node field - it's not going to work. You have to always re-assign the property (syntax sugar for setField())

SG is a riot!
0 Kudos