$weightlist: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
$weightlist (name) (bone name) (weight) [[(bone name) (weight)] ...]
{{stub}}
* This creates a named list of boneweights that can be used by animations that are intended to be blended on top of other animations.  
The [[QC command]] [[$weightlist]] creates a named list of boneweights that can be used by animations that are intended to be blended on top of other animations.  
* The weightlist is built assuming that the root bone has a weight of 0, and that all child bones inherit the weight of their closest specified parent bone. This means that you only have to specify weights when they change, not for each and every bone in the list.  
* The weightlist is built assuming that the root bone has a weight of 0, and that all child bones inherit the weight of their closest specified parent bone. This means that you only have to specify weights when they change, not for each and every bone in the list.  
==Syntax==
$weightlist <weightlist_name> "<bone_1_name>" <bone_1_weight> "<bone_2_name>" <bone_2_weight> 
where
;<weightlist_name>
: {{todo| confirm: name of the weightlist?}}
;<bone_1_name>
: is the name of the bone whose weight you wish to change.
;<bone_1_weight>
: is the weighting attributed to the specified bone and all its children.
==Example==
{{todo| would be very helfpful}}




[[Category:QC Commands]]
[[Category:QC Commands]]

Revision as of 07:00, 31 March 2008

Stub

This article or section is a stub. You can help by expanding it.

The QC command $weightlist creates a named list of boneweights that can be used by animations that are intended to be blended on top of other animations.

  • The weightlist is built assuming that the root bone has a weight of 0, and that all child bones inherit the weight of their closest specified parent bone. This means that you only have to specify weights when they change, not for each and every bone in the list.

Syntax

$weightlist <weightlist_name> "<bone_1_name>" <bone_1_weight> "<bone_2_name>" <bone_2_weight>  

where

<weightlist_name>
Todo:  confirm: name of the weightlist?
<bone_1_name>
is the name of the bone whose weight you wish to change.
<bone_1_weight>
is the weighting attributed to the specified bone and all its children.

Example

Todo:  would be very helfpful