HoudiniEngineForUnreal-v2 icon indicating copy to clipboard operation
HoudiniEngineForUnreal-v2 copied to clipboard

set unreal_uproperty_MY_VAR not work correctely on instance

Open dpotuznik opened this issue 4 years ago • 4 comments

Hi,

i use point to instanciate cubes with some unreal_uproperty and he instanciate correctely, but the parameter are not copied correctely it's all messed up.

here a small video of the issue hope it's help you to fix that. Video Youtube Bug

Have Nice Day, Best Regards Daniel

Here my VEX Code:

int nearp[] ;
string inst = "Blueprint'/Game/UDIMU/City/Blueprints/Block_Buildings_1.Block_Buildings_1'";
string instTmp;

int numPoint = npoints(0);
    
for (int i = 0; i < numPoint ; i++){
    nearp = nearpoints(0,point(0,"P", i),19);
    vector col = point(0,"Cd", i);

    int density = (len(nearp)*2) +5;

    int  blueprintID = floor( rand(i) * 4 ) + 1;

    instTmp = re_replace("_1", concat("_", itoa(blueprintID)), inst);
    
    setpointattrib(0,"unreal_uproperty_Floor",i,density,"set");
    setpointattrib(0,"unreal_uproperty_Seed",i,i,"set");
    setpointattrib(0,"unreal_uproperty_ColorGlowR",i,col.r,"set");
    setpointattrib(0,"unreal_uproperty_ColorGlowG",i,col.g,"set");
    setpointattrib(0,"unreal_uproperty_ColorGlowB",i,col.b,"set");
    
    setpointattrib(0,"unreal_instance",i,instTmp,"set");
}

dpotuznik avatar Oct 15 '20 14:10 dpotuznik

I believe unreal properties have to set on prim/detail level, at least that's how mines working

goatbarn avatar Oct 15 '20 22:10 goatbarn

Hi thank you for your quick response,

Maybe i doing something wrong. i use Attribute Instancers on point cloud to instanciate an Unreal blueprint and set this blueprint with unreal_uproperty.

Video Youtibe

Thank you for your help. Best Regards Daniel

dpotuznik avatar Oct 16 '20 04:10 dpotuznik

Salut,

Thanks for the detailed bug report and videos, you normally should be able to get point uproperty attributes to work the way you intend them to. Unfortunately, the plugin currently has a few bugs that caused the uproperty attributes to not be applied correctly on the proper instance.

I'll update here when the issue's fixed.

dpernuit avatar Nov 09 '20 19:11 dpernuit

Hey hey, guess this is still open in 2.0.2 ?! As I am experiencing it right now :(

JanLoehr avatar Jul 20 '21 16:07 JanLoehr