Skip to content

pushkarev-alexandr/PolyHavenNukeBrowser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poly Haven Nuke Browser

An asset manager for https://polyhaven.com/ An analogue of the Blender add-on https://github.com/Poly-Haven/polyhavenassets, but for Nuke

Uses the API:

Important:

  • All API requests must include a unique User-Agent header (e.g. your app name) so Poly Haven can track usage.

Requirements:

  • Load information about assets
  • Create asset cards with an image and caption using QListWidget and QListWidgetItem
  • Images load in parallel so the UI is interactive while images may still be loading
  • Images load using multithreading for speed
  • Cards can be dragged to drop into the Nuke interface
  • When a card is dropped, it is processed separately
  • Set the download size and format, and only then perform the download

Available endpoints:

Configuration requirements:

  • Ability to set the folder where downloaded asset previews are stored
  • Ability to set the folder where asset files are stored
  • A default path should be set within the plugin’s current folder

API usage

  • User-Agent requirement: The Poly Haven API requires a unique User-Agent header for all requests.
  • Default behavior: The library sends a default UA like "PolyHavenNukeBrowser/0.1 (Python/X.Y.Z; OS Version)".
  • Configure via env var: Set POLYHAVEN_USER_AGENT to override globally.
  • Configure in code:
from polyhaven.api import set_user_agent, get_types

set_user_agent("MyPolyHavenApp/1.0 (+https://example.com)")
types = get_types()  # ["hdris", "textures", "models"]

# or per-call override
types = get_types(user_agent="MyPolyHavenApp/1.0")

About

Poly Haven asset browser for Nuke

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages