How would I go about making an animation plugin?

Hello, I want to make a animation plugin for games I plan to make in the future. I was wondering how would I make one. Sort of like moon animator. How would I go about making it? I don’t really want scripts, unless its a script I can learn from.

Any help is appreciated.

2 Likes

https://developer.roblox.com/en-us/api-reference/class/Plugin

This will require scripting.

Not like that, I mean something like moon animator.

Do you expect someone to create a plugin for you?

Use the class KeyframeSequence. This gives you access to Keyframes. The class that drives all animations.

For example, this code generates a KeyframeSequence that positions the LeftShoulder joint up 90*

local KeyframeSequence = Instance.new("KeyframeSequence")
local Keyframe = Instance.new("Keyframe")
local LeftShoulderPose = Instance.new("Pose")

LeftShoulderPose.Name = "LeftShoulder"
LeftShoulderPose.CFrame = CFrame.fromOrientation(0,0, math.rad(-90))

Keyframe:AddPose(LeftShoulderPose)
KeyframeSequence:AddKeyframe(Keyframe)

You should also look into DockWidgetPluginGuis as this allows you to make widgets in Roblox Studio.

If you actually want to view your animation in real time, feed your keyframe sequence into KeyframeSequenceProvider.RegisterActiveKeyframeSequence

Other APIs I’d recommend looking at are Selection and Handles,

1 Like

Oh, that is very cool. Indeed especially the dock widget thing. Thank you alot. Don’t mean to be too much of a problem but do you know how to add the pivot and move tool to it?

OH! my bad didnt notice the handles my bad!

Use the function plugin:GetSelectedRibbonTool to get the selected tool and adjust the handles dynamically.

1 Like

No? Then I would hire someone to do it?