Skip to main content

A Python package to make the creation of Doodle actors easier!

Project description

adopt-a-doodle

A Python package to make the creation of Doodle actors easier!

Dependencies

adopt_a_doodle depends on Panda3D. If you have not installed it already, you can do so with the following command:

pip install Panda3D

Installing

To install the latest version of adopt_a_doodle, open your favorite command terminal and use the following command:

pip install adopt_a_doodle

If for whatever reason you are unable to install adopt_a_doodle through pip, you can also install it through the latest source distribution released on GitHub. Download the tar.gz file and open your favorite command terminal. Navigate to wherever the file was downloaded and run the following command:

pip install [file]

Usage

With adopt_a_doodle, the creation of Doodle actors becomes much easier.
Like with any other Panda3D Toontown project, you must first extract the Phase Files. You can do so with the following command, with [x] being replaced by the id of the phase file:

multify.exe -xf phase_[x].mf

With adopt_a_doodle, you will need phase_4, phase_5, and phase_5.5. Once these files are extracted, drop them into the same directory you want to have your Python files in. Your directory should look similar to this:

| phase_4
| phase_5
| phase_5.5
| example_doodle.py

Next, go into phase_4/models and find TT_pets-mod.bam. This is the model file for doodles. Drop this file into your main working directory, which should now look like this:

| phase_4
| phase_5
| phase_5.5
| example_doodle.py
| TT_pets-mod.bam

Now that all the necessary files are here, you can open the Python file containing your scene and start to program! Here's an example scene:

from direct.directbase.DirectStart import base
import adopt_a_doodle

example_doodle = adopt_a_doodle.adopt(adopt_a_doodle.Doodle(
    color=(0.546875, 0.28125, 0.75, 1.0),
    eye_color=(0.242188, 0.742188, 0.515625, 1.0),
    pattern=adopt_a_doodle.Pattern(ears="phase_4/maps/BeanCatEar3Yellow.jpg",
        body="phase_4/maps/BeanbodyLepord2.jpg",
        legs="phase_4/maps/BeanFootYellow1.jpg",
        tail="phase_4/maps/BeanLongTailLepord.jpg"),
    animation=adopt_a_doodle.Animation(file="phase_5/models/char/TT_pets-speak.bam",
        anim_loop=True,
        loop_from=None,
        loop_to=None,
        loop_restart=None,
        pose=False,
        pose_frame=None),
    eyelashes=False,
    hair=None,
    ears="catEars",
    nose=None,
    tail="longTail"))
example_doodle.setPos(0,5,-1.2)
example_doodle.setH(180)
example_doodle.reparentTo(render)

base.run()

This code will produce the following doodle:

A purple doodle with Leopard spots, cat ears, and a long tail.

Documentation

You can find documentation for adopt_a_doodle in the rustydoodle lib.rs file.

License

Code in adopt_a_doodle is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adopt_a_doodle-0.0.3.tar.gz (138.6 kB view hashes)

Uploaded Source

Built Distributions

adopt_a_doodle-0.0.3-cp312-none-win_amd64.whl (145.1 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

adopt_a_doodle-0.0.3-cp312-none-win32.whl (140.3 kB view hashes)

Uploaded CPython 3.12 Windows x86

adopt_a_doodle-0.0.3-cp312-cp312-macosx_11_0_arm64.whl (207.4 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

adopt_a_doodle-0.0.3-cp312-cp312-macosx_10_12_x86_64.whl (215.0 kB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

adopt_a_doodle-0.0.3-cp311-none-win_amd64.whl (144.2 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

adopt_a_doodle-0.0.3-cp311-none-win32.whl (139.6 kB view hashes)

Uploaded CPython 3.11 Windows x86

adopt_a_doodle-0.0.3-cp311-cp311-manylinux_2_34_x86_64.whl (241.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

adopt_a_doodle-0.0.3-cp311-cp311-macosx_11_0_arm64.whl (207.2 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

adopt_a_doodle-0.0.3-cp311-cp311-macosx_10_12_x86_64.whl (215.2 kB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page