Anyone know where I can start looking for a body shape change script?
Or possibly what function/avenue to persue on figuring it out?
These forums are CLOSED. Please visit the new forums HERE
Body shape change |
|
Rune Quinnell
Registered User
Join date: 25 Aug 2007
Posts: 28
|
02-09-2008 21:15
Anyone know where I can start looking for a body shape change script?
Or possibly what function/avenue to persue on figuring it out? |
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-10-2008 00:24
Unfortunately you cannot change shapes or clothing using LSL scripts alone. It would be very nice if an attachment could do this, for example, but it has never been implemented. So unless you want to make an all-prim body (like furries often do), you'll have to do it with a custom client or not at all.
|
Rune Quinnell
Registered User
Join date: 25 Aug 2007
Posts: 28
|
02-12-2008 14:03
That's actually not true. My friend has an object that distorts ur shape when you touch it and there are avatars that make ur shape smaller when u wear them.
Hence my curiousity. Now is it possible to upload a mesh as a body shape as well? |
Winter Ventura
Eclectic Randomness
![]() Join date: 18 Jul 2006
Posts: 2,579
|
02-12-2008 14:05
no.
these scripted distortions you see are actually animations. The "wacky deform" objects are just a set of bugged animations that screw up the avatar. The "tiny" avs are just using Animation overrides that fold the arms and legs in on themselves. (lots of 180's) If you wanted to build an avatar out of prims, then YES you could change the shapes via script. But you can't alter the actual avatar. Things you can't do in LSL: /54/60/214765/1.html _____________________
![]() ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura |
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
02-12-2008 14:27
well i assume it could be scripted to change form using an attachment or hud. i can't test it at the moment as i'm at work in rl, so i don't have access to sl, i'm just online browsing through scripts. but it would seem theoretically likely to inserts shapes, hair, skins, etc into an object, and script that object to make your avatar switch between body parts on command.
|
Void Singer
Int vSelf = Sing(void);
![]() Join date: 24 Sep 2005
Posts: 6,973
|
02-12-2008 16:10
well i assume it could be scripted to change form using an attachment or hud. i can't test it at the moment as i'm at work in rl, so i don't have access to sl, i'm just online browsing through scripts. but it would seem theoretically likely to inserts shapes, hair, skins, etc into an object, and script that object to make your avatar switch between body parts on command. unfortunately while you can give those items, but you can't actually apply them (through the scripts). EDIT: this doesn't apply to things like prim hair, which could be rezzed and contain a script that requests permission to attach, that IS workable. but shapes, skins, clothes, eyes, and non-prim hair cannot contain scripts, (no be rezzed), so cannot use this workaround. they may only be worn, from inventory. _____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-12-2008 16:43
One of the projects I've had stewing in the back of my head for a while is a system you can use to manage outfits. For copyable attachments, clothes, and bodyparts, you'd do your modifications once then store them in a wardrobe object. Configure what items are in each outfit using a notecard or something, then when you want to wear a new outfit, select it via a user interface of some kind (chat, dialog, HUD, whetever), and it would give you a complete outfit folder. When you switch to a new outfit, delete the old folder. It doesn't work so well for no-copy bits though, so you'd have to manage them separately.
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
02-17-2008 00:52
One of the projects I've had stewing in the back of my head for a while is a system you can use to manage outfits. For copyable attachments, clothes, and bodyparts, you'd do your modifications once then store them in a wardrobe object. Configure what items are in each outfit using a notecard or something, then when you want to wear a new outfit, select it via a user interface of some kind (chat, dialog, HUD, whetever), and it would give you a complete outfit folder. When you switch to a new outfit, delete the old folder. It doesn't work so well for no-copy bits though, so you'd have to manage them separately. Wow, would be awesome to see the finished product/script, hope it works ![]() |
Erluen Twin
Registered User
Join date: 26 May 2006
Posts: 23
|
08-03-2009 21:47
Dear Winter Ventura... offer solutions, not problems.
you CAN alter the avatar to your pleasing, but limited to joint positions. For example, you can move your head up 5 meters (stretch your neck) but you cannot make your neck into a spiral like a spring, or make it square. What you can do is use certain text documents (files) that stores all the positions of all the joints (17 joints I think - 17 text files) and change the x, y, z values somewhere, and then save that file as a BVH animation. When the animation is played in SL, your avatar will have its joints moved according to what you specified. Its how they make dragons - by stretching the arms into bat-like positions, and moving the head way up into the dragons long neck. I myself am searching for these files, because I did it last year with great success, and since then got a new computer and I cant find the files anymore!! It kind of like "tricking" SL into thinking that the joint positions you set are the normal positions to start from. When I find the files, Ill be sure to post a link here |
Malia Writer
Unemployed in paradise
![]() Join date: 20 Aug 2007
Posts: 2,026
|
08-03-2009 22:06
One of the projects I've had stewing in the back of my head for a while is a system you can use to manage outfits. |
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
|
08-03-2009 22:06
Dear Erluen, you'll note that nothing you said contradicts what Winter said. It's done with animations, a script alone can't do it. Next time, try not to be so snide when you're "correcting" people who aren't actually wrong.
![]() |
Erluen Twin
Registered User
Join date: 26 May 2006
Posts: 23
|
Deformer Tutorial.
08-03-2009 22:52
I found it.. Go to this page:
https://jira.secondlife.com/browse/VWR-2242 And download the zipped .bvh files. Open them as a TEXT DOCUMENT and have a look - especially at the difference between TinyDeformForearmr and UnDeformForearmr. ("forearmr" means "right forearm" ![]() Please correct me if Im wrong, but heres what I know: The things to change are at the TOP and BOTTOM of the text file. The middle stuff should not be changed. At the top it says >> HIERARCHY >> ROOT rForeArm >> { >> OFFSET 0.000000 0.000000 0.000000 etc etc etc >> CHANNELS 6 Xposition Ypos etc etc etc You need to change the ROOT to whichever body joint you want to affect. ROOT rForearm will move the right elbow joint. It actually stretches the length of the upper arm. ROOT rHand will move the wrist join and will lengthern the forearm. Try to keep this in mind not to get confused!! ;p You can't stretch the hand itself because there is no joint at the tips of the fingers - obviously. Another way to keep it straight is to think of ROOT forearm as you grabbing the forearm with both hands and pulling it away from the body. the forearm wont stretch because your holding it, but the upper arm will stretch like rubber. So - STEP 1: Change ROOT to the joint you want to move. (eg ROOT rForeArm, ROOT Head, ROOT Chest) be careful of capital letters. STEP 2: At the bottom, youll see this: >> } >> MOTION >> Frames: 2 >> Frame Time: 0.033333 >> 0.000000 43.528519 0.000000 0.000000 0.000000 0.000000 0.000000 >> -0.075000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 >> 0 >> 0 >> 0 Now its the 2nd row of numbers you should look at. -0.075000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 The first 3 numbers are the x, y, z coordinates as far as I can tell. So, the position of joint in space relative to parent joint is: x -0.075000 (length) y 0.000000 (to the side of AV) z 0.000000 (forward of back of AV) I THINK that if you decrease the x value, (make it a MORE negative number) the right limb will stretch. This is for the RIGHT arm and RIGHT leg only. For the LEFT arm and leg, and you can see in the bvh files, IN-creasing the x value (more positive) will stretch the arm. Always compare it to the UnDeform file. The unDeform files have the "normal" values for an avatar. NORMAL values for Av: Right side : neg value (eg -10.2 for right forearm) Left side : pos value (eg 10.2 for right forearm) Try to keep these straight in your head as well ![]() XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X Side note: For some reason, the left forearm has 3 lines of numbers X X I assume the 3rd line is the one to change, since it has an X X x value of 10.12 X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Now, for the right arm, making it more negative than the "Normal value" will stretch it. Since the Normal Value is -10.266 , lets change that to -60.00. Save the file as a Deform_Right_Forearm.bvh file (not a .txt) And go into SL. Upload animation Deform_Right_Forearm.bvh Find it in inventory Play animation. Viola - your right upper arm should be longer. about 5 times longer I think. Stop Animation. Your arm will still be long. There are 2 ways to Normalize it. 1 - Upload UnDeformrForearm.bvh and play it. 2 - Relog. I have a touch start script (with llRequestPermissions of course) which plays each animation in turn automatically. I have my deforem button, and undeform button and it works very nicely. One hint: To save 10Lndens on uploading 100 of test animations, when you login to SL, press CTRL SHFT G. (or is it CTRL ALT G??) to get a pulldown menu of Grids. Then choose the 2nd grid Aditi where you can beta test all your animations for free. When you find the one perfect animation, you can log into SL proper (Grid named Agni) and upload for 10 lindens. |
Rygel Ryba
Registered User
Join date: 12 Feb 2008
Posts: 254
|
08-03-2009 23:57
One of the projects I've had stewing in the back of my head for a while is a system you can use to manage outfits. For copyable attachments, clothes, and bodyparts, you'd do your modifications once then store them in a wardrobe object. I've had one of these out for a while. It's called the LBOM (LustBaby Outfit Manager) The base system - which allows for personal menu on your HUD to control your created "outfits" (or avatar rigs) is a part of our free LustBaby HUD. https://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=1331215 Granted - this doesn't work with just SL alone - you need RLV (Restrained Life Viewer) or another alternate viewer that supports RLV functions such as Greenlife Emerald, Cool Viewer, and several others. With RLV there is no real need for notecard configuration of the outfits and base avatar rigs. You just organize your RLV Shared Folders in a specific way. It takes a bit of organizing and planning to set up, but I have some cheap example outfits/avatar rigs available (and some free ones, in world) that give you step by step instructions how to set them up. (They aren't the best clothes in the world - I'm a scripter lol - but it will give you an idea of it). If you ask me (obviously, I'm biased) this is one of the coolest new things to hit SL in a while. Once you get a system set up for organizing your outfits and setting things up - you can change from outfit to outfit, human to demon, demon to fairy and whatever else you might come up with - all with a few clicks. No more hunting through inventory to apply stuff. No more making sure that "Add to Outfit" takes off the stuff it should while leaving on the stuff it should. It's very cool. (RLV isn't just for bondage anymore! lol) Many of our (mostly adult) roleplay machines make use of this system to change you, do transformations, and things like that. Once you have the base system set up - I've also created several cool addons for it that allow remote interactions and automatic changing in certain situations: WaterBaby System: This add-on will change you to the desired setup when you enter Linden Water. You can do a Human to Mermaid transformation, or have it automatically attach your scuba gear or whatever you can come up with. https://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=1656143 Chat Trigger Remote System: This addon lets you set trigger phrases to change you. It'll listen to open chat (can be laggy in busy areas), open chat but only listen to you, or set it to listen to you or everyone on any other channel. The phrases and what you change to (or out of, if you hang out in Zindra) are all configured via notecard. Captain Marvel? (SHAZAM!) Oh Mighty Isis! Or Mystical Transformation Spells - you can do it. (Works great with gestures too to add animations and sounds to the change). https://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=1670565 Day/Night - Lycan Plugin: Install this in any Sensations item (including our LustBaby Brain Implant) and you will be transformed when the SL sun goes down and will revert back to normal come morning. Good for werewolves and other lycanthropes - as well as those who are innocent librarians by day, and high class women of the night by - well, by night. https://uncensored.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=1472581 Touchable Clothing System allows you to create an attachment on an outfit that can make regular clothing layers work like those "rip script skirts" that you see that will remove the prim clothing on touch. Only with the LBOM it works with regular clothing layers - and it can also replace articles that have been removed. The "Basic" system is no mod to give you an idea of how it works, and the full "Power" system is mod (object and notecard) so you can configure it however you want. It does cool things like letting you switch from clean clothes to dirty clothes, pull-down blouses and bikinis, and all sorts of things. really - the possibilities are limited by what you can find or make and imagine to set up. BASIC: https://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=1640097 POWER EDITION: https://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=1640117 I also offer a free (erm L$1) developer's kit for scripters so you can create your own systems. It gives you a list of outfits, alternate outfits, and automatically tracks things like the last outfit, whether the person is nude, in their undies or dressed, and a lot of the hard stuff is already covered for you (such as the initial communications to make sure the LBOM and RLV stuff is set up, turned on, and working). The partner script in there is no-transfer, but if you make something cool - talk to me and we'll work out a commission deal or sell you a copy/transfer version of the partner script at a reasonable price or something. I haven't really decided how to work it all out yet. Obviously - since I'm developing and continuing to develop the base system for free, I'd like some kind of way to be compensated by getting some money for the add-on things... I'm not looking to get rich, but it does help me keep my sim and a six pack of beer for the weekend when I get to play on it. ![]() https://www.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=1348963 There are a growing list of other objects and machines and plugins that use the LBOM system too... https://uncensored.xstreetsl.com/modules.php?name=Marketplace&ItemID=1659546&SearchKeyword=lbom&SearchLocale=0 (If you are a clothing designer looking to make interactive clothing - contact me in world. I'd be happy to help you set up instructions and notecard for the TCS system that you can include in your outfits - and give you a vendor for the TCS (Touchable Clothing System) that pays you 20% commission. You can sell your outfits, people set it up as per the instructions we'll include and drop in the notecard you provide and they are good to go. They can also customize it and mix and match different elements, but... well, you get the idea... talk to me in world). Anyway... Sorry this post got so long. I meant to really just mention that this thing DOES in fact exist in SL right now (though a special viewer is required to be used by the person wearing the stuff - you can interact with the people and see the changes with a normal viewer, of course). It's something I spent many months developing and I am quite proud of the system. Sadly, because of the need for RLV, it hasn't really taken off or gotten much notice yet - but I think that once word starts to get out - it will be really cool for object creators, clothing designers and especially those people who have lots of outfits and avatar setups that are a pain in the butt to switch between. The base system will always be free to use, as well - and I'm actively working on adding more features, streamlining it, and refining the system. So... check it out (with the first link up there) and set up a few outfits. There are instructions linked to in the notecards for setting it up and getting RLV and all of that as well. Have fun and thanks for reading my novella! lol |
Malia Writer
Unemployed in paradise
![]() Join date: 20 Aug 2007
Posts: 2,026
|
08-04-2009 00:04
Yep, Rigel, yours is the one that I had heard of.
|
Dora Gustafson
Registered User
![]() Join date: 13 Mar 2007
Posts: 779
|
Off-Topic
08-04-2009 02:55
Am I the only one that thinks this thread is very much off topic? The only relation to scripting boils down to playing an animation from a script. The thread would be more at home in 'Animation tips'.
Not to mention the heavy advertising ![]() _____________________
From Studio Dora
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
08-04-2009 04:40
Am I the only one that thinks this thread is very much off topic? The only relation to scripting boils down to playing an animation from a script. The thread would be more at home in 'Animation tips'. Not to mention the heavy advertising ![]() So, in answer to Rune, no, it's not possible to do this with the standard viewer, but it's very possible to do it if you use the Restrained Life Viewer, or one of the alternative viewers that comes with RLV functionality you can turn on in preferences (Cool Viewer, Gemini or Emerald, for example). In that case, if you look at the "shared folders" section in the Restrained Life API, you will find it's not too difficult to script something you can use to change clothes, skins, bodies and so on, all together, by simply selecting an outfit from a menu list. And this outfit could include attachments like a custom AO to play the appropriate anims if required. |
Rygel Ryba
Registered User
Join date: 12 Feb 2008
Posts: 254
|
08-04-2009 06:11
Sorry. I didn't mean to take it off track. I did get a bit off and long winded though. The main point of my post was that a) It is possible b) It has been done and c) There is a dev kit and plenty of plugin tools available so that with your own scripting or with no scripting skills at all, you can make use of the system and custom tailor it to your own needs.
(In regards to the AO comment above - I didn't mention it, but the LBOM base system has an AO in the hud - and if you have an AO notecard with the same name as the outfit you change into - it will load that AO automatically - so you don't even need an extra attachment). |
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
08-04-2009 08:08
Dear Winter Ventura... offer solutions, not problems. No reason to be insulting, Erluen. _____________________
So many monkeys, so little Shakespeare.
|
Void Singer
Int vSelf = Sing(void);
![]() Join date: 24 Sep 2005
Posts: 6,973
|
08-04-2009 12:53
am I the only one that noticed it's a year out of date? there are way to address this via RLV now.
_____________________
|
| . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - |
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
08-04-2009 12:59
Thread Necromancy.... EBIL!
|
Briana Dawson
Attach to Mouth
![]() Join date: 23 Sep 2003
Posts: 5,855
|
08-04-2009 14:50
am I the only one that noticed it's a year out of date? there are way to address this via RLV now. Yea i did notice this was a year old thread. Necro FTW! _____________________
|