Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Auto PictureFrame

Robert69 Little
Registered User
Join date: 24 Aug 2007
Posts: 20
01-30-2009 10:07
I need a script to put into a 20x10 prim to display pictures during an event.

Can someone help me please?!
Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
01-30-2009 10:24
It's a fairly simple script to write. You can probably find one on XStreetSL. I have a picture frame on the market myself, but it would have to be custom sized. Or, if you're looking for someone to make you one you can probably get some responses in Products Wanted.
Robert69 Little
Registered User
Join date: 24 Aug 2007
Posts: 20
auto picture frame 20x10 prim
01-30-2009 10:56
From: Yingzi Xue
It's a fairly simple script to write. You can probably find one on XStreetSL. I have a picture frame on the market myself, but it would have to be custom sized. Or, if you're looking for someone to make you one you can probably get some responses in Products Wanted.


I would be willing to pay you for this.. it would not have to be transferable of course, but I would like to be copyable for my own use.... can you get with me inworld asap please?
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
01-30-2009 11:05
Maybe something like this would do..

CODE

float TIMER = 60.0; // how often to change pictures, in seconds
integer SIDE = ALL_SIDES; // which sides to set

integer gNumImages;
integer gImageIndex;

ChangeImage()
{
gImageIndex++;
if (gImageIndex >= gNumImages)
{
gImageIndex = 0;
}

string name = llGetInventoryName (INVENTORY_TEXTURE, gImageIndex);
llSetTexture (llGetInventoryKey(name), SIDE);
}

default
{
state_entry()
{
gNumImages = llGetInventoryNumber(INVENTORY_TEXTURE);
ChangeImage();
llSetTimerEvent (TIMER);
}

timer()
{
ChangeImage();
}

changed (integer mask)
{
if (mask & CHANGED_INVENTORY)
{
gNumImages = llGetInventoryNumber(INVENTORY_TEXTURE);
}
}
}
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-30-2009 11:16
You might want to call llSetTimerEvent() at some point.
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
01-30-2009 12:02
From: Hewee Zetkin
You might want to call llSetTimerEvent() at some point.

Er.. Right. I knew that.

Did I mention that I haven't tested that script?

/me edits the script.
Lennard Lopez
Registered User
Join date: 9 Oct 2007
Posts: 52
01-30-2009 12:14
Hé!! This seems to be the place to get free scripts, but..... Can anyone point me to a forum where I can ask scripting tips?
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
01-30-2009 13:28
From: Lennard Lopez
Hé!! This seems to be the place to get free scripts, but..... Can anyone point me to a forum where I can ask scripting tips?


lol.

oh btw, unless the user is using a mega prim, that script won't work for a link set with a 20m face. he could use llSetLinkTexture instead of llSetTexture and just have the offsets already done for each half
Robert69 Little
Registered User
Join date: 24 Aug 2007
Posts: 20
scripting
01-30-2009 17:25
I'm about as dumb as a rock when it comes to scrpits guys.. lmao.. :)

I'm a video guy.. :)
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
01-30-2009 18:33
From: Lennard Lopez
Hé!! This seems to be the place to get free scripts, but..... Can anyone point me to a forum where I can ask scripting tips?

Damn you Lennard! That was a perfectly good rum & coke I was enjoying and it was the last coke I had in the house! Hope both you and my keyboard are happy :p
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
02-01-2009 02:54
From: Lennard Lopez
Hé!! This seems to be the place to get free scripts, but..... Can anyone point me to a forum where I can ask scripting tips?


If you are looking for the "Scripting Tips" forum, try "Resident Answers",
If you would like someone to write a script to search for the forum try 'Products Wanted"
If you would like a free script to look for "Scripting Tips" try Scripting Library
but if you would like to write you own script to find "scripting Tips" try posting in this forum :)