Ragdoll July Challenge

Awesome

2 Likes

Looking forward to it!

4 Likes

Looking forward to trying this out to and hopefully create something fun :smiley:

4 Likes

Sounds fun! Might use this time to finally learn Ragdoll :laughing:

First need to get all this work out of the way. Looking forward to this!

4 Likes

We’ll be doing a livestream in 3 hours where Jason will cover the competition and I’ll walk through the new Locomotion feature.

It will be recorded, so if we don’t see you there today, we’ll see you there whenever you see this message. :blush:

5 Likes

Crab Rig :crab:

Here it is, the crab!

Previous Versions

Have a look at the livestream above along with these new videos below for how to use it effectively.


Overview

A very simple, FK-only rig (that can also be scaled!)

Reset

Reset all controllers to their default value by setting all translate and rotate values to 0.

X-Ray

Controls can be overlaid on-top of the mesh via the x-ray mode.

Simulation

Unhide the solver and show Plugin Shapes to see the simulation.

Record

Recording works as you’d expect, animation ends up on each individual FK control.

The havoc happening during the livestream was due to the new Closed Loop option in the Record dialog, so ensure to untick that when recording the crab. It doesn’t have any loops anyway.

Locomotion

Since the rig is FK-only, you can apply locomotion to pins instead.

  1. Select body
  2. Select each foot
  3. Ragdoll → Constrain → Pin
  4. Ragdoll → Assign Plan

A licence server and install instructions coming up next!

1 Like

Download and Licence

Here’s how to get started with your creation.


Step 1

Download and Install Ragdoll Dynamics, if you haven’t already.

image


Step 2

Copy/paste and run this script in your Script Editor, in a Python tab.

import os
from maya import cmds
from ragdoll import ui as rui, interactive as ri

text = """\
Start a new scene and activate Ragdoll Unlimited \
for the July July 2022 Competition?
"""

if rui.MessageBox("Activate Competition Licence", text):
    os.environ["RAGDOLL_FLOATING"] = "july.ragdolldynamics.com:8003"
    cmds.file(new=True, force=True)
    cmds.unloadPlugin("ragdoll")
    assert not cmds.pluginInfo("ragdoll", query=True, loaded=True), (
        "Had trouble reloading Ragdoll, try restarting "
        "Maya and running this script again"
    )
    cmds.loadPlugin("ragdoll")

    ri.welcome_user()
else:
    cmds.warning("Cancelled, nothing changed")

Your Maya will now have a fully loaded Ragdoll licence until you restart Maya.


Step 3

Start making something, and create your own thread in the new Competition category.

I’ve made a little example contribution to illustrate how to get started. :blush:

For any questions, feel free to post here or start a new thread under the Help Category.

Enjoy, and let’s go!

1 Like

when I enter the competition code, it says

“// Warning: Ragdoll: Could not get a lease, see console for details”
// ragdoll.on_floating() - Ragdoll is floating

a pop up opens saying “request lease” / “continue”

then when I press “request” it says in messages “failed to acquire a lease” and all my markers disappear

is there something I can do to fix that?
Thanks

Hm, is your machine connected to the internet? That is a requirement, as the licence server is online.

Hi all, hope all is going well with the competition so far! :partying_face:

We’ve updated the crab asset above with some minor tweaks. Use the same download link.

  1. Procedural texture for some extra flare
  2. Fixed scaling of one of the leg pieces
  3. Refined the constraints keeping legs attached to the body

3 Likes

Giving this thread some spotlight in case anyone else experiences the 100 frame limit even after running the above getting started script.

Pushing another update to the crab rig with 3 changes, see the same link above.

  1. Much stronger stiffness, at lower values
  2. More more effective Pin Constraint at tips, for e.g. Locomotion
  3. Less groups

For stiffness, check this out!

Super strong. These are stiffness values between 0.01 → 1.0. (No more values approaching 100,000 and beyond)

For pins, you should also find that values less than 100 to be a reasonable max for a very hard pin, as opposed to 100,000 and beyond).

Also rearranged the groups for a little less complexity; you can now edit all feet from a single group (as opposed to 1 group per foot, 8 in total).

image


Behind the Scenes

For your own reference, here are some notes on how these things were made possible.

In both feet and tips, it was a problem of mass. The tips are especially damning, as they are tiny tiny tiny. Ragdoll would treat these as any other part of the crab, and compute a mass relative its size. Because it is so small, it would get a very small mass.

You might wonder what mass has got to do with anything. We aren’t interested in them weighing down on the foot, and it doesn’t seem related to stiffness? :thinking: But! Such is life. Ragdoll is all about forces, and any force is relative the mass upon which it acts. Between the tip and the last joint of the crab foot is a force keeping them together, and when one of them is heavy and the other light, the more complicated it gets for Ragdoll to keep them together, hence values that reach into the thousands.

For the legs, I took a slightly different route. I didn’t want the feet to appear more heavy - especially not heavier than the body. So instead editing its mass, it now has a slightly edited Rotate Mass.

This attribute is mostly unexplored, so I’m curious what you think of this and whether you run into anything odd. Things to look out for is any strangeness in the rotation of any part of a leg. As if it’s resisting rotation, almost like Air Density on the solver.

2 Likes

Are there textures for the crab?

Hi Emi,

Just A ramp texture nothing custom. you’re welcome to texture or develop the crab further if you like.

J

1 Like

Linking some more issues to here in case they happen to someone else.

Just a heads up that next week is the final week of this challenge!

So far, we’ve got more prizes than submissions, so everyone who has participated is getting something. :blush: The only question is who gets the grand prize of Ragdoll Unlimited and the also-great prize of Ragdoll Complete.

You can find all current submissions here:

1 Like

new submission coming up this week ! finally had some time and head to come up with an idea !
stay tune !

3 Likes

Only a handful of days remaining (until Sunday!) :running_man:

On top of that, we’re having trouble with the licence server… Will keep you updated here. :alarm_clock:

really waiting license, can’t work without it

I wasn’t able to narrow down what happened, it’s end of day on my end so here’s an alternative that will last you until the end of the competition.

  • 4XGR-M4QV-6VPG-EZ94-Q26X-G8TX-QNTA

Here’s how to use it.

  1. Restart Maya
  2. Do not run the original script, here.
  3. Instead, load the plug-in the normal way, via the Plug-in Manager
  4. Click the item at the bottom of the Ragdoll menu
  5. Enter the serial above
  6. Activate

It will say “Trial Version”, but is fully unlimited. Let me know if there are any issues.

4 Likes