Houdini 20.5 Executing tasks with PDG/TOPs pdg

pdg.cookType module

The enumeration of possible cook modes

This enum contains the possible cook types that can be passed to the pdg.GraphContext.cook method in order to cook a PDG graph.

Values

pdg.cookType.Full

Performs a full cook of all nodes in the graph.

pdg.cookType.GenerateFull

Generates static items for all nodes in the graph. No work items are cooked, which means that dynamic nodes will not generate any work items.

pdg.cookType.GenerateNode

Generates the graph down to a particular node. If the specified node is dynamic, then work items in upstream nodes will cook as needed in order to generate the dynamic node.

pdg.cookType.GenerateStatic

Generates the graph down to a particular node. No work items are cooked, so if the specified node is dynamic then it won’t generate any work items. Instead, the graph will generate until the nearest upstream static node.

pdg.cookType.Node

Cooks the graph for a particular node. Upstream work items will only cook if necessary.

pdg.cookType.StaticDepsFull

Does a static cook of the whole graph. This consists of doing a GenerateFull, and then calling the onScheduleStatic implementation of the user’s custom scheduler.

Note that this is a fairly obscure cook mode, and will not work out of the box with stock schedulers.

pdg.cookType.StaticDepsGen

Generates static items for all nodes in the graph. This is provided for backward compatibility, and is the same as using GenerateFull.

pdg.cookType.StaticDepsNode

The same as StaticDepsFull, but for a particular node.

pdg

attributes

cooking

customtypes

  • pdg.Dictionary

    Wraps a nested dictionary object in Python, used with Dictionary Array attributes

data

debugging

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