Forum Discussion

_rossbower's avatar
_rossbower
Visitor
10 years ago

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?

1 Reply

  • 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!