Poster_element_from_outside = m.top.findNode("PosterElementID")
I need to some how to declare a variable outside then pass it over so it could increment...
"joetesta" wrote:
This is one way;Poster_element_from_outside = m.top.findNode("PosterElementID")
https://sdkdocs.roku.com/display/sdkdoc/ifSGNodeDict#ifSGNodeDict-findNode(nameasString)asObject
Obviously you need to switch in the actual ID of your poster element (and assign an ID if it doesn't have one yet), and probably make a better (shorter) var name for the left side of the equation.
"slingxshot" wrote:
Poster = m.top.findNode("Poster1")
gives me "invalid"
"EnTerr" wrote:"slingxshot" wrote:
Poster = m.top.findNode("Poster1")
gives me "invalid"
Sounds like the element with id "Poster1" is just not attached to the current hierarchy? Check what's `m` and `m.top` in that context, see if the poster is hanging where it should be in the tree. Also case-sensitivity (i don't think it is) of ID?