[Question] - Editing CurveNodeData with C#

   2795   2   0
User Avatar
Member
2 posts
Joined: 8月 2019
オフライン
Hi all,

I'm struggling with editing/setting the curve point of an instanced Houdini curve. I've tried querying the HEU_HoudiniAsset, cooking, and then trying to add CurveNodeData points. Unfortunately without any success, but I've also since realized that I can't add or set them manually within the inspector either. Is there a specific approach I need to follow to manipulating this data?

Cheers!

Erik
User Avatar
Member
2 posts
Joined: 8月 2019
オフライン
Bumping this question.
User Avatar
Member
100 posts
Joined: 12月 2020
オフライン
Regarding changing CurveNodeData using C#: You probably need to recook the asset after changing the data. This can be done using HEU_HoudiniAsset.RequestCook(). Also, this was made easier to do in the Houdini 19 Unity plugin API update, where you can just call HEU_Curve::SetCurvePoint().

As for the issue where you are unable to set them in the inspector. I noticed this and I'll file it is a bug. You can still "drag" the values in the inspector though.
Edited by anthonyt2 - 2021年11月2日 15:27:01
  • Quick Links