Nested stack properties...
Posted: Fri Jul 31, 2020 6:35 pm
Hi all,
I was hoping to replicate a moderately complex data structure using a custom property in the stack.
I was hoping to create a custom property set (call it 'root') with multiple child nodes ('node_x'), of all of which will have about 18 sub-nodes('subnode_x').
I can create this easily enough in the IDE - but can't figure out the correct way to access this in script.
As a test, i manually put some random text in subnode_x. Using the Message box:
generates an error: Script compile error: Error description: Expression: bad factor
I'm sure i'm doing it 'wrong'. All the examples i found online refer to 1-deep nodes only (ie. the structure would be root[node_x] without further subnodes. Is that the problem here? Certainly if i use root[node_x] only with no further subnodes, this works as intended...
Thanks in advance for putting me straight!
I was hoping to replicate a moderately complex data structure using a custom property in the stack.
I was hoping to create a custom property set (call it 'root') with multiple child nodes ('node_x'), of all of which will have about 18 sub-nodes('subnode_x').
I can create this easily enough in the IDE - but can't figure out the correct way to access this in script.
As a test, i manually put some random text in subnode_x. Using the Message box:
Code: Select all
put the root["node_x"]["subnode_x"] of this stack
I'm sure i'm doing it 'wrong'. All the examples i found online refer to 1-deep nodes only (ie. the structure would be root[node_x] without further subnodes. Is that the problem here? Certainly if i use root[node_x] only with no further subnodes, this works as intended...
Thanks in advance for putting me straight!