Here we go again - I bet you thought you were safe from Javascript
questions... *grin*
Years ago I made a script that iterates l-systems, but this script has
not functioned at least since RS3D v6. I have now located the point of
failure and it has to do with r3Listv and r3List objects. As long as I
have been fiddling with RS scripting there has always been some
confusion concerning JS arrays and r3List objects. Sometimes you had
to use one and sometimes you had to use the other. My script heavily
uses r3List objects and tries to set such lists as sources for r3Listv
objects. In v6, and I assume onwards, function calls like these have
catastrophic results:
ruleBox.SET ([R3GLVA_List, symbol.rules.r3l]);
where ruleBox is an instantiated r3Listv object and symbol.rules.r3l
is an instantiated r3List object. RS3D v6 simply crashes when it tries
to execute this.
I tried to replace that with this call:
ruleBox.SetList (symbol.rules.r3l);
Then it doesn't crash horribly but complains about the type of my list
- RS appears to excpect a JS array object and not an r3List object
here.
Re-writing the entire script to use JS arrays instead of r3List is not
a small task, is there a simpler way to make this work?
Best regards,
Fredrik
P.S. Or is this just another bug in the scripts/*.js files that I
forgot to modify after my most recent install of RS? At least one of
the reported errors are still present in the 64 bit install of RS3D,
available in the download section of www.realsoft.com.