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


About Me

Not Specified
Not Specified


Recent Forum Posts

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.

Python parameter expression not re-cook node Oct. 6, 2020, 12:14 p.m.


I am trying to implement python expressin in Object Merge node in parm “objectpath1” to get geometry from connected nodes to parent geo. So as final result if you connect/disconnect first input of test node geometry should switch to another one. Actually script working fine and storke of parm updating if i connect or disconect ANIM node, but object merge node do not updating geometry while i turn on/off “Enable Merge” toggle on object merge node. It's seems node just not cooking properly.

Any suggestions how to solve this problem? Or maybe hscrip variant?

P.S. check test setup in hip uploaded