Molang Animation Functions: Difference between revisions
(Added Molang Animation Functions) |
m (Fixed formatting) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 13: | Line 13: | ||
|<syntaxhighlight lang="kotlin">I don't know what is an example</syntaxhighlight> | |<syntaxhighlight lang="kotlin">I don't know what is an example</syntaxhighlight> | ||
|- | |- | ||
|<syntaxhighlight lang="kotlin">bedrock(group: String, animation: String): ObjectValue<BedrockPoseAnimation> | |<syntaxhighlight lang="kotlin">bedrock(group: String, animation: String): ObjectValue<BedrockPoseAnimation></syntaxhighlight> | ||
|Creates a new <code>BedrockPoseAnimation</code> using the <code>group</code> and <code>animation</code>. Returns an <code>ObjectValue<BedrockActiveAnimation></code> of the newly created <code>BedrockActiveAnimation</code>. | |Creates a new <code>BedrockPoseAnimation</code> using the <code>group</code> and <code>animation</code>. Returns an <code>ObjectValue<BedrockActiveAnimation></code> of the newly created <code>BedrockActiveAnimation</code>. | ||
|<syntaxhighlight lang="kotlin">I don't know what is an example</syntaxhighlight> | |<syntaxhighlight lang="kotlin"> | ||
I don't know what is an example | |||
</syntaxhighlight> | |||
|- | |- | ||
|<syntaxhighlight lang="kotlin">look(boneName: String, pitchMultiplier: Double?, yawMulitplier: Double?, maxPitch: Double?, minPitch: Double?, maxYaw, Double?, minYaw: Double?): ObjectValue<SingleBoneLookAnimation></syntaxhighlight> | |<syntaxhighlight lang="kotlin">look(boneName: String, pitchMultiplier: Double?, yawMulitplier: Double?, maxPitch: Double?, minPitch: Double?, maxYaw, Double?, minYaw: Double?): ObjectValue<SingleBoneLookAnimation></syntaxhighlight> | ||
|Creates a new <code>SingleBoneLookAnimation</code> using the <code>boneName</code> and other options. Returns an <code>ObjectValue<SingleBoneLookAnimation></code> of the newly created <code>SingleBoneLookAnimation<code>. The default values are in order here: <code>1.0, 1.0, 70.0, -45.0, 45.0, -45.0</code>. | |Creates a new <code>SingleBoneLookAnimation</code> using the <code>boneName</code> and other options. Returns an <code>ObjectValue<SingleBoneLookAnimation></code> of the newly created <code>SingleBoneLookAnimation</code>. The default values are in order here: <code>1.0, 1.0, 70.0, -45.0, 45.0, -45.0</code>. | ||
|<syntaxhighlight lang="kotlin">v.model.look('head')</syntaxhighlight> | |<syntaxhighlight lang="kotlin">v.model.look('head')</syntaxhighlight> | ||
|- | |- | ||
|<syntaxhighlight lang="kotlin">quadruped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftFrontLeftName: String?, leftFrontRightName: String?, leftBackLeftName: String?. leftBackRightName: String?): ObjectValue<QuadrupedWalkAnimation></syntaxhighlight> | |<syntaxhighlight lang="kotlin">quadruped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftFrontLeftName: String?, leftFrontRightName: String?, leftBackLeftName: String?. leftBackRightName: String?): ObjectValue<QuadrupedWalkAnimation></syntaxhighlight> | ||
|Creates a new <code>QuadrupedWalkAnimation</code> using the options. Returns an <code>ObjectValue<QuadrupedWalkAnimation></code> of the newly created <code>QuadrupedWalkAnimation<code>. The default values are in order here: <code>0.6662, 1.4, 'leg_front_left', leg_front_right', 'leg_back_left', 'leg_back_right'</code>. | |Creates a new <code>QuadrupedWalkAnimation</code> using the options. Returns an <code>ObjectValue<QuadrupedWalkAnimation></code> of the newly created <code>QuadrupedWalkAnimation</code>. The default values are in order here: <code>0.6662, 1.4, 'leg_front_left', leg_front_right', 'leg_back_left', 'leg_back_right'</code>. | ||
|<syntaxhighlight lang="kotlin">v.model.quadruped_walk()</syntaxhighlight> | |<syntaxhighlight lang="kotlin">v.model.quadruped_walk()</syntaxhighlight> | ||
|- | |- | ||
|<syntaxhighlight lang="kotlin">biped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftLegName?: String, rightLegName: String?): ObjectValue<BipedWalkAnimation></syntaxhighlight> | |<syntaxhighlight lang="kotlin">biped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftLegName?: String, rightLegName: String?): ObjectValue<BipedWalkAnimation></syntaxhighlight> | ||
|Creates a new <code>BipedWalkAnimation</code> using the options. Returns an <code>ObjectValue<BipedWalkAnimation></code> of the newly created <code>BipedWalkAnimation<code>. The default values are in order here: <code>0.6662, 1.4, 'leg_left', 'leg_right'</code>. | |Creates a new <code>BipedWalkAnimation</code> using the options. Returns an <code>ObjectValue<BipedWalkAnimation></code> of the newly created <code>BipedWalkAnimation</code>. The default values are in order here: <code>0.6662, 1.4, 'leg_left', 'leg_right'</code>. | ||
|<syntaxhighlight lang="kotlin">v.model.biped_walk()</syntaxhighlight> | |<syntaxhighlight lang="kotlin">v.model.biped_walk()</syntaxhighlight> | ||
|- | |- | ||
|<syntaxhighlight lang="kotlin">bimanual_swing(periodMultiplier: Double?, amplitudeMultiplier: Double? leftArmName: String?, rightArmName String?): ObjectValue<BimanualSwingAnimation></syntaxhighlight> | |<syntaxhighlight lang="kotlin">bimanual_swing(periodMultiplier: Double?, amplitudeMultiplier: Double? leftArmName: String?, rightArmName String?): ObjectValue<BimanualSwingAnimation></syntaxhighlight> | ||
|Creates a new <code>BimanualSwingAnimation</code> using the options. Returns an <code>ObjectValue<BimanualSwingAnimation></code> of the newly created <code>BimanualSwingAnimation<code>. The default values are in order here: <code>0.6662, 1.0, 'arm_left', 'arm_right'</code>. | |Creates a new <code>BimanualSwingAnimation</code> using the options. Returns an <code>ObjectValue<BimanualSwingAnimation></code> of the newly created <code>BimanualSwingAnimation</code>. The default values are in order here: <code>0.6662, 1.0, 'arm_left', 'arm_right'</code>. | ||
|<syntaxhighlight lang="kotlin">v.model.bimanual_swing()</syntaxhighlight> | |<syntaxhighlight lang="kotlin">v.model.bimanual_swing()</syntaxhighlight> | ||
|- | |- | ||
|<syntaxhighlight lang="kotlin">sine_wing_flap(amplitude: Double?, period: Double?, verticalShift: Double?, axis: String?, wingLeft: String?, wingRight: String?): ObjectValue<WingFlapIdleAnimation></syntaxhighlight> | |<syntaxhighlight lang="kotlin">sine_wing_flap(amplitude: Double?, period: Double?, verticalShift: Double?, axis: String?, wingLeft: String?, wingRight: String?): ObjectValue<WingFlapIdleAnimation></syntaxhighlight> | ||
|Creates a new <code>WingFlapIdleAnimation</code> using the options. Returns an <code>ObjectValue<WingFlapIdleAnimation></code> of the newly created <code>WingFlapIdleAnimation<code>. The default values are in order here: <code>0.9, 0.9, 0.0, 'y', 'wing_left', 'wing_right'</code>. The <code>axis</code> can either be 'x', 'y', or 'z'. | |Creates a new <code>WingFlapIdleAnimation</code> using the options. Returns an <code>ObjectValue<WingFlapIdleAnimation></code> of the newly created <code>WingFlapIdleAnimation</code>. The default values are in order here: <code>0.9, 0.9, 0.0, 'y', 'wing_left', 'wing_right'</code>. The <code>axis</code> can either be 'x', 'y', or 'z'. | ||
|<syntaxhighlight lang="kotlin">v.model.sine_wing_flap()</syntaxhighlight> | |<syntaxhighlight lang="kotlin">v.model.sine_wing_flap()</syntaxhighlight> | ||
|- | |- | ||
|<syntaxhighlight lang="kotlin">bedrock_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?): ObjectValue<SimpleQuirk></syntaxhighlight> | |<syntaxhighlight lang="kotlin">bedrock_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?): ObjectValue<SimpleQuirk></syntaxhighlight> | ||
|Creates a new <code>SimpleQuirk</code> using the <code>animationGroup</code>, <code>animationNames</code> and the other options. <code>animationNames</code> can either be an <code>ArrayStruct<String></code> or a single String. Returns an <code>ObjectValue<SimpleQuirk></code> of the newly created <code>SimpleQuirk<code>. The default values are in order here: <code>8.0, 30.0, 1</code>. | |Creates a new <code>SimpleQuirk</code> using the <code>animationGroup</code>, <code>animationNames</code> and the other options. <code>animationNames</code> can either be an <code>ArrayStruct<String></code> or a single String. Returns an <code>ObjectValue<SimpleQuirk></code> of the newly created <code>SimpleQuirk</code>. The default values are in order here: <code>8.0, 30.0, 1</code>. | ||
|<syntaxhighlight lang="kotlin">I don't know what is an example</syntaxhighlight> | |<syntaxhighlight lang="kotlin">I don't know what is an example</syntaxhighlight> | ||
|- | |- | ||
| Line 46: | Line 48: | ||
|- | |- | ||
|<syntaxhighlight lang="kotlin">punch(headName: String?, bodyName: String?, leftArmName: String?, rightArmName: String?, swingRight? Boolean): ObjectValue<PunchAnimation></syntaxhighlight> | |<syntaxhighlight lang="kotlin">punch(headName: String?, bodyName: String?, leftArmName: String?, rightArmName: String?, swingRight? Boolean): ObjectValue<PunchAnimation></syntaxhighlight> | ||
|Creates a new <code>PunchAnimation</code> using the options. Returns an <code>ObjectValue<PunchAnimation></code> of the newly created <code>PunchAnimation<code>. The default values are in order here: <code>'head', 'body', 'arm_left', 'arm_right', true</code>. | |Creates a new <code>PunchAnimation</code> using the options. Returns an <code>ObjectValue<PunchAnimation></code> of the newly created <code>PunchAnimation</code>. The default values are in order here: <code>'head', 'body', 'arm_left', 'arm_right', true</code>. | ||
|<syntaxhighlight lang="kotlin">v.model.punch()</syntaxhighlight> | |<syntaxhighlight lang="kotlin">v.model.punch()</syntaxhighlight> | ||
|- | |- | ||
|<syntaxhighlight lang="kotlin">bedrock_primary_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?, options: MoValue...): ObjectValue<SimpleQuirk></syntaxhighlight> | |<syntaxhighlight lang="kotlin">bedrock_primary_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?, options: MoValue...): ObjectValue<SimpleQuirk></syntaxhighlight> | ||
|Creates a new <code>SimpleQuirk</code> using the <code>animationGroup</code>, <code>animationNames</code> and the other options. <code>animationNames</code> can either be an <code>ArrayStruct<String></code> or a single String. Returns an <code>ObjectValue<SimpleQuirk></code> of the newly created <code>SimpleQuirk<code>. The default values are in order here: <code>8.0, 30.0, 1</code>. The <code>options</code> can either be a <code>WaveFunction</code> (only the last one is used) or a String that represents a label to exclude. | |Creates a new <code>SimpleQuirk</code> using the <code>animationGroup</code>, <code>animationNames</code> and the other options. <code>animationNames</code> can either be an <code>ArrayStruct<String></code> or a single String. Returns an <code>ObjectValue<SimpleQuirk></code> of the newly created <code>SimpleQuirk</code>. The default values are in order here: <code>8.0, 30.0, 1</code>. The <code>options</code> can either be a <code>WaveFunction</code> (only the last one is used) or a String that represents a label to exclude. | ||
|<syntaxhighlight lang="kotlin">I don't know what is an example</syntaxhighlight> | |<syntaxhighlight lang="kotlin">I don't know what is an example</syntaxhighlight> | ||
|} | |} | ||
Latest revision as of 23:13, 19 April 2025
Type is QueryStruct<PoseableModel>.
exclude_labels(): ObjectValue<ExcludedLabels>
|
Returns an ObjectValue<ExcludedLabels> from a PoseableModel.
|
v.model.exclude_labels()
|
bedrock_primary(group: String, animation: String, options: MoValue...): ObjectValue<PrimaryAnimation>
|
Creates a new PrimaryAnimation using the group and animation. The options can either be ExcludedLabels, a WaveFunction (only the last one is used), or a String that represents a label to exclude. Returns an ObjectValue<PrimaryAnimation> of the newly created PrimaryAnimation.
|
I don't know what is an example
|
bedrock_stateful(group: String, animation: String, enduresPrimary: IDK WHAT THIS IS): ObjectValue<BedrockActiveAnimation>
|
Creates a new BedrockActiveAnimation using the group and animation. IDK WHAT EDURESPRIMARY IS. Returns an ObjectValue<BedrockActiveAnimation> of the newly created BedrockActiveAnimation.
|
I don't know what is an example
|
bedrock(group: String, animation: String): ObjectValue<BedrockPoseAnimation>
|
Creates a new BedrockPoseAnimation using the group and animation. Returns an ObjectValue<BedrockActiveAnimation> of the newly created BedrockActiveAnimation.
|
I don't know what is an example
|
look(boneName: String, pitchMultiplier: Double?, yawMulitplier: Double?, maxPitch: Double?, minPitch: Double?, maxYaw, Double?, minYaw: Double?): ObjectValue<SingleBoneLookAnimation>
|
Creates a new SingleBoneLookAnimation using the boneName and other options. Returns an ObjectValue<SingleBoneLookAnimation> of the newly created SingleBoneLookAnimation. The default values are in order here: 1.0, 1.0, 70.0, -45.0, 45.0, -45.0.
|
v.model.look('head')
|
quadruped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftFrontLeftName: String?, leftFrontRightName: String?, leftBackLeftName: String?. leftBackRightName: String?): ObjectValue<QuadrupedWalkAnimation>
|
Creates a new QuadrupedWalkAnimation using the options. Returns an ObjectValue<QuadrupedWalkAnimation> of the newly created QuadrupedWalkAnimation. The default values are in order here: 0.6662, 1.4, 'leg_front_left', leg_front_right', 'leg_back_left', 'leg_back_right'.
|
v.model.quadruped_walk()
|
biped_walk(periodMultiplier: Double?, amplitudeMultiplier: Double? leftLegName?: String, rightLegName: String?): ObjectValue<BipedWalkAnimation>
|
Creates a new BipedWalkAnimation using the options. Returns an ObjectValue<BipedWalkAnimation> of the newly created BipedWalkAnimation. The default values are in order here: 0.6662, 1.4, 'leg_left', 'leg_right'.
|
v.model.biped_walk()
|
bimanual_swing(periodMultiplier: Double?, amplitudeMultiplier: Double? leftArmName: String?, rightArmName String?): ObjectValue<BimanualSwingAnimation>
|
Creates a new BimanualSwingAnimation using the options. Returns an ObjectValue<BimanualSwingAnimation> of the newly created BimanualSwingAnimation. The default values are in order here: 0.6662, 1.0, 'arm_left', 'arm_right'.
|
v.model.bimanual_swing()
|
sine_wing_flap(amplitude: Double?, period: Double?, verticalShift: Double?, axis: String?, wingLeft: String?, wingRight: String?): ObjectValue<WingFlapIdleAnimation>
|
Creates a new WingFlapIdleAnimation using the options. Returns an ObjectValue<WingFlapIdleAnimation> of the newly created WingFlapIdleAnimation. The default values are in order here: 0.9, 0.9, 0.0, 'y', 'wing_left', 'wing_right'. The axis can either be 'x', 'y', or 'z'.
|
v.model.sine_wing_flap()
|
bedrock_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?): ObjectValue<SimpleQuirk>
|
Creates a new SimpleQuirk using the animationGroup, animationNames and the other options. animationNames can either be an ArrayStruct<String> or a single String. Returns an ObjectValue<SimpleQuirk> of the newly created SimpleQuirk. The default values are in order here: 8.0, 30.0, 1.
|
I don't know what is an example
|
primary_animation(activeAnimation: ObjectValue<ActiveAnimation>, options: MoValue...): MoValue
|
Creates a new PrimaryAnimation using the activeAnimation. The options can either be ExcludedLabels, a WaveFunction (only the last one is used), or a String that represents a label to exclude. Returns an ObjectValue<PrimaryAnimation> of the newly created PrimaryAnimation.
|
I don't know what is an example
|
punch(headName: String?, bodyName: String?, leftArmName: String?, rightArmName: String?, swingRight? Boolean): ObjectValue<PunchAnimation>
|
Creates a new PunchAnimation using the options. Returns an ObjectValue<PunchAnimation> of the newly created PunchAnimation. The default values are in order here: 'head', 'body', 'arm_left', 'arm_right', true.
|
v.model.punch()
|
bedrock_primary_quirk(animationGroup: String, animationNames: MoValue, minSeconds: Double?, maxSeconds: Double?, loopTimes: Int?, options: MoValue...): ObjectValue<SimpleQuirk>
|
Creates a new SimpleQuirk using the animationGroup, animationNames and the other options. animationNames can either be an ArrayStruct<String> or a single String. Returns an ObjectValue<SimpleQuirk> of the newly created SimpleQuirk. The default values are in order here: 8.0, 30.0, 1. The options can either be a WaveFunction (only the last one is used) or a String that represents a label to exclude.
|
I don't know what is an example
|