Custom Curve HDA

   2025   5   1
User Avatar
Member
681 posts
Joined: 11月 2013
オフライン
Hi,

I want to make a custom curve HDA that need edit/insert point in it as Curve SOP.
The “Curve Point Translator” handle can edit curve point. But this handle can't insert point.

I tested the “curve” viewer state.

viewer.setCurrentState('curve',False,hou.stateGenerateMode.Enter)
Saddly, can't enter in edit mode.
Traceback (most recent call last):
File “<console>”, line 1, in <module>
File “C:/PROGRA~1/SIDEEF~1/HOUDIN~1.359/houdini/python2.7libs\hou.py”, line 56949, in setCurrentState
return _hou.SceneViewer_setCurrentState(*args, **kwargs)
OperationFailed: The attempted operation failed.
Failed setting state named “curve”.

Anyone could give me some help?

Thanks!
User Avatar
スタッフ
452 posts
Joined: 2月 2018
オフライン
Please post your python state and a test scene so I can have a look.
User Avatar
Member
681 posts
Joined: 11月 2013
オフライン
mabelzile
Please post your python state and a test scene so I can have a look.
I have no custom python state. I just set ‘curve’ state for current HDA.
User Avatar
スタッフ
452 posts
Joined: 2月 2018
オフライン
In this case, Houdini expects your custom node to have the same name as the curve state.
User Avatar
Member
681 posts
Joined: 11月 2013
オフライン
mabelzile
In this case, Houdini expects your custom node to have the same name as the curve state.

This means the operation is impossable? My HDA can not have the same name as inner Curve sop because definition collision.
User Avatar
スタッフ
452 posts
Joined: 2月 2018
オフライン
jerry7
mabelzile
In this case, Houdini expects your custom node to have the same name as the curve state.

This means the operation is impossable? My HDA can not have the same name as inner Curve sop because definition collision.

If you can't rename your HDA to match the curve state name then a python state might be what you need.
  • Quick Links