Hello,
I added some print commands to onInitCell and onInitTable and the console reveals that cell#0 is called before the table.
onInitTable should be called first, no?
Hello,
I added some print commands to onInitCell and onInitTable and the console reveals that cell#0 is called before the table.
onInitTable should be called first, no?
Hi.
The initialization order is somewhat arbitrary.
Its called for each individual visible cell rendere, and each calls all 4 levels as required.
So you may get the case where a cell,row,col,table is initialized first, then the remaining cell,row,col for the other cells as they are drawn.
(Table will only being initialized on the first rendered cell, and each row / col initialized once as well).
For a 3x3 table it may be:
cell 0,0
row 0
col 0
table
cell 1,0
row 1
cell 2,0
row 2
etc…
Table could be initialized first, but you’d still get arbitrary row/col/cell inits after that, so it may not be as predictable as you’d predict.
Does that complicate your setup?
Hi Rob,
I think I understand. Thanks for clearing that up!
I was originally trying to make a VJ bin where each cell would point its background TOP to a moviefileinTOP inside the List. onInitTable would serve to destroy pre-existing TOPs inside itself, read in a new folder, and create new TOPs for every video file. But since the table isn’t called first, empty cells were created and problems ensued.
I moved all of that code to a separate script now, so my setup is functional anyhow