Advertisement
Guest User

size rot pos

a guest
Jul 17th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. list pos1 = [<0.115900, -0.010000, 0.134200>,<0.144649, 0.000000, -0.022791>,<0.110900, -0.031100, 0.123600>,<0.117000, 0.000000, 0.045809>,<0.109700, 0.010600, 0.135000>,<0.084500, 0.000000, 0.048200>];
  2. list size1 = [<0.048454, 0.090005, 0.089484>,<0.029890, 0.022380, 0.047280>,<0.042742, 0.093060, 0.082844>,<0.044420, 0.147420, 0.067420>,<0.045792, 0.094480, 0.085613>,<0.054950, 0.095750, 0.081860>];
  3. list rot1 = [<0.000000, 0.000000, 0.000000, 1.000000>,<0.705070, 0.705070, 0.053637, 0.053636>,<0.253402, -0.069068, 0.018697, 0.964711>,<-0.552811, -0.552811, 0.440908, 0.440908>,<-0.244601, -0.048932, -0.012153, 0.968312>,<-0.508665, -0.508665, 0.491182, 0.491182>];
  4.  
  5. list pos2 = [<0.115900, -0.010000, 0.134200>,<0.144649, 0.000000, -0.022791>,<0.110900, -0.031100, 0.123600>,<0.117000, 0.000000, 0.045809>,<0.109700, 0.010600, 0.135000>,<0.084500, 0.000000, 0.048200>];
  6. list size2 = [<0.048454, 0.090005, 0.089484>,<0.029890, 0.022380, 0.047280>,<0.042742, 0.093060, 0.082844>,<0.044420, 0.147420, 0.067420>,<0.045792, 0.094480, 0.085613>,<0.054950, 0.095750, 0.081860>];
  7. list rot2 = [<0.000000, 0.000000, 0.000000, 1.000000>,<0.705070, 0.705070, 0.053637, 0.053636>,<0.253402, -0.069068, 0.018697, 0.964711>,<-0.552811, -0.552811, 0.440908, 0.440908>,<-0.244601, -0.048932, -0.012153, 0.968312>,<-0.508665, -0.508665, 0.491182, 0.491182>];
  8.  
  9. ...//lots more
  10. ...
  11.  
  12. count = llGetNumberOfPrims();
  13. integer j;
  14. string desc;
  15. string name;
  16.  
  17. for ( j=1; j<=count; ++j)
  18. {
  19. desc = llList2String(llGetLinkPrimitiveParams(j,[PRIM_DESC]),0);
  20.  
  21. if ( desc == "accessory" )
  22. {
  23. accessorieslinks += [j];
  24. }
  25. ...
  26. ...
  27. }
  28.  
  29. if (positionselected == "1")
  30. {
  31. integer a;
  32. for ( a=0; a<llGetListLength(accessorieslinks); ++a)
  33. {
  34. llSetLinkPrimitiveParamsFast(llList2Integer(accessorieslinks, a),
  35. [
  36. PRIM_SIZE, llList2Vector(size1,a),
  37. PRIM_POS_LOCAL, llList2Vector(pos1,a),
  38. PRIM_ROT_LOCAL, llList2Rot(rot1,a)
  39. ]);
  40. llSetLinkAlpha(llList2Integer(pos1, a), 1.0, ALL_SIDES); //in case it is hidden
  41. }
  42. }
  43. else if (positionselected == "2")
  44. {
  45. integer a;
  46. for ( a=0; a<llGetListLength(accessorieslinks); ++a)
  47. {
  48. llSetLinkPrimitiveParamsFast(llList2Integer(accessorieslinks, a),
  49. [
  50. PRIM_SIZE, llList2Vector(size2,a),
  51. PRIM_POS_LOCAL, llList2Vector(pos2,a),
  52. PRIM_ROT_LOCAL, llList2Rot(rot2,a)
  53. ]);
  54. llSetLinkAlpha(llList2Integer(pos2, a), 1.0, ALL_SIDES); //in case it is hidden
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement