SwireD Posted October 16, 2019 Share Posted October 16, 2019 (edited) hi! why this script animates the texture only along one axis, and I have to rotate the texture sideways in Photoshop, is it possible to change the animation axis in this script? I also can’t scale the texture when using this script. how to reduce or enlarge the image and use this script? i can stretch texture manually, but script scales it back // anim SMOOTH Script // By Doug Linden (I think) // // Drop on an object to make it change colors. // // If you are interested in scripting, check out // the Script Help under the help menu. // The double slash means these lines are comments // and ignored by the computer. // All scripts have a default state, this will be // the first code executed. default { // state_entry() is an event handler, it executes // whenever a state is entered. state_entry() { // llSetTextureAnim() is a function that animates a texture on a face. llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, 1,1,1,1.0, 1,0.5); // animate the script to scroll across all the faces. } } Edited October 16, 2019 by SwireD Link to comment Share on other sites More sharing options...
SwireD Posted October 17, 2019 Author Share Posted October 17, 2019 (edited) I solved the part of the texture resizing puzzle because of the script. for this, it is enough to leave some values equal to zero. It remains unclear how to change the axis of the animation. llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, 0, 0, 1.0, 1.0, 1.0); Edited October 17, 2019 by SwireD Link to comment Share on other sites More sharing options...
KT Kingsley Posted October 18, 2019 Share Posted October 18, 2019 You can change the direction of the animation using the texture rotation setting, either in the build floater manually, or by script. 1 Link to comment Share on other sites More sharing options...
SwireD Posted October 19, 2019 Author Share Posted October 19, 2019 (edited) On 10/18/2019 at 6:33 AM, KT Kingsley said: You can change the direction of the animation using the texture rotation setting, either in the build floater manually, or by script. Yes, i can, but when i drop this script in it changes back to default, no matter manually or by piece of code. I mean, now it goes from left to right, and if i rotate the texture to 90 ° it will simply go from top to bottom etc. Animation follows the texture.... Edited October 19, 2019 by SwireD Link to comment Share on other sites More sharing options...
Mollymews Posted October 19, 2019 Share Posted October 19, 2019 2 hours ago, SwireD said: I mean, now it goes from left to right, and if i rotate the texture to 90 ° it will simply go from top to bottom etc. Animation follows the texture.... yes that is the expected behaviour of the function. There is no Axis parameter. We do have to create a separate texture for each axis we want 1 1 Link to comment Share on other sites More sharing options...
Lucia Nightfire Posted October 20, 2019 Share Posted October 20, 2019 16 hours ago, Mollymews said: yes that is the expected behaviour of the function. There is no Axis parameter. We do have to create a separate texture for each axis we want Something that could be alleviated with these additional parameters. LL needs to hire a quarterback who has all the time in the world to "tackle" things like this... 1 1 Link to comment Share on other sites More sharing options...
Mollymews Posted October 21, 2019 Share Posted October 21, 2019 21 hours ago, Lucia Nightfire said: LL needs to hire a quarterback who has all the time in the world to "tackle" things like this... agree. I would definitely like for Linden to have a person to do this kind of intermediate-level grunt work pretty much exclusively this person could also do other things like common API functions found in other languages: Int2Char() Char2Int(). Int2Hex() Hex2Int() etc Link to comment Share on other sites More sharing options...
Lucia Nightfire Posted October 22, 2019 Share Posted October 22, 2019 On 10/20/2019 at 7:13 PM, Mollymews said: agree. I would definitely like for Linden to have a person to do this kind of intermediate-level grunt work pretty much exclusively this person could also do other things like common API functions found in other languages: Int2Char() Char2Int(). Int2Hex() Hex2Int() etc There are examples of those in the wiki library. http://wiki.secondlife.com/wiki/Library_Combined_Library http://wiki.secondlife.com/wiki/Int2Hex 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now