Yes thank you very much, don't worry for the time, have a good holiday
the "lensflaresettings.xml" file is as i said :
Code
<krpano>
<lensflares name="obj">
<item name="flarka000001" ath="-115.7" atv="-1.1" scene="scene_1" typ="blinkstyle4" dust_effect="false"/>
<item name="flarka000002" ath="175" atv="-9" scene="scene_2" typ="blinkstyle2" dust_effect="false"/>
<item name="flarka000003" ath="166" atv="-8" scene="scene_3" typ="blinkstyle2" dust_effect="false"/>
</lensflares>
</krpano>
it could be cool to get the variables (name, ath, atv, scene) from this file, and set them (on loading scene) in flares in each new scene , perhaps adding flares with something like this:
Code
<flare name="getlensflare(name)" preset="getlensflare(preset)" ath="getlensflare(ath)" atv="getlensflare(atv)" />
and functions which get this variables in the "lensflaresettings.xml" file, something like this (very bad code sorry, it's for explain the idea):
Code
<action name="getlensflare" >
calc:Line_Of_Flare + '';
for(set(i,0), i LT number_of_flares(lensflare.xml), inc(i),
...
if(flare_of_actual_scene,
calc:Line_Of_Flare + '<flare name="'; calc:Line_Of_Flare + get(nameofflare);
calc:Line_Of_Flare + '" preset="'; calc:Line_Of_Flare + get(nameofpreset);
calc:Line_Of_Flare + '" ath="'; calc:Line_Of_Flare + get(nameofath);
calc:Line_Of_Flare + '" atv="'; calc:Line_Of_Flare + get(nameofatv);
calc:Line_Of_Flare + '" />';
...
);
);
Addlensflares_To_Scene(Line_Of_Flare);
</action>
Display More
thank you again for your help !