for(set(k,1), k LE images.number, inc(k), set(name_l, calc:images.dirname +"\"+images.filename + k + "_l.jpg"); set(name_f, calc:images.dirname +"\"+images.filename + k + "_f.jpg"); set(name_r, calc:images.dirname +"\"+images.filename + k + "_r.jpg"); set(name_b, calc:images.dirname +"\"+images.filename + k + "_b.jpg"); set(name_u, calc:images.dirname +"\"+images.filename + k + "_u.jpg"); set(name_d, calc:images.dirname +"\"+images.filename + k + "_d.jpg"); addcube(get(k),get(name_l),get(name_f),get(name_r),get(name_b),get(name_u),get(name_d)); ); addface('face_%1_l', '%2', -90, 0); addface('face_%1_f', '%3', 0, 0); addface('face_%1_r', '%4', +90, 0); addface('face_%1_b', '%5', +180, 0); addface('face_%1_u', '%6', 0, -90); addface('face_%1_d', '%7', 0, +90); addhotspot('%1'); copy(hs, hotspot['%1']); set(hs.url, '%2'); set(hs.ath, %3); set(hs.atv, %4); set(hs.width, 1000); set(hs.height, 1000); set(hs.distorted, true); set(hs.enabled, false); set(hs.alpha, 0.0); roundval(view.hlookat); add(pan, view.hlookat, 0); mod(pan,360); div(slicedegree,360,images.number); if(pan LT 0, add(pan,360); ); for(set(i,1), i LE images.number, inc(i), mul(end,i,slicedegree); sub(start,end,slicedegree); if(pan GE start, if (pan LT end, forloopalpha(get(i)); ); ); ); for(set(i,1), i LE images.number, inc(i), if(i EQ %1, setcubealpha(get(i),1); , setcubealpha(get(i),0); ); ); set(hotspot[face_%1_l].alpha, %2); set(hotspot[face_%1_f].alpha, %2); set(hotspot[face_%1_r].alpha, %2); set(hotspot[face_%1_b].alpha, %2); set(hotspot[face_%1_u].alpha, %2); set(hotspot[face_%1_d].alpha, %2);