Metahuman's animated maps with Karma/Solaris

   341   1   0
User Avatar
Member
7 posts
Joined: 7月 2005
オフライン
Hi Everyone,

I would like to ask for help with the new Metahuman for Houdini plugin/workflow.
I noticed the animated maps (after animated the head with it's sliders )are working only in the viewport , but not under Solaris/Karma.
When I use SOP create to build up Metahuman the datas are written to the primvars:material_override as one string, containing the params and their values.
Is there an easy way to connect(and tokenize)these values to their respective shader parameter (through Edit Properties node or something like that)to drive the shader with the animated maps? Now it is not renderable only the default maps are visible on the Metahuman heads.

Thanks in advance,

Ashraf
User Avatar
Member
3 posts
Joined: 12月 2013
オフライン
You can add attribute wrangle in solaris and set it path to point at animated material (head_shader_am).

string temp = usd_primvar(0, "/geo1/head_lod0_mesh", "material_override");

dict my_dict = py_loads(temp);

string d_ar[] = keys(my_dict);

foreach ( string name; d_ar) {
    float x = my_dict[name];
    string s = "inputs:" + name;
    usd_setattrib(0, @primpath, s, x);
               
    };

You will need to change path to your primitive path in the first line of code (path to metahuman head with stored usd primvar material_override).
  • Quick Links