Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
_rossbower
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


Why?
0 Kudos
1 Reply
EnTerr
Level 8

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