D33SS3 Posted March 18, 2019 Share Posted March 18, 2019 Hello everyone! [ My knowledge with LSL Scripting is at a beginner level, so please bare with me! :) ] Recently, I purchased a texture changing script from Renderworks, I'm not having trouble with creating a HUD with texture changes. However, I was wondering if it was possible to add to the script an option to control the visibility of a particular face of a mesh and/or combine two faces for one on and off toggle. Link to comment Share on other sites More sharing options...
Rolig Loon Posted March 18, 2019 Share Posted March 18, 2019 Welcome aboard. You will want to start becoming familiar with the LSL wiki, specifically the section on Functions. In this case, study the entries for llSetTexture ( and llSetLinkTexture ) and for llSetAlpha ( and llSetLinkAlpha ). They will show you the proper syntax for getting the right texture on the right face and determining whether it's visible of transparent. While you are just learning, the easiest way to think of accomplishing many things at once is to collect them into the same scope, so that they are all handled by the same decision, as in if ( iON == TRUE) { // do this // and this // and this } There are more compact ways -- much better ones -- of doing this ( take a look at llSetLinkPrimitiveParams in the wiki ), but get comfortable with the basic method first. Link to comment Share on other sites More sharing options...
D33SS3 Posted March 18, 2019 Author Share Posted March 18, 2019 2 minutes ago, Rolig Loon said: Welcome aboard. You will want to start becoming familiar with the LSL wiki, specifically the section on Functions. In this case, study the entries for llSetTexture ( and llSetLinkTexture ) and for llSetAlpha ( and llSetLinkAlpha ). They will show you the proper syntax for getting the right texture on the right face and determining whether it's visible of transparent. While you are just learning, the easiest way to think of accomplishing many things at once is to collect them into the same scope, so that they are all handled by the same decision, as in if ( iON == TRUE) { // do this // and this // and this } There are more compact ways -- much better ones -- of doing this ( take a look at llSetLinkPrimitiveParams in the wiki ), but get comfortable with the basic method first. Yay, thank you! I will be doing the research right now! Link to comment Share on other sites More sharing options...
steph Arnott Posted March 18, 2019 Share Posted March 18, 2019 (edited) 26 minutes ago, D33SS3 said: Suggest you start here http://wiki.secondlife.com/wiki/A_Basic_LSL_Tutorial Edited March 18, 2019 by steph Arnott 1 Link to comment Share on other sites More sharing options...
D33SS3 Posted March 18, 2019 Author Share Posted March 18, 2019 Thank you guys, I figured it out! ❤️ 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