div(slicedegree,360,images.number); 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)); mul(end,k,slicedegree); sub(start,end,slicedegree); set(end_a[a].item[get(k)].value, get(end)); set(start_a[a].item[get(k)].value, get(start)); ); def(currpano,integer,3); trace(only once); 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']); indexoftxt(ind,'%1','1'); if(ind != -1, set(hs.zorder, 5); , set(hs.zorder,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.visible, true); set(hs.alpha, 1.0); add(pan, view.hlookat, 0.5); mod(pan,360); if(pan LT 0, add(pan,360); ); for(def(i,integer,1), i LE images.number, inc(i), if(pan GE start_a[a].item[get(i)].value, if (pan LT end_a[a].item[get(i)].value, if(currpano != i, trace(i); forloopzorder(get(i)); set(currpano,get(i)); ); ); ); ); for(set(m,1), m LE images.number, inc(m), if(m EQ %1, setcubealpha(get(m),1); , setcubealpha(get(m),0); ); ); for(set(m,1), m LE images.number, inc(m), if(m EQ %1, cubevisible(get(m),true); , cubevisible(get(m),false); ); ); for(set(m,1), m LE images.number, inc(m), if(m EQ %1, setcubezorder(get(m),5); , setcubezorder(get(m),1); ); ); 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); set(hotspot[face_%1_l].visible, %2); set(hotspot[face_%1_f].visible, %2); set(hotspot[face_%1_r].visible, %2); set(hotspot[face_%1_b].visible, %2); set(hotspot[face_%1_u].visible, %2); set(hotspot[face_%1_d].visible, %2); set(hotspot[face_%1_l].zorder, %2); set(hotspot[face_%1_f].zorder, %2); set(hotspot[face_%1_r].zorder, %2); set(hotspot[face_%1_b].zorder, %2); set(hotspot[face_%1_u].zorder, %2); set(hotspot[face_%1_d].zorder, %2);