Jump to content

ainst Composer

  • Posts

  • Joined

  • Last visited

Everything posted by ainst Composer

  1. What basics are you talking about? following your perverted "logic", they must learn how a computer works, how electricity works, what an atom consists of and how the universe works. Do you know the answers to all these questions? you can only criticize. I understand why people call you annoying spammer.
  2. Thanks a lot! The script indeed turns out much shorter!
  3. @Rolig Loon Ok i got this working. But the script appears very huge. Especially if using more textures. How to simplify? I like the idea of making list of texture UUIDs, prims and faces from the old script. But i really dont get it... In this version i used materials for one face, but it would be great to make it work at least for diffuse only. integer PRIM_1=7; integer PRIM_2=3; integer PRIM_3=3; integer PRIM_4=3; integer PRIM_5=4; integer PRIM_6=5; integer PRIM_7=6; integer FACE_1=0; integer FACE_2=0; integer FACE_3=1; integer FACE_4=2; integer FACE_5=0; integer FACE_6=0; integer FACE_7=0; vector WHITE=<1.0,1.0,1.0>; string DIFFUSE_1 = "1f22b3bd-a654-9758-d511-da392b1aa2bb"; string NORMAL_1 = "457503d4-4804-753a-4a64-ef4fb3cf7d92"; string SPECULAR_1 = "50576c65-a64c-243e-14ca-30aa2ab86a6a"; string DIFFUSE_2 = "e115becb-d5fe-3bb2-64e1-e07a956d3d54"; string DIFFUSE_3 = "2c27c1ba-4295-3d3c-eeb0-3eec35df01c3"; string DIFFUSE_4 = "e115becb-d5fe-3bb2-64e1-e07a956d3d54"; string DIFFUSE_5 = "b4030db3-17dc-5b1e-0603-b2f8f4ee813e"; string DIFFUSE_6 = "b4030db3-17dc-5b1e-0603-b2f8f4ee813e"; string DIFFUSE_7 = "b4030db3-17dc-5b1e-0603-b2f8f4ee813e"; default { state_entry() { llSay(0, "Hello, changing texture!"); llSetLinkPrimitiveParamsFast (PRIM_1, [ PRIM_TEXTURE,FACE_1,DIFFUSE_1,<1,1,0>,ZERO_VECTOR,0.0, PRIM_NORMAL,FACE_1,NORMAL_1,<1,1,0>,ZERO_VECTOR,0.0, PRIM_SPECULAR,FACE_1,SPECULAR_1,<1,1,0>,ZERO_VECTOR,0.0,WHITE,100,5,PRIM_COLOR,FACE_1,<1,1,1>,1.0, PRIM_LINK_TARGET, PRIM_2, PRIM_TEXTURE,FACE_2,DIFFUSE_2,<1,1,0>,ZERO_VECTOR,0.0, PRIM_LINK_TARGET, PRIM_3, PRIM_TEXTURE,FACE_3,DIFFUSE_3,<1,1,0>,ZERO_VECTOR,0.0, PRIM_LINK_TARGET, PRIM_4, PRIM_TEXTURE,FACE_4,DIFFUSE_4,<1,1,0>,ZERO_VECTOR,0.0, PRIM_LINK_TARGET, PRIM_5, PRIM_TEXTURE,FACE_5,DIFFUSE_5,<1,1,0>,ZERO_VECTOR,0.0, PRIM_COLOR,FACE_1,<1,1,1>,1.0, PRIM_LINK_TARGET, PRIM_6, PRIM_TEXTURE,FACE_6,DIFFUSE_6,<1,1,0>,ZERO_VECTOR,0.0, PRIM_COLOR,FACE_1,<1,1,1>,1.0, PRIM_LINK_TARGET, PRIM_7, PRIM_TEXTURE,FACE_7,DIFFUSE_7,<1,1,0>,ZERO_VECTOR,0.0, PRIM_COLOR,FACE_1,<1,1,1>,1.0 ]); llRemoveInventory(llGetScriptName()); } }
  4. Thats what i have so far. It changes all three types of materials textures on one face of one prim in the linkset. I can manually add each prim and face but this is very inconvenient. I don’t know what to do next. To specify at the top of script list of all the prims and faces and textures UUIDs like in the old script? Is there any useful parts? Because now i see it does absolutely not what i needed. It applies each same texture from the list in order or random. NEW Script integer LINKNUM=2; integer FACE=0; vector WHITE=<1.0,1.0,1.0>; string DIFFUSE_1 = "d8d8b2e0-7b93-10ed-92ec-67f07dab1271"; string NORMAL_1 = "b83326c9-9cb7-7b31-3938-3558e3571481"; string SPECULAR_1 = "79059f93-6ced-1211-505c-aa5cd41a61ca"; default { state_entry() { llSay(0, "Hello, changing texture!"); llSetLinkPrimitiveParams (LINKNUM, [ PRIM_TEXTURE,FACE,DIFFUSE_1,<1,1,0>,ZERO_VECTOR,0.0, PRIM_NORMAL,FACE,NORMAL_1,<1,1,0>,ZERO_VECTOR,0.0, PRIM_SPECULAR,FACE,SPECULAR_1,<1,1,0>,ZERO_VECTOR,0.0,WHITE,100,5 ]); llRemoveInventory(llGetScriptName()); } } Okay, to hell normal maps! As a beginning diffuse maps only! I guess its easier to make a list... integer LINKNUM=2; integer FACE=0; vector WHITE=<1.0,1.0,1.0>; string DIFFUSE_1 = "d8d8b2e0-7b93-10ed-92ec-67f07dab1271"; default { state_entry() { llSay(0, "Hello, changing texture!"); llSetLinkPrimitiveParams (LINKNUM, [ PRIM_TEXTURE,FACE,DIFFUSE_1,<1,1,0>,ZERO_VECTOR,0.0 ]); llRemoveInventory(llGetScriptName()); } }
  5. @Rolig Loon Thank you very much! Now a new problem. The same texture applies on both faces of both prims. (On the second face is the same texture only stretched) //texture list...this list should have 2 or more textures list textures = [ "d511b62a-ec31-26d8-e6ac-a81eee01fc81", "1f22b3bd-a654-9758-d511-da392b1aa2bb" ];//put your texture UUIDs/keys in here //Please note there is a .2 second delay between prims. //"prim number, side number, side number...side number" //-1 equals all sides for that prim list sides = [ "3,1", "7,0" ];//put in which sides you want the texture to be changed on. https://gyazo.com/8e1567e5a3484da0ea0e60b5c0886e35 Oh by the way I added llRemoveInventory(llGetScriptName()); after changetexture();//change the texture (both lines 81 and 90 because i wanted to script self-delete) Could it be the reason? I am thinking to create a new script using SLPPF...
  6. @Rolig Loon Thats what happens... ... when you use someone else script I am sorry, something is wrong with adding GIFs. I am trying to add gif to show you but it posts empty messages. https://gyazo.com/97af448326fd8ab22041b7e5aff193dd I guess the reason is in timer.i just need to get rid of the timer somehow... But then, why it applies on the wrong face? No matter what face i specify it applies on face 2.
  7. @Rolig Loon I have a problem with this script. Take a look please. It scrolls through the textures UUIDs in cicle from the list with the wrong face. I indicated the face 0 and the texture is updated on the face 2... These are the parameters I specified. tell me what am i doing wrong? Why does it behave this way and how to fix it? //Adjustable global variables...you may change these //texture list...this list should have 2 or more textures list textures = [ "e115becb-d5fe-3bb2-64e1-e07a956d3d54", "2c27c1ba-4295-3d3c-eeb0-3eec35df01c3", "b4030db3-17dc-5b1e-0603-b2f8f4ee813e", "339ca587-0d3e-1224-00ac-9786ebe1caf4"];//put your texture UUIDs/keys in here //Please note there is a .2 second delay between prims. //"prim number, side number, side number...side number" //-1 equals all sides for that prim list sides = [ "1,0", "2,0", "3,0", "4,0"];//put in which sides you want the texture to be changed on. float frequency = 2.0;//how often to change the texture in seconds. Shouldn't be below 2.0 //please note that the last and first texture will be shown less frequently than those in between integer random = FALSE;//whether to show the textures randomly, or in order integer duplicatecheck = FALSE;//if random is true, this will check to make sure the random selection is a new texture
  8. I'm trying, I even wrote one or two simple scripts, but for now I’m mostly at the stage of changing and combining existing ones. I think that in order to become a scripter, people go to this all their lives ... Slppf - can it be used to apply not only diffuse, but normal and specular maps (materials) too?
  9. @Rolig Loon Oh, and do I understand correct and this script will do what I needed?
  10. Hello! Thank you for your answer! Very interesting part! How does using llSetLinkPrimitiveParams make it easier? and what are the advantages? Thanks!
  11. Hey. I'm trying to create or find a ready-made script that changes the textures of certain faces of certain prims in the linkset when placed in the linkset or as a rezzing installer. (Like the one used for vehicle livery appliers etc). I found such a script, but I don’t see where to put numbers of prims. so I doubt that this is what I need. maybe I just misunderstood the description? If somebody can read scripts, please tell me is it what I need? Help! TEXTURE CHANGER WIKI
  12. Hello! Everyone knows texture changers / installers for vehicles. You place them near object and it changes texture. I am looking for such a script or the installer itself, allowing you to change all three types of textures diffuse normal specular (materials). Tell me where I can get it? Is it hard to write such script?
  13. Hello! Does anyone know where to get water texture of sl? that endless texture of water.
  14. Hello! Can anyone write dance hud script with 4-5 buttons? - invite - next dance - previous dance - stop For reward of course! Please, leave a message! Thank you!
  15. Hello! I want to make a relief (specular) tattoo with an omega system. with enabled materials. What do I need for this? previously did the usual omega tattoo. What is the difference?
  16. Hello! How to make the UUID music player script read UUIDs from a notecard?
  17. Thanks! And what for example, if I have two stores, and I transfers money from the second account to another and already withdraw money from it, how legal is it?
  18. Hello! How many stores are allowed to have one person in sl? and how many alts are allowed to have at all officially? Do I have the right to transfer the Linden to another person and/or my alt?
  19. Hi! Thanks very much! I set falloff to 10 and it looks much brighter now!
  20. Hello! I am making a small building about 3 x 5 in size and baking AO map in blender render, but for some reason it appears too dark inside, the walls seem gray. How can I make it lighter but not lose the shadow in the corners? (the building has two doors and windows on all walls).
  21. Maybe someone knows how to add on and off here? what are the ways? The chat command is more or less clear, but how else? Say, a long press for three seconds? how to do it?
  22. Thanks very much for your answer! You are awesome! integer count; list songs = [ "6aa62a53-b504-ac84-f045-c635872487ce", "79e5c392-acf3-94fe-a311-47bdff2cb511", "0ff6b5fd-ae86-6980-8bfa-38a93dadd2ab"]; default { touch_start(integer total_number) { llLoopSound( llList2Key(songs,count), 0.5 ); ++count; count %= llGetListLength(songs); } } (Its an example UUIDs)
  23. Hello! I need to create a script that allows to loop a 10 seconds sound clip from the UUIDs list in the script (or one notecard). and to switch to the next loop when clicked, (please, note - not full song player - only one 10 seconds loop) with the ability to turn on / off. any suggestions? Scheme, how i see it: start list: bananas - uuid1, vol 1.0; madonna - uuid2, vol 1.0; ... jackson - uuid3, vol 1.0; on/off ?; if touched loop next uuid; end. Yes, I already asked and really hate to do this, but now I decided to try to create my own script, because I did not find a suitable one from the existing ones.
  • Create New...