Артем Котенко

alizarin

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

How to start session sync by Python? March 27, 2023, 11:33 a.m.

Hi. Have the same problem.
I tried to use hou.startHoudiniEngineDebugger("hapi"). And it works fine, until you try to work with packed geometry. When doing some unpack/convert it returns no data. Did some extra tests and it's seems to be a problem with cooking time.


calving, maybe you have some solution for this?

Unreal per instance custom data not working ( 5.0 ) Jan. 14, 2023, 5:24 a.m.

Hi, guys!

I try to use unreal per instance custom data attribute to transfer some values from HDA to unreal materials.
Actually HDA just create simple instances on points.
And here is my basic code.

i@id = @ptnum;
@pscale = 1;

v@up = {0,1,0};
v@N = {0,0,1};

s@unreal_output_name    = "geo_" + itoa( i@id );
s@unreal_instance       = chs("ue_inst");
s@unreal_material       = chs("ue_mat");


i@unreal_num_custom_floats = 3;
f@unreal_per_instance_custom_data0 = float ( i@id ) ;
f@unreal_per_instance_custom_data1 = 2.0;
f@unreal_per_instance_custom_data2 =  rand( v@P.y);

With this values I wanna to adjust uv`s in unreal and read texture. Then send it to world offset.
But some how it's not working. And the most interesting that when I use "VERTEX ONTERPOLATOR" node in material and send result to base color everything is fine. Unfortunately there is no option to send data after "vertex interpolator" to world offset.

Thanks for any help.

Python parameter expression not re-cook node Oct. 7, 2020, 6:37 a.m.

Thanks for answer!
I test switch-if SOP, but the same result. Actually switch working fine with expression “npoints(opinputpath(”.“,1))>0”.
Problem is in object merge node - it's not re-cooking after updating path. I think there is some specific point in python parm expression executing.