Jump to content

Material Stylesheet Won't Override Principled Shader?


Recommended Posts

HI All,

 

I have a simple lava setup where the lava flows over some obstacles. This works fine.

I am using the default lava1 shader that was generated by the shelf tools.

I have created a new attribute on the points called my_emit_int and set it to the value of 1.0.

I have manually set the emitint for the lava1 shader to 0.0. Thus the grey matte look of the fluid.

I am using the following stylesheet code to override the exiting emitint with my_emit_int.

// Houdini 15 style for stylesheets.
{
    "styles":
    [
        {
            "target" : {"pointGroup" : "*"},
            "overrides" : {
                "materialParameters":{"emitint":{"script":{"binding":"my_emit_int"}}}
            }
        }
    ]
}

This stylesheet code produces no errors when rendering but it also does not work. my_emit_int attribute should take over the emitint value and set it to 1.0. This is not happening.

 

What is the syntax for the stylesheet that I should use to successfully override a material parameter with an attribute?

post-12295-0-43590700-1447342191_thumb.j

ap_lava_over_rocks.hipnc

Edited by Atom
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...