Houdini 20.0 Executing tasks with PDG/TOPs pdg

pdg.IgnoreAttributeWarningsBlock class

Context manager for suppressing warnings from invalid attribute accesses in parm expressions

This is a helper class/context manager used with the pdg.AttributeUtils.ignoreWarnings method. The method returns an instance of this context manager, which suppresses parm evaluation warnings caused by invalid @attrib accesses.

For example:

import hou
import pdg

with pdg.AttributeUtils.ignoreWarnings():
    parm = hou.parm("/obj/topnet1/genericgenerator1/itemcount")
    print(parm.evalAsInt())

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