SpookyHollows Posted August 13, 2015 Share Posted August 13, 2015 Okay...as usual, I hope I am putting this in the right place. I just made a chair in Blender, came out okay and uploaded just fine, but now...I'm floating? Yea. Is there any way to fix this? I heard there were scripts that position sitting settings? I want to make sure my chair works correctly before I try putting it on the Marketplace. Any help is greatly appreciated! Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 13, 2015 Share Posted August 13, 2015 Yup. Either write a simple sit script (see the first example at http://wiki.secondlife.com/wiki/LlSitTarget#Examples ) or rush out and buy a fancier system like AvSitter that will let you manage a selection of poses and adjust the sit position with a dialog. Link to comment Share on other sites More sharing options...
SpookyHollows Posted August 13, 2015 Author Share Posted August 13, 2015 I don't know a thing about sctipts, so I might save up for one thanks for letting me know though! Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 14, 2015 Share Posted August 14, 2015 I should have also pointed out that you can find free sit scripts in many places around SL. One good, reliable one is right here in the LSL Scripting Library: https://community.secondlife.com/t5/LSL-Library/Basic-Pose-Ball-script/m-p/719317 You'll have to adjust the numbers in the llSitTarget function to meet your own requirements, but that's quite easy. Link to comment Share on other sites More sharing options...
SpookyHollows Posted August 16, 2015 Author Share Posted August 16, 2015 Thanks! But how do I add the script? I tried to copy/paste it into the script file on my mesh, but it keeps giving me an error. Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 16, 2015 Share Posted August 16, 2015 You can either copy/paste into a New Script in your chair or you can copy/paste into a New Script that you create in your inventory and then drop that into the chair. Eitther way will work, as long as you are copying the entire script and nothing but the script. If it doesn't, you'll have to say more than "it keeps giving me an error." Like, maybe, exactly what does the error message say? Link to comment Share on other sites More sharing options...
SpookyHollows Posted August 16, 2015 Author Share Posted August 16, 2015 Ah nevermind, it was an error in the text, it works now...now I just gotta figure out the coords Link to comment Share on other sites More sharing options...
SpookyHollows Posted August 17, 2015 Author Share Posted August 17, 2015 llSitTarget function seems to have 4 axis points? How do I know which is which? Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 17, 2015 Share Posted August 17, 2015 A vector always has three coordinates <X, Y, Z> and a rotation always has four <X, Y, Z, S>. For a sit target, the position vector and the rotation are always local. That is, relative to the seat itself, not to the region around it. Rotations are hard to get used to at first, so it's often easier for beginners (and a lot of other people) to write them in the form llEuler2Rot( <X, Y, Z> * DEG_TO_RAD), where X, Y, and Z in that context are the angular displacements of the sit target in the direction of the red, green, and blue circles that you see if you adjust rotation manually with the edit tool in your viewer. Unless you need to make the person on your chair lean forard or to one side, you really only need to mess with Z. So llEuler2Rot(<0.0,0.0,90.0>*DEG_TO_RAD) is a 90 degree turn anticlockwise, for example. The best way to get used to position vectors and rotations is to play with them and see what happens. Sit targets are great learning tools. Link to comment Share on other sites More sharing options...
SpookyHollows Posted August 17, 2015 Author Share Posted August 17, 2015 So if I just needed to move my avatar down, so she's actually sitting on the chair instead of floating, I would mess with Z in the vector area of the script? And thats odd, never heard of an s axis before lol Also, once I have the script added into the object, and it's all set up, will it work for other people too, like if someone bought it from me on the marketplace, would the script work the same for them? I messed with some of the axis parts for a while and accidentally got teleported into someone elses apartment whenever I sat in the chair that was so odd but funny. Link to comment Share on other sites More sharing options...
Rolig Loon Posted August 17, 2015 Share Posted August 17, 2015 It ought to. If you are making furniture to sell you really ought to invest in AvSitter or a similar package at some point, unless you feel up to scripting a complex sit script yourself. Customers seem to expect the flexibility these days. For a first project, though, or for something for yourself and friends, it's good to have a nice simple sit script in your toolkit. And yes, you can make some interesting mistakes while you are learning about changing positions and rotations. Enjoy. Link to comment Share on other sites More sharing options...
SpookyHollows Posted August 17, 2015 Author Share Posted August 17, 2015 Oh, that's good! I'll be sure to get AvSitter when I can, I just watched some of the tutorials about it, and it looks very flexible! It looks quite easy for adjusting poses too. And thanks for linking me to that script! I've almost got the avatar position fixed. 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