sideeffects / HoudiniEngineForUnreal-v2

Houdini Engine Plugin for Unreal Engine 4 - Version 2
http://www.sidefx.com/unreal
Other
294 stars 75 forks source link

unreal_output_curve no effect #136

Open RyuMaster opened 3 years ago

RyuMaster commented 3 years ago

Can anyone confirm, the curves from Houdini to Unreal still works? I can't get it working no matter what, unreal_output_curve has no effects, and even simply having a curve hardcoded object will not appear as Spline Component.

I am using Unreal 4.26.2, latest plugin and Houdini versions

RyuMaster commented 3 years ago

Through several hacks I managed to make my splines appear, but maybe I am going totally wrong direction. First issue is, all curves are never translated into splines, as all marked as editable for some reason. So I had to do this:

FORCEINLINE
const bool IsEditableNode() 
{
    if (Type == EHoudiniOutputType::Curve)
    {
        return false;
    }

    return bIsEditableNode; 
};

Also, in this function, I had to change PRIMITIVE to HAPI_ATTROWNER_POINT

if (FHoudiniEngineUtils::HapiGetAttributeDataAsInteger( CurHGPO.GeoId, CurHGPO.PartId, HAPI_UNREAL_ATTRIB_OUTPUT_UNREAL_CURVE_CLOSED, ClosedAttriInfo, IntData, 1, HAPI_ATTROWNER_POINT)) { if (IntData.Num() > 0) bIsClosed = IntData[0] == 1; }

In documentation it says "ANY", so this is kinda suspicious too.

Renderrocks commented 2 years ago

I am having the same issue and i don't know how to fix it.