Offline Activation via Python

Here’s a way you can activate Ragdoll offline, without using the GUI. Useful for automated activation or when the UI is playing tricks on you.


import os
serial = "YOUR-SERIAL-HERE"
request = os.path.expanduser("~/activationRequest.xml")
response = os.path.expanduser("~/activationResponse.xml")

from ragdoll import licence
licence.activation_request_to_file(serial, request)

print("--- Copy from below:")
with open(request, "r") as f:
    print(f.read())
print("--- Copy until above")

This will print out a code you can copy and paste into https://ragdolldynamics.com/offline

It should look something like this:

<?xml version="1.0" encoding="utf-8"?>
<ActivationRequest><ablock data="QqS6cLh5NRhXR5zEBjtimdif..." id="7739"/></ActivationRequest>

The website will give you another code you can paste into your Maya script editor alongside this:

activation_response = """\
# PASTE INTO HERE
"""

with open(response, "w") as f:
    f.write(activation_response)

licence.activate_from_file(response)

It should look something like this:

activation_response = """\
<?xml version="1.0" encoding="utf-8"?>
<Response><activation data="VEYSDFISB96Sa..." exp="HgfnBw=="/></Response>
"""

Once you run it, your Script Editor should say Successfully activated Ragdoll! and that’s it!

See the API documentation for more options.

1 Like