Matt Chaput

mchaput

About Me

Expertise
Not Specified
Location
Canada
Website

Connect

Recent Forum Posts

[Python] Control Parameters in Ramp UI Feb. 19, 2020, 4:01 p.m.

Ramps are implemented as multi-parms. If the base multiparm is named “ramp”, for each point, there is a parm named “ramp<n>pos” (the horizontal position along the ramp) and “ramp<n>value” (the vertical value at that point in the ramp).

To tell if a given parameter is part of a multiparm (ie, either the pos or value of a point in a ramp), use the .isMultiParmInstance()method of Parm or ParmTuple. You can get a reference to the parent multiparm with .parentMultiParm().

If you have a reference to the parent multiparm (“ramp”) you can use the .multiParmInstances()method to get a list of ramp1pos, ramp1value, ramp2pos, ramp2value, etc. objects.

Hope this helps

What license do I need to run Hython? Feb. 18, 2020, 12:42 p.m.

hython will check out the “smallest” license available on your machine… it checks for an Engine license, then a Core, then an FX license.

If you only want to read information (not save a HIP file or asset), you can even use hython with an Apprentice license.

You can use the HOUDINI_SCRIPT_LICENSE environment variable to explicitly specify which license is used when hou is imported. But the docs for that are crazy outdated so you might need to check with support how to use it.

Documenting HDA Feb. 13, 2020, 4:31 p.m.

Yep, I will backport it to 17.5 as well.