|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
... onclick="helpme();" ... <action name="helpme" scope="local"> set(local.deg, 8); // degree of movement set(local.smt, smooth(6, 25, 12)); // smooth setting set(local.off, 1); // start offset set(local.dur, 3); // duration of each phase copy(local.hlval, view.hlookat); calc(local.hlmax, hlval + deg); calc(local.hlmin, hlval - deg); copy(local.vlval, view.vlookat); calc(local.vlmax, vlval + deg); calc(local.vlmin, vlval - deg); copy(local.fov, view.fov); // set(local.fov, 120); // for fixed value set(layer[tg].visible, true); delayedcall(calc(off + dur * 0), lookto(get(hlmax), get(vlval), get(fov), get(smt))); delayedcall(calc(off + dur * 1), lookto(get(hlmin), get(vlval), get(fov), get(smt))); delayedcall(calc(off + dur * 2), lookto(get(hlval), get(vlval), get(fov), get(smt))); delayedcall(calc(off + dur * 3), lookto(get(hlval), get(vlmin), get(fov), get(smt))); delayedcall(calc(off + dur * 4), lookto(get(hlval), get(vlmax), get(fov), get(smt))); delayedcall(calc(off + dur * 5), lookto(get(hlval), get(vlval), get(fov), get(smt))); delayedcall(calc(off + dur * 6), set(layer[tg].visible, false)); // skin_showskin(); </action> |
This post has been edited 4 times, last edit by "indexofrefraction" (Aug 27th 2020, 11:21pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<action name="helpme" scope="local" autorun="onstart"> set(local.deg, 10); // degree of movement set(local.smt, smooth(12, 50, 24)); // smooth setting set(local.off, 2); // offset copy(local.hlval, view.hlookat); calc(local.hlmax, hlval + deg); calc(local.hlmin, hlval - deg); copy(local.vlval, view.vlookat); calc(local.vlmax, vlval + deg); calc(local.vlmin, vlval - deg); copy(local.fov, view.fov); // set(local.fov, 120); // for fixed value set(layer[tg].visible, true); delayedcall(get(off), lookto(get(hlmax), get(vlval), get(fov), get(smt), true, true, lookto(get(hlmin), get(vlval), get(fov), get(smt), true, true, lookto(get(hlval), get(vlval), get(fov), get(smt), true, true, lookto(get(hlval), get(vlmin), get(fov), get(smt), true, true, lookto(get(hlval), get(vlmax), get(fov), get(smt), true, true, lookto(get(hlval), get(vlval), get(fov), get(smt), true, true, delayedcall(get(off), set(layer[tg].visible, false); ); ); ); ); ); ): ); ); </action> |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Quoted
Where can I find information on this type of code on the web. I would like to study more in depth.
: https://pame.virtualtuur.comi forgot to remove the autorun="onstart" :)
This post has been edited 1 times, last edit by "ramirox3" (Aug 29th 2020, 1:51am)
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
.
: https://pame.virtualtuur.com