Houdini 20.5 Executing tasks with PDG/TOPs pdg

pdg.LockAttributesBlock class

Context manager for locking work item attributes, which makes them safe to modify outside of a node callback

This is a helper class/context manager used with the pdg.AttributeOwner.lockAttributes method. The method returns an instance of this context manager, which makes it safe to manipulate the work item’s attributes outside of a node callback method. Node and scheduler methods will already ensure that the work item is safe to access.

For example:

with work_item.lockAttributes():
    work_item.setIntAttrib("scheduler_jobid", 10)
    work_item.setStringAttrib("scheduler_type", "custom")

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