$upaxis: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(is possible use negative values and it works as expected. Tested with $upaxis -Y under a hl2 skeleton to compile a world model weapon that is skinned and have jigglebones. StudioMDL Versions: hl2, gmod, l4d2, sfm)
Line 2: Line 2:


{{note|The command must be called before any animations - preferably on the first line of the QC.}}
{{note|The command must be called before any animations - preferably on the first line of the QC.}}
{{note|Although not very interesting. If necessary, it is possible to use negative values, to indicate that the model should be rotated.}}


== Exporters ==
== Exporters ==
Line 14: Line 15:


== Usage ==
== Usage ==
  $upaxis [X|Y]
  $upaxis [X|-X|Y|-Y|Z|-Z]


[[Category:QC Commands|U]]
[[Category:QC Commands|U]]
[[Category:Maya]]
[[Category:Maya]]

Revision as of 10:26, 3 March 2022

The $upaxis QC command tells StudioMDL which axis in the SMD file should be considered 'up'. The default value is z.

Note.pngNote:The command must be called before any animations - preferably on the first line of the QC.
Note.pngNote:Although not very interesting. If necessary, it is possible to use negative values, to indicate that the model should be rotated.

Exporters

Need $upaxis
Maya
Do not need $upaxis
XSI
3DS Max
MilkShape
Blender

Usage

$upaxis [X|-X|Y|-Y|Z|-Z]