"Komag" wrote:
You wouldn't put quotation marks in there or else you're creating a string.
But what is m.bground.translation? Is it already an array with two elements that you simply want to redefine here?
He's probably doing RSG. All visual Nodes descend from
Group and as such have a .translation property.
The quoting confusion is understandable because when describing scene in XML, properties have to be spec'd in quoted like so
<blah deblah='7' translation="[0, 0]"/>
Numbers are strings, arrays are strings, dictionaries... everybody is a string! Yes, XML sucks. Now that we got that of the way - after a scene is loaded in memory, the node field values are proper data (no more quotes!). If you think assigning a wrong type (string) to a field of type array would cause an error, then you sir clearly don't know RSG
😛 - it is silent but deadly.
In your example, the For loop is pointless, since it will just run six times. You might as well simply set
m.bground.translation=[0, 850]
since that's all you end up with anyway. So I suspect what you have going on and what you really want to do is not set up right way.
Quite. To do RSG animations, one has to use
sdkdoc/Animation+Markup