検索 - User list
Full Version: Metahuman's animated maps with Karma/Solaris
Root » Technical Discussion » Metahuman's animated maps with Karma/Solaris
ahassan
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
pandalay
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).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB