Houdini 19.0 Executing tasks with PDG/TOPs pdg

pdg package

The classes and functions in the Python pdg package for working with dependency graphs.

On this page

Package-level functions

The following top-level attribute functions are designed to be used in Python expressions. You can use pdg.workItem() to get the current work item object in a Python expression. The top-level function floatData(work_item, "foo", 0) is equivalent to work_item.floatAttribValue("foo", 0), which is equivalent to the HScript expression @foo.

Floats

Integers

Strings

Utilities

Expression functions

API

attributes

cooking

data

events

exceptions

  • pdg.AttribError

    Generic exception raised when an error occurs when accessing work item attributes

  • pdg.CookError

    Generic exception raised when an error running the graph.

  • pdg.ServiceError

    Generic exception raised when an error occurs during a PDG service manager operation

expressions

  • pdg.EvaluationContext

    A module with global functions that operate on the thread-local evaluation context

internal

nodes

schedulers

services

types

workitems

pdg

attributes

cooking

data

events

exceptions

  • pdg.AttribError

    Generic exception raised when an error occurs when accessing work item attributes

  • pdg.CookError

    Generic exception raised when an error running the graph.

  • pdg.ServiceError

    Generic exception raised when an error occurs during a PDG service manager operation

expressions

  • pdg.EvaluationContext

    A module with global functions that operate on the thread-local evaluation context

internal

nodes

schedulers

services

types

workitems