Using HEU_Curve.RemoveCurvePoint() and updating curve

   3789   2   0
User Avatar
Member
1 posts
Joined: June 2022
Offline
Hello,

I'm pretty new to using the Houdini engine API but I'm looking to create something that can create points for a curve based on the movement of a transform in Unity.

My idea was to grab the HEU_Curve, clear the curve with HEU_Curve.ClearCurveNodeData() and set new data with HEU_Curve.AddCurvePointToEnd(curveData) but when I do a HEU_Curve.Recoook() or HEU_HoudiniAsset.RequestCook(true, false, true, true) no changes seem to have been made to the curve data?

Any help is greatly appreciated,
Pete
User Avatar
Member
1 posts
Joined: Sept. 2022
Offline
i have same problems,how to fix it.use C# scripts add curve point in Unity
User Avatar
Member
1 posts
Joined: Feb. 2023
Offline
Here is an example of how to use HEU_Curve.RemoveCurvePoint to remove the second point in a curve asset:
using UnityEngine;
using HoudiniEngineUnity;

public class RemoveCurvePointExample : MonoBehaviour
{
public HEU_Curve curveAsset;

void Start()
{
// Remove the second point in the curve
curveAsset.RemoveCurvePoint(1);
}
}
  • Quick Links