$continue: Difference between revisions
Jump to navigation
Jump to search
Warning:Keep in mind that you can only use it to point to a $sequence or $animation name. Otherwise StudioMDL will throw a EXCEPTION VIOLATION.
Warning:For sequence or animation macros composed of a single line or do not use braces, is a good pratice put double-backslash at line end to avoid a "Macro expand overflow".
mNo edit summary |
(add two more examples of a singlelined macros that can use $continue and explain that this QC Command works along $animation and $sequence) |
||
| Line 1: | Line 1: | ||
The '''$continue''' is a [[QC command]]. | The '''$continue''' is a [[QC command]]. | ||
Place this immediately after a [[$definemacro|macro]] to trick the parser in thinking that you're on the same | Place this immediately after a [[$definemacro|macro]] to trick the parser in thinking that you're on the same referenced [[$sequence|$sequence]] or [[$animation|$animation]]. | ||
{{warning|Keep in mind that you can only use it to point to a [[$sequence]] or [[$animation]] name. Otherwise StudioMDL will throw a EXCEPTION VIOLATION.}} | |||
{{warning|For [[$sequence|sequence]] or [[$animation|animation]] macros composed of a single line or do not use braces, is a good pratice put double-backslash at line end to avoid a "Macro expand overflow".}} | |||
== Syntax == | == Syntax == | ||
$continue < | $continue <sequencename> | ||
== | == Examples == | ||
$definemacro SpyMeleeGestureAttackIKRelease gesturename filename activityname \\ | $definemacro SpyMeleeGestureAttackIKRelease gesturename filename activityname \\ | ||
| Line 20: | Line 22: | ||
} \\ | } \\ | ||
$continue $gesturename$ | $continue $gesturename$ | ||
$definemacro SelfDeltaAnimation FileName \\ | |||
$animation a_$FileName$ $FileName$ subtract a_$FileName$ 0 \\ | |||
$sequence $FileName$ a_$FileName$ predelta \\ | |||
$continue a_$FileName$ \\ | |||
$definemacro SelfDeltaSequence FileName \\ | |||
$animation a_$FileName$ $FileName$ subtract a_$FileName$ 0 \\ | |||
$sequence $FileName$ a_$FileName$ predelta \\ | |||
$continue $FileName$ \\ | |||
[[Category:QC Commands|continue]]__NOTOC__ | [[Category:QC Commands|continue]]__NOTOC__ | ||
Revision as of 10:38, 23 February 2022
The $continue is a QC command. Place this immediately after a macro to trick the parser in thinking that you're on the same referenced $sequence or $animation.
Syntax
$continue <sequencename>
Examples
$definemacro SpyMeleeGestureAttackIKRelease gesturename filename activityname \\
$sequence $gesturename$ { \\
$filename$ \\
weightlist SpymeleeRightArmBlend \\
subtract $gesturename$ 0 \\
delta \\
ikrule lhand release \\
ikrule rhand release \\
iklock rfoot 1 0 iklock lfoot 1 0 \\
activity $activityname$ 1 \\
} \\
$continue $gesturename$
$definemacro SelfDeltaAnimation FileName \\ $animation a_$FileName$ $FileName$ subtract a_$FileName$ 0 \\ $sequence $FileName$ a_$FileName$ predelta \\ $continue a_$FileName$ \\
$definemacro SelfDeltaSequence FileName \\ $animation a_$FileName$ $FileName$ subtract a_$FileName$ 0 \\ $sequence $FileName$ a_$FileName$ predelta \\ $continue $FileName$ \\