Houdini 21.0 Nodes VOP nodes

MtlX Geometry Property Value Uniform VOP node

Reads uniform, non-varying asset path and string primvars.

On this page
Since 21.0

Returns the value of the specified uniform geometric property of the currently-bound geometry. This node’s type must match that of the referenced geometry property.

The Filename signature corresponds to asset paths, while String refers to simple strings. Using regular strings as file paths is frought with peril, and can’t use search paths or relative paths. When using this node to read texture map paths from primvars, ensure they are asset paths.

Tips

  • These primvars must be constant interpolation (i.e. a single value per prim); in VOPs and MaterialX, “Uniform” is the equivalent concept. String primvars cannot vary across the surface of a prim, because interpolating these string values between points and faces isn’t possible, like it works for numbers and colors.

  • When inspecting USD files as ascii, either on disk, or using a GUI tool like Scene Graph Details, Scene Graph Layers, or usdview, asset paths are wrapped in @@(i.e. an unresolved path looks like @./foo/bar.exr@).

  • Edit Properties and Edit Material Properties can author Asset Paths easily.

  • SOP Import has the Asset Path Attributes parameter, to import SOP string attributes as asset paths.

  • To author asset path primvars in VEX, use the Bindings tab of the Attribute Wrangle LOP to set the type to asset.

Parameters

Geomprop

Name of the File or String

Default

A value to return if the specified geometry property is not defined on the current geometry.

Outputs

out

Filename or Uniform String

VOP nodes