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
Using HEU_Curve.RemoveCurvePoint() and updating curve
3789 2 0- Steveo2022
- Member
- 1 posts
- Joined: June 2022
- Offline
- bigbangcpgo
- Member
- 1 posts
- Joined: Sept. 2022
- Offline
- expcarry
- 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);
}
}
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