Search - User list
Full Version: A simple question of HAPI_SetParmIntValue arguments
Root » Houdini Engine API » A simple question of HAPI_SetParmIntValue arguments
VincentKK
Using this API, for instance, see the picture.
If I want to change the second value, the ‘index’ is 1 without doubt, but what is the ‘parm_name’? ‘Translate’ or ‘ty’ ?

When I load a hda file, I can get the parameter name ‘Translate’ from the ‘nameSH’ of the ‘HAPI_ParmInfo’ struct,
but how do I get the name of each index like ‘tx’, ‘ty’ ?
dpernuit
Hi,

Parameters ending with x/y/z/w are actually special case, as the last character can be ignored:
In your case, the param name is a actually “t”

Translate is the param's label
t is the param's name. It's a float tuple3 that can be split to tx ty tz

To modify the Y translation to 20:
HAPI_SetParmFloatValue(session, node_id, “t”, 1, 20.0f )

Cheers
VincentKK
dpernuit
20.0f
Cool, thank you!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB