Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
_rossbower
Visitor

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 1
EnTerr
Roku Guru

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.