Skip to main content

CozyBlanket's remote network control API implementation.

Project description

CozyBlanket Network Features

CozyBlanket remote network features allow controlling CozyBlanket from desktop DCCs, servers and pipeline tools for integration with existing software. This package provides a python implementation of the API.

Make sure you have Network Features enabled in CozyBlanket. Network Features are only available as part of Retopology Pack.

The CozyBlanketConnection class can be used to connect to a running instance of CozyBlanket. You can find all the available commands in the class definition, but here is a quick example of what can be done:

from cozyblanket import CozyBlanketConnection

# Connect to a running instance
CB = CozyBlanketConnection() # This can take an optional device_id argument if you want to connect to a specific device
CB.connect()

...

# Close the current document and clear the current scene, otherwise the current document will be overwirtten
CB.document_close()
CB.scene_clear()

...

# Push a new retopology target from an OBJ file
CB.target_push_obj("target.obj", "named_target")
CB.target_load("named_target")

...

# Save the currently open retopology mesh to an OBJ file
CB.editmesh_pull_obj("editmesh.obj")

...

# Add a remote action button to the device's UI
CB.remote_actions_add("Example Button", lambda: print("The user pressed the button!"))

# remote_actions_process() needs to be called periodically from your client app
while True:
    CB.remote_actions_process()

...

# Close any running connections
CB.diconnect()

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

cozyblanket-2.0.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cozyblanket-2.0.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file cozyblanket-2.0.1.tar.gz.

File metadata

  • Download URL: cozyblanket-2.0.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for cozyblanket-2.0.1.tar.gz
Algorithm Hash digest
SHA256 1209810a09c633298cd37acec7c1010789eca8a47e5f40ac633f10c405332bb4
MD5 ab29b4078cc1c2be0c54fe916dec05dd
BLAKE2b-256 e3e7ca97e0798c490ed49a676a9f35c4f348ccf103ec6c071d027b6ff974d8ae

See more details on using hashes here.

File details

Details for the file cozyblanket-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: cozyblanket-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for cozyblanket-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc076b9ccd51e03f84724fdc604862c4eaa09f0cd2907f59ee06012aad442c8a
MD5 626f3aae56cc8a6cdf1abc1100734c12
BLAKE2b-256 73c5674f6e8ecc8ab90f69590921233d0ce3becf7eea20e7d9d502236f4b4a31

See more details on using hashes here.

Supported by

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