Note
This class is for internal use by Houdini and isn’t usually necessary for scripting Houdini or creating tools.
This object is returned by hou.vexContextForNodeTypeCategory() and hou.vexContextForShaderType(). You can get a list of all VEX context objects using hou.vexContexts().
Methods ¶
name()
→ str
Returns the name of this context as a string. For example, 'Sop'
or 'surface'
.
nodeTypeCategory()
→ hou.NodeTypeCategory
Returns the hou.NodeTypeCategory object associated with this VEX context.
>>> # Get a reference to a SOP node >>> n = hou.node("/obj/geo1/pointvop1") >>> # Get its type category (SOPs) >>> sops = n.type().category() >>> # Get the context associated with the SOPs category >>> ctx = hou.vexContextForNodeTypeCategory(sops) >>> # Get the node type category associated with the Sop context >>> ctx.nodeTypeCategory() <hou.NodeTypeCategory for Sop>
pathsToLoadedVexFunctions()
→ dict
mapping names to paths
shaderType()
→ hou.shaderType enum value or None
Returns a hou.shaderType value representing the shader type associated with this VEX context.