Enveloping Bones... [Solved]
Moderator: Moderators
-
- 2nd Lieutenant
- Posts: 405
- Joined: Fri Jan 25, 2008 3:11 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Location Location.
Enveloping Bones... [Solved]
OK I've made my playermodel and stuff. I've used Vyse's tut on how to get playermodels into SWBF2. What I dont get is how to envelope the bones. I've switched to XSI defualt mode but I can't select all the bones at once. Is there a way to change the select options so i can do this. Also, does it matter that some bones aren't inside my mesh because my model isn't quite the right shape.
- AceMastermind
- Gametoast Staff
- Posts: 3284
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Enveloping Bones...
The fastest way I found to select all the bones is by branch selecting (middle clicking) bone_root in the explorer then pressing the H key twice to unhide all of them. Then type:
This selects all objects in the scene that have "bone" in their name.
Deselect bone_root by holding ctrl and left clicking on it (in explorer),
Press ctrl+g to create a group from the remaining selected bones and just name it "bones" or whatever you want.
Now after you select the mesh and go Deform>Envelope>Set Envelope, you can just select the "bones" group in the explorer that you created then right click to end the pick session. Now you can begin your weight editing.
- bone*
This selects all objects in the scene that have "bone" in their name.
Deselect bone_root by holding ctrl and left clicking on it (in explorer),
Press ctrl+g to create a group from the remaining selected bones and just name it "bones" or whatever you want.
Now after you select the mesh and go Deform>Envelope>Set Envelope, you can just select the "bones" group in the explorer that you created then right click to end the pick session. Now you can begin your weight editing.
-
- 2008 Most Original Avatar
- Posts: 3096
- Joined: Sun Aug 20, 2006 5:55 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: X-Fire: caleb1117 ಠ_ಠ
Re: Enveloping Bones...
You don't have to select them all at once, just hold shift, and keep left clicking till you get all the bones, the right click to the side and it will use the bones selected.
-
- 2nd Lieutenant
- Posts: 405
- Joined: Fri Jan 25, 2008 3:11 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Location Location.
Re: Enveloping Bones...
Wow thanks guys! Carrotman is finished at last! Ill get some ingame pcis soon!
- AceMastermind
- Gametoast Staff
- Posts: 3284
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Enveloping Bones...
This vbs or py script automates these actions:
Instructions
1. Import Unit_Template_Beta into your scene
2. Copy (ctrl+c) the code and paste (ctrl+v) it in the white part of XSI's Script Editor (alt+4)
3. Run the script (press F5 or click the Run button next to the question mark)
NOTES:
Replace the null named:
REPLACE_ME_WITH_YOUR_MESH
with your custom character geometry.
To do this:
In an Explorer window (8 key) simply drag n drop your character geometry name onto "Dummyroot",
then select "bone_root" and drag n drop it on your character geometry name,
next delete the null named- REPLACE_ME_WITH_YOUR_MESH
this puts the hierarchy back in order.
Rename your custom geometry to override_texture so you can restore that feature for use ingame.
What is the Bones_for_Envelope group for?
This group contains all the bones you need for the envelope,
when you're ready to set the envelope, go to:
Animate>Deform>Envelope>Set Envelope
you enter a pick session, just click on the group and you're done,
right click to end the pick session and start editing your weights.
This script only works with Unit_Template_Beta from psych0fred.
Feel free to edit out parts of the script that you don't want or need.
Enjoy!
Auto_Bone_Select_and_Setup.vbs
Auto_Bone_Select_and_Setup.py
- selects the bones
- unhides the hand bones
- hides the roots, effectors, dummyroot, Groundummy, hp_weapons, bone_root, and sv_jettrooper
- Creates a group named- Bones_for_Envelope
- Cuts and deletes override_texture from the hierarchy
- Creates and places a null in the hierarchy named- REPLACE_ME_WITH_YOUR_MESH
Instructions
1. Import Unit_Template_Beta into your scene
2. Copy (ctrl+c) the code and paste (ctrl+v) it in the white part of XSI's Script Editor (alt+4)
3. Run the script (press F5 or click the Run button next to the question mark)
NOTES:
Replace the null named:
REPLACE_ME_WITH_YOUR_MESH
with your custom character geometry.
To do this:
In an Explorer window (8 key) simply drag n drop your character geometry name onto "Dummyroot",
then select "bone_root" and drag n drop it on your character geometry name,
next delete the null named- REPLACE_ME_WITH_YOUR_MESH
this puts the hierarchy back in order.
Rename your custom geometry to override_texture so you can restore that feature for use ingame.
What is the Bones_for_Envelope group for?
This group contains all the bones you need for the envelope,
when you're ready to set the envelope, go to:
Animate>Deform>Envelope>Set Envelope
you enter a pick session, just click on the group and you're done,
right click to end the pick session and start editing your weights.
This script only works with Unit_Template_Beta from psych0fred.
Feel free to edit out parts of the script that you don't want or need.
Enjoy!
Auto_Bone_Select_and_Setup.vbs
Hidden/Spoiler:
Auto_Bone_Select_and_Setup.py
Hidden/Spoiler:
-
- 2nd Lieutenant
- Posts: 405
- Joined: Fri Jan 25, 2008 3:11 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Location Location.
Re: Enveloping Bones...
Wow Ace thats awesome! You should put a another topic up for that, because its amazingly helpful!