bruns Weezles Posted March 5, 2015 Share Posted March 5, 2015 Hello, I have done a simple panel that include 4 faces :I am going to script it, but i would like to know if there is any way to choose the faces number.Actually the faces are like this :And i would like them to be like that (It would be way more easy for me to script it) : Link to comment Share on other sites More sharing options...
Aquila Kytori Posted March 5, 2015 Share Posted March 5, 2015 Hi The order of the faces in SL corresponds to the order in the material list of your 3D software (I use Blender and presume its the same in other programmes). So the first material in the List you assign to the face you want to be face .... 0 in SL the second material in the list you assign to the face you want to be face ... 1 in SL the third material in the list you assign to the face you want to be face ... 2 in SL etc etc ........... Link to comment Share on other sites More sharing options...
Rolig Loon Posted March 5, 2015 Share Posted March 5, 2015 If you are ever going to script an object to respond to a touch on a specific face or a specific child prim, it's handy to have a simple utilty script to drop into it while you work. default{ touch_start(integer num) { llSay(0,"Touched prim " + (string)llDetectedLinkNumber(0) + " on face " + (string) llDetectedTouchFace(0)); }} The Linden Lab viewer doesn't tell you those bits of information and the Firestorm viewer gives the wrong answers too often, but that little script always works. Of course, when you actually write your script you'll want to replace child prim numbers with names so you don't risk having the script screw up if you relink prims in a new order. Face numbers always stay the same, though. Once you've used this script to figure out which one is which, you're set for all time. Then you can remove the script. 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