Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Pic Viewer. No more scrolling...

Wethaman Winkler
Registered User
Join date: 30 Apr 2007
Posts: 7
08-08-2007 19:07
Hi all. This is my first time posting and I need your advice. I have a Pic script. Currently, it scrolls by my pics. It repeats each pic about 4 times and then it moves to the next. I would like to know if it is possible to show the pic without it scrolling by? I would like to display each photo and freeze it on screen until its time to show the next photo.

does anyone have a script like that or is there a part of the script that will allow me to stop the scrolling?

Thanks..

Mr. Wet.
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
08-09-2007 00:15
Either the prim has set a texture animation property or the script sets it.

llSetTextureAnim or something along those lines.
Wethaman Winkler
Registered User
Join date: 30 Apr 2007
Posts: 7
08-09-2007 02:39
Thanks for your response. Unfortunately, I cant find anything that appears to address this situation to the point that I am confident to change anything.

Below is the script that I am using to scroll my pics. I cant find the line or anything like it in here. Can someone pleae take a look at this script and tell me if I can stop the scrolling photo feature? Like I said, I have about 25 pics and would like them to flash up on the screen as opposed to scroll by.

Tks again..
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
08-09-2007 10:22
I don't think the script showed up
ArchTx Edo
Mystic/Artist/Architect
Join date: 13 Feb 2005
Posts: 1,993
08-09-2007 14:47
The box of "Free useful stuff" at my store has a slide viewer script in it that does what you want.

Here is the script:

CODE

integer gPicIndex = 0;
integer gBalance = 0;
integer gTotalPics;
integer switchspeed = 10; //Set seconds before next picture here

flip()
{
string picName = llGetInventoryName(INVENTORY_TEXTURE, gPicIndex);
llSetTexture(picName, ALL_SIDES);

integer picNumber = gPicIndex + 1;
}

flipForward()
{
if (gPicIndex < gTotalPics - 1)
gPicIndex++;
else
gPicIndex = 0;

flip();
}

flipBackward()
{
if (gPicIndex > 0)
gPicIndex--;
else
gPicIndex = gTotalPics - 1;

flip();
}

default
{
state_entry()
{
gTotalPics = llGetInventoryNumber(INVENTORY_TEXTURE);
flip();

llListen(0, "", llGetOwner(), "");
llListen(69, "", "", "");
llSetTimerEvent(switchspeed);
}

timer()
{
flipForward();
llSetTimerEvent(switchspeed);
}
}
_____________________

VRchitecture Model Homes at http://slurl.com/secondlife/Shona/60/220/30
http://www.slexchange.com/modules.php?name=Marketplace&MerchantID=2240
http://shop.onrez.com/Archtx_Edo