#Opensim Notes #4

So couple of things I have learned lately. I have been using the Singularity viewer with Opensim, seems to work well.

One thing that was annoying me was that when I would stretch a Prim using the singularity viewer it would mirror the stretch to both sides! Well guess what, if you click the button to disable stretch both sides, it fixes it!

Another thing I wanted to learn how to do was create a blinking light. I started out learning a little about it from here

How to make an animated portal texture

Basically, I ended up creating a 100 x 100 square with four repetitions that are 50 x 50 each. One square being black the other being green.

Then I modified the script to look like this

default
{
state_entry()
{
llSetTextureAnim( ANIM_ON | LOOP, ALL_SIDES, 2, 2, 0, 4, 8 );
}
on_rez(integer start_parm)
{
llResetScript();
}
changed(integer change) // something changed, take action
{
if(change & CHANGED_OWNER)
{
llOwnerSay(“Owner Changed, Resetting Script”);
llResetScript();
}
else if (change & 256) // that bit is set during a region restart
{
llResetScript();
}
}
}

Last thing I learned how to do, was on the edit screen you can choose Select Texture, and that allows me to select the specific face that I want to work with!

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s