Houdini 20.0 Executing tasks with PDG/TOPs pdg

pdg.ActiveItemBlock class

Context manager for making a work item active for parm evaluation, in the current thread

This is a helper class/context manager used with the pdg.WorkItem.makeActive method. The method returns an instace of this context manager, which makes the specified work item the active item for parameter evaluation. The work item is only active for the thread that called the method. Any parameters evaluated using both PDG and HOM APIs for the duration of the block will use this work item when evaluating @ operator and pdgattribute functions.

For example:

with work_item.makeActive():
    val = hou.parm("/obj/geo1/tx").eval()

pdg

attributes

cooking

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