Nimcbyte
(nrbtq)
October 31, 2021, 12:23pm
#1
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
Nimcbyte
(nrbtq)
November 1, 2021, 3:16pm
#3
Not like that, I mean something like moon animator.
NeoBuilds
(NeoBuilds)
November 1, 2021, 3:54pm
#4
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
Nimcbyte
(nrbtq)
November 1, 2021, 4:44pm
#6
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?
Nimcbyte
(nrbtq)
November 1, 2021, 4:45pm
#7
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
Nimcbyte
(nrbtq)
November 1, 2021, 9:26pm
#9
No? Then I would hire someone to do it?