Handle setting has no effect in python state?

   509   1   0
User Avatar
614 posts
Joined: Nov. 2013

I want to disable the translate and rotate mode of the xform handle. I use this code but has no effect.
The handle still has rotate and translate.
What's wrong with my code?

template.bindHandle( "xform", "Xform",settings='translate(0) rotate(0)')
Edited by jerry7 - June 26, 2023 01:00:37
User Avatar
392 posts
Joined: Feb. 2018
The "settings" argument let you configure the handle settings. Use the "handle_parms" argument instead to enable/disable the handle components.

The below enables the rotation Y parm and disable all other parms.

template.bindHandle( "circle", "Twist", handle_parms=["ry"] )

For more details.
https://www.sidefx.com/docs/houdini19.5/hom/hou/ViewerStateTemplate.html#bindHandle [www.sidefx.com]
  • Quick Links