Garry's Mod

Garry's Mod

1,417 ratings
Ragdoll Puppeteer
7
3
7
10
2
6
4
2
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Movie
File Size
Posted
Updated
168.726 KB
Sep 19, 2024 @ 10:03am
Jan 12 @ 1:39pm
19 Change Notes ( view )

Subscribe to download
Ragdoll Puppeteer

Description
Need a tool to quickly set poses for you? Use the Ragdoll Puppeteer!

This addon adds a tool which allows you to set the pose of a ragdoll or prop to frame of any animation. You can find it under the Posing category.

Everything is done through the tool itself; to set the pose for the ragdoll/prop, simply left-click the ragdoll/prop with the tool, and a list of animations will show up for you to use. The tool supports sequences and Stop Motion Helper animations.

Use Cases
I made this tool as a companion tool for GMod animators who do keyframe animations; hopefully, this tool will accelerate your animation workflow. If you're interested, here are two ways on how you could use this tool:
  • "Bake" a sequence onto Stop Motion Helper (SMH) using +ragdollpuppeteer_playback and the SMH physics recorder. You can also use the Ragdoll Mover (RGM) or other posing tools to make a new animation from the existing one. For example, you can either use a premade running animation, or animate your own using SMH. With the animation, use SMH to outline a base trajectory for the ragdoll and use RGM to make adjustments to the pose on each frame.
  • Initially puppeteer a ragdoll to an animation frame, and then make additional adjustments using the RGM. For instance, you can first set the Heavy to his primary weapon sequence, and then adjust his hands to hold a different weapon. You can also use a pose saved from a SMH animation.
To add on the first point, if you have a walking animation that moves a character forward (root motion animations), you can automate the movement by simply playing the animation through ragdoll puppeteer, and setting the frames in SMH, and moving the puppeteer to update the origin of the walking animation. You can also animate the puppeteer's position using SMH, allowing you to quickly make walk sequences using the SMH Physics Recorder!


Console Commands and Variables
The list of commands here are not comprehensive. If you want to see all the commands, type "ragdollpuppeteer" in the console and view the options.
  • [ragdollpuppeteer_previousframe n] & ragdollpuppeteer_nextframe n: decrements (or increments) the ragdollpuppeteer_frame console variable by n frames, where n is a whole number (no decimal numbers). Updates the puppet's position.
  • [ragdollpuppeteer_animatenonphys]: This will move the ragdoll's nonphysical bones (fingers, toes), which is anything that doesn't have a physics collider. It has the same behavior as checking the 'Animate Nonphysical Bones' checkbox.
  • [ragdollpuppeteer_frame]: A console variable representing the ragdoll's frame. This is an alternate way to change the puppeteer's frame. The control panel needs to be open for the puppeteer to change frame.
  • [sv_ragdollpuppeteer_allow_playback]: If enabled, players can run "+ragdollpuppeteer_playback" at the cost of server stress due to the pose data.
  • [+ragdollpuppeteer_playback] & [-ragdollpuppeteer_playback]: Moves the frame slider automatically. Useful for utilities such as Stop Motion Helper's physics recorder tool. Enabled only if "sv_ragdollpuppeteer_allow_playback 1".
  • [ragdollpuppeteer_fps]: The framerate to play in if +ragdollpuppeteer_playback is called. Changing this during playback will also affect the playback framerate live.

Source Code[github.com]

Do you wish to translate this tool to your language[wiki.facepunch.com]? Click on the source code link above and send me a push request! View the English translations here[github.com]. For an example translation, view the French translations.[github.com]

Disclaimer
This tool has no competing conflicts of interest with Animated Props and similar tools in mind. I developed this tool with partial inspiration by the ragdollize feature in Animated Props and the Stand Poser. I hope that I inspire another improved version of this tool in Animated Props or some other tool.

It is recommended to run this tool in singleplayer. Multiplayer is supported, but expect bugs and server lag.

Feel free to use this addon in your artwork or videos without attribution, although I highly appreciate it if you do.
Popular Discussions View All (11)
47
Apr 29 @ 5:30pm
PINNED: Bug Reports
dim sum un
43
Dec 13, 2024 @ 4:12am
PINNED: Feature Requests
dim sum un
9
Oct 18, 2024 @ 5:33am
"Snap to the ground" checkbox request
Areus
186 Comments
dim sum un  [author] Apr 30 @ 6:09am 
Copy what the error says from the console, so I can help further troubleshoot this. I cannot help you if I don’t know what’s causing this
upn240 Apr 29 @ 5:27pm 
i got a problem with Ragdoll Puppeter. I Keep getting Lua Errors like This. (a number value)
NIE PAMIĘTAM Apr 4 @ 7:14am 
thank you for this mod. This is helpfull
dim sum un  [author] Feb 17 @ 4:00pm 
Hello all, I've recently finished up a prototype for a new retargeting feature for Ragdoll Puppeteer. Similar to Animated Props' remapping feature, this new feature will allow you to play sequence animations from any puppeteer's model onto the puppet of your choice, depending on if the tool has a way to convert between the puppeteer's skeleton to the puppet's. Sequence animations are supported for now; I may do retargeting for SMH animations at a later point

If you want to test this feature before release, visit the remapping branch [github.com] in the source code, click the green "Code <>", click Download Zip, and drop the folder from that zip into your addons folder. You may need to track this branch and redownload this file to get the latest updates and fixes
♥Mal0♥ Feb 15 @ 8:26pm 
THIS IS EXACTLY WHAT I NEEDED THANK YOU
jeves90 Feb 6 @ 5:10pm 
Nevermind! I figured it out! :)
jeves90 Feb 6 @ 5:02pm 
How do I equip this tool? I just installed it, and I really want to try it! Thank you for your help!!
Faithfulnate Jan 29 @ 11:55am 
I do not even know how to use it!:steamsad:
Faithfulnate Jan 29 @ 11:54am 
You need to fix the random pose option. Just saying. I will keep it deleted for now.:steamthumbsdown:
aidan.saris Jan 18 @ 2:19am 
this saved me hours of work on my dioramas