$poseparameter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Syntax update)
No edit summary
Line 1: Line 1:
These are the same as "blend" parameters normally specified in [[$sequence]], except that you can now explicitly declare their range instead of letting studiomdl try to figure it out. If <code>"loop"</code> is specified, the engine will wrap calculate values.
'''<code>$poseparameter</code>''' is a QC command that allows configuration of a [[blend sequence]]. {{confirm|It appears to be obsolete now that poses can be specified from within the [[$sequence]] itself.}}


* <code>loop (range)</code> specifies that the inputs wrap at a specified value.
== Syntax ==
* <code>wrap</code> specifies that values less than <code>(min)</code> wrap around to <code>(max)</code>, and so on.


== Syntax ==
$poseparameter <[[$sequence]] name> <[[int]] min> <int max> [loop <int>] [wrap]
 
$poseparameter yaw -90 90 loop 360
$poseparameter vehicle_wheel_fl_spin -180 180 360


$poseparameter (name) (min) (max) ["loop" (number)] ["wrap"]
; <code>loop <int></code>
: Defines a custom value to wrap at? {{todo|Purpose of this.}} {{tip|If a third number is specified without loop being present, studiomdl will add the loop argument implicitly.}}
; <code>wrap</code>
: Values less than <code>min</code> wrap around to <code>max</code>, and so on.


If a number is specified without loop being present, studiomdl will add the loop argument implicitly.
== See also ==
== Example ==


$poseparameter yaw -90 90 loop 360
* [[Blend sequence]]
$poseparameter vehicle_wheel_fl_spin -180.00 180.00 360.00


[[Category:QC Commands|poseparameter]]__NOTOC__
[[Category:QC Commands|poseparameter]]__NOTOC__

Revision as of 09:18, 1 February 2010

$poseparameter is a QC command that allows configuration of a blend sequence.

Confirm:It appears to be obsolete now that poses can be specified from within the $sequence itself.

Syntax

$poseparameter <$sequence name> <int min> <int max> [loop <int>] [wrap]
$poseparameter yaw -90 90 loop 360
$poseparameter vehicle_wheel_fl_spin -180 180 360
loop <int>
Defines a custom value to wrap at?
Todo: Purpose of this.
Tip.pngTip:If a third number is specified without loop being present, studiomdl will add the loop argument implicitly.
wrap
Values less than min wrap around to max, and so on.

See also