hi all
I want this effect:
before open/load the pano, i want to preload a infomation plugin in the center screen, it's a pic or text, just a introduction of the pano.
if i click the info area, then load the whole pano clearly;
if i dont click the info area, it just load the preview.jpg pano or do nothing!
how to set the code?
thanks
how to do this effect
-
-
Are you using scenes? Do you have a command to select the scene on start? Why not set visible="true" and not use the on start command? If you are using scenes you will probably need to add keep="true" to that plugin too.
-
Hello!try this:
Code
Display More<scene name="bath" > <preview type="CUBESTRIP" url="panoramas/bath_preview.jpg" /> <plugin name="button" url="button.png" x="10" y="10" edge="lefttop" align="lefttop" keep="true" scale="1" onclick="loadscene(bath); setsceneimage(panoramas/bath); " /> </scene> <action name="setsceneimage"> txtadd(url, %1, "_l.jpg" ); set(image.left.url, get(url) ); txtadd(url, %1, "_f.jpg" ); set(image.front.url, get(url) ); txtadd(url, %1, "_r.jpg" ); set(image.right.url, get(url) ); txtadd(url, %1, "_b.jpg" ); set(image.back.url, get(url) ); txtadd(url, %1, "_u.jpg" ); set(image.up.url, get(url) ); txtadd(url, %1, "_d.jpg" ); set(image.down.url, get(url) ); </action>
for hide button use set(plugin[button].visible, false); in setsceneimage action.
Result:
first load only preview
onclick button will load cube imagesGood luck!
Hope this help! -
Thanks boss
your code enlignten me, and i made some change, and get the effect I desired,
thanks very much -
Welcome!
glad to help you
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!