These forums are CLOSED. Please visit the new forums HERE
Changing Transparency |
|
|
Enrique Plutonian
Registered User
Join date: 24 Nov 2008
Posts: 3
|
12-10-2008 13:40
I work on UNO's island and we're working on a global warming model. Right now we have a bunch of prims covering the land that was already there made to look like ice. To make it look like the ice is melting, I was wanting to make a script that made the objects more and more transparent. Am I able to change this through scripting? Or do I have to kill and rez new objects that are more transparent than the previous one?
|
|
Galena Qi
Registered User
Join date: 9 Sep 2006
Posts: 249
|
12-10-2008 13:46
You can change the transparencies of all the prims simultaneously with a script. See the LSL wiki description of llSetAlpha.
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetAlpha If the prims are all linked together, you can use llMessageLinked to communicate the change in transparency. If not, you'll need to have the master script chat to each prim script on a private channel. |
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
12-10-2008 13:50
Yes, you can use either llSetPrimitiveParams or llSetAlpha to do the job. Take a look at their entries in the LSL Wiki at
http://lslwiki.net/lslwiki/wakka.php?wakka=llSetPrimitiveParams and http://lslwiki.net/lslwiki/wakka.php?wakka=llSetAlpha You might also want to look at an example in the wiki's library at http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryMitzFader |
|
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
|
12-10-2008 13:52
You can change the transparencies of all the prims simultaneously with a script. See the LSL wiki description of llSetAlpha. http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetAlpha If the prims are all linked together, you can use llMessageLinked to communicate the change in transparency. If not, you'll need to have the master script chat to each prim script on a private channel. You can also use llSetLinkAlpha to set the child's alphas. _____________________
Visit ChereeMotion - Life's Best Pinup Poses
http://slurl.com/secondlife/Wild%20Rice/38/230/51 |
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
12-10-2008 18:35
It's not really what you asked about, but you might be interested in this thread concerning a very different way of getting ice to melt /54/df/293865/1.html
|