Houdini 22.0 What’s new What’s new in Houdini 22

What’s new VEX, OpenCL, and HOM scripting

On this page

VEX

  • ocio_aliases returns the list of aliases for a given color space.

  • ocio_aliases returns the full name defined by the OCIO config for the given color space.

  • ocio_nanocolorname returns the Nanocolor name identifier of the given color space. Not all color spaces have a corresponding Nanocolor name, so this function may return an empty string.

  • vertexprimuv returns the intrinsic uv location of the vertex in the primitive.

  • volumetransform returns transform between various spaces connected to a volume.

  • minjerk samples position, velocity, and acceleration for a MinJerk curve.

  • random_shash hashes a string to an integer.

  • implicitsurface evaluates a compound implicit surface.

  • implicitsurfacebounds returns an SDF min/max interval over a sphere around a point.

  • implicitsurfacevel evaluates implicit surface SDF, normal, and surface velocity.

  • osd_limitcurvature computes principal curvature values and directions at a point attribute evaluated on the subdivision limit using Open Subdiv.

  • osd_limitnormal computes the normal to a point attribute evaluated at the subdivision limit using Open Subdiv.

  • osd_limitvertex evaluates a vertex attribute at the subdivision limit surface using Open Subdiv, and also evaluates all first and second partial derivatives with respect to the given attribute.

  • usd_bindmaterial binds a material to a given primitive.

  • osd_limitgradient computes the gradient to a scalar point attribute evaluated at the subdivision limit using Open Subdiv and maps the gradient into the tangent space of a given vector point attribute (typically P).

  • qexp computes the exponential of a quaternion.

  • qlog computes the natural logarithm of a quaternion.

  • qpow raises the quaternion to the power of the exponent.

OpenCL

For more information about OpenCL in Houdini, please read the OpenCL for VEX users page. There you’ll also find the descriptions for the new functions listed here.

  • osd / noosd | Default noosd

  • @name.osd_facecount()

  • @name.osd_patchcount()

  • @name.osd_firstpatch(face)

  • @name.osd_patchcount_face(face)

  • @name.osd_lookuppatch(face, face_u, face_v, patch, patch_u, patch_v)

  • @name.osd_lookupface(patch, patch_u, patch_v, face, face_u, face_v)

  • @name.osd_limitsurface(patch, u, v)

  • @name.osd_limit(patch, u, v, du, dv)

  • @name.osd_limitnormal(patch, u, v)

  • Certain feature flags can add more helper methods to attribute bindings. In particular, the osd flag adds Open Subdiv queries that mirror the corresponding VEX osd_* functions, but operate on the currently bound attribute so they do not take a geometry or attribute name argument.

HOM

What’s new in Houdini 22