Video / images onto textures

Richard Lockwood richard.lockwood at gmail.com
Thu Mar 1 00:24:34 PST 2007


Hi Stephane,

No - that wasn't the problem - but I'll squirrel that piece of code
away for future reference!  :-)  (I'd just accidentally mis-set the
permissions...!)

Cheers,

Rich.

On 3/1/07, Stephane Desnault <stephane.desnault at gmail.com> wrote:
> Hi Richard,
>
> Are you resetting your script and internal variables when the owner changes
> ? I don't know your code so can't comment on what could be set and not
> adjusted in your widget, but here is what I use in any object that has a
> llListen on llGetOwner:
>
> In the main object state (usually "default") :
>
> default
> {
>     state_entry() {
> // This listen WILL NOT get reset to the new owner if the oject is sold,
> because state_entry() will not run
> llListen(0, "", llGetOwner(), "" );
>     }
>
> ...
>
>     changed(integer change) {
> // This will run when the objet is sold or given away
>         if (change & CHANGED_OWNER) {
>             state changedOwner;
>         }
>     }
> }
>
> // insures state_entry() in default runs again
> state changedOwner {
>     state_entry() {
>         state default;
>     }
> }
>
> Hopes this helps, sorry if it's something you've known for ages
>
> 2007/3/1, Richard Lockwood < richard.lockwood at gmail.com>:
> >
> > Hi, I hope someone can help with this...
> >
> > I've got a widget which imports video or photos from an external
> > source and displays them on a "screen" - really a flattened
> > rectangular prism, and it displays them on every face.
> >
> > The problem is that it works absolutely fine on land that I, the
> > creator of the widget own.  However, if I give (or sell) it to another
> > character, and they try and use it on land that they own, it doesn't
> > appear to work.  The "Movie" slider doesn't appear.
> >
> > If that character checks the "about land -> media" tab, the texture to
> > be replaced isn't there.  Manually adding the correct texture makes
> > the movie slider appear, and the next time a command is spoken to the
> > widget, it tries to display the new photo/movie on that texture, then
> > the movie slider disappears, and the face of the prim returns to its
> > original texture.
> >
> > If the character then tries to re-manually add the texture into the
> > "about land -> media" tab (because it's now disappeared), the texture
> > shows up as the photo it was originally trying to import.
> >
> > The code I'm using to display the texture is the following:
> >
> > llParcelMediaCommandList( [
> >                 PARCEL_MEDIA_COMMAND_URL, actualURL,
> >                 PARCEL_MEDIA_COMMAND_TEXTURE, (key)
> llGetTexture(0),
> >
> PARCEL_MEDIA_COMMAND_PLAY,PARCEL_MEDIA_COMMAND_LOOP,PARCEL_MEDIA_COMMAND_AUTO_ALIGN,TRUE
> > ]);
> >
> > All documentation I've found says that this should work if the object
> > is rezzed on land owned by the objects owner, but this appears only to
> > work when rezzed on land owned by the object's creator.
> >
> > Any ideas?  I've been wrestling with this for days.
> >
> > Cheers,
> >
> > Rich.
> > _______________________________________________
> > Click here to unsubscribe or manage your list subscription:
> >
> https://lists.secondlife.com/cgi-bin/mailman/listinfo/secondlifescripters
> >
>
>
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> https://lists.secondlife.com/cgi-bin/mailman/listinfo/secondlifescripters
>
>


More information about the secondlifescripters mailing list