$upaxis: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 
 Note:The command affects only animations & models below it.
Note:The command affects only animations & models below it. Tip:You can use this to incorporate animations from different sources, if necessary, by changing which axis is considered 'up' on the fly.
Tip:You can use this to incorporate animations from different sources, if necessary, by changing which axis is considered 'up' on the fly.
		
	
| mNo edit summary | No edit summary | ||
| (10 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
| {{LanguageBar}} | |||
| {{this is a|QC command|name=$upaxis}} It tells [[StudioMDL_(Source)|StudioMDL]] which axis should be considered 'up' in the model files below it. This is sometimes necessary because not every modeling package treats <code>Z</code> as the up axis, such as [[Maya]]. If unspecified, the up axis s <code>Z</code>. | |||
| {{note|The command affects only animations & models below it.{{tip|You can use this to incorporate animations from different sources, if necessary, by changing which axis is considered 'up' on the fly.}}}} | |||
| == | == Syntax == | ||
|   $upaxis Y |   $upaxis <X|-X|Y|-Y|Z|-Z> | ||
| [[Category: | == Exporters == | ||
| This command is mostly used by Valve for reorienting models created in Maya, which treats the Y axis as up unlike the game engine itself (and many other modeling packages), which use Z. | |||
| ;These exporters generally need $upaxis (Don't usually treat the Z axis as 'up'): | |||
| :[[Maya]] (Y) | |||
| ;These exporters generally don't need $upaxis (Already treat the Z axis as 'up'): | |||
| :[[Softimage Mod Tool|XSI]] | |||
| :[[3DS Max]] | |||
| :[[MilkShape 3D]] | |||
| :[[Blender]] | |||
| == See also == | |||
| * [[Modeling]] | |||
| [[Category:Maya]] | |||
Latest revision as of 17:58, 3 August 2025

 
$upaxis  is a   QC command  available in all  Source games. It tells StudioMDL which axis should be considered 'up' in the model files below it. This is sometimes necessary because not every modeling package treats
 Source games. It tells StudioMDL which axis should be considered 'up' in the model files below it. This is sometimes necessary because not every modeling package treats Z as the up axis, such as Maya. If unspecified, the up axis s Z.
 Note:The command affects only animations & models below it.
Note:The command affects only animations & models below it. Tip:You can use this to incorporate animations from different sources, if necessary, by changing which axis is considered 'up' on the fly.
Tip:You can use this to incorporate animations from different sources, if necessary, by changing which axis is considered 'up' on the fly.Syntax
$upaxis <X|-X|Y|-Y|Z|-Z>
Exporters
This command is mostly used by Valve for reorienting models created in Maya, which treats the Y axis as up unlike the game engine itself (and many other modeling packages), which use Z.
- These exporters generally need $upaxis (Don't usually treat the Z axis as 'up')
- Maya (Y)
- These exporters generally don't need $upaxis (Already treat the Z axis as 'up')
- XSI
- 3DS Max
- MilkShape 3D
- Blender
























