I was trying to replace the following standard action because some of my scene content explodes this action into a shower of sparks.
So I was trying to use xml.scene instead.. should be a lot less material in the variable.
However, on the initial load, xml.scene does NOT contain the scene name but only the index. Any ideas? After loading a second scene, the name is there.
<action name="nextscene">
if(%1 != findnext, set(i,0));
set(scenename,get(scene[get(i)].name));
trace(scenename,' ',get(xml.scene));
if(scenename == get(xml.scene),
trace('scene checked is next');
inc(i);
if(i == scene.count, set(i,0));
loadscene(get(scene[get(i)].name), null, MERGE, BLEND(1));
,
inc(i);
if(i LT scene.count, nextscene(findnext));
);
</action>