Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using "Set Parameter" ROP in HtoA

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
fxnut
755 Views, 3 Replies

Using "Set Parameter" ROP in HtoA

Hi,

I'm trying to set the Kd_color attribute of an Alembic packed primitive by using the Set Parameter ROP.

Based on a reply I had here, I've set the following parameters:

Selection Parameter:

*.(@node == 'polymesh')

Assignment_1 Parameter:

Kd_color = [1 0 0]

I've assigned a standard material to a cube and saved it out as Alembic. I then bring it back in to be rendered as a packed primitive. To debug, I took a look at the Ass file:

set_parameter
{
 name /out/set_parameter1
 enable on
 selection "*.(@node == 'polymesh')"
 assignment "Kd_color = [1 0 0]"
}

So the Set Parameter ROP seems to be doing what it should, but the rendered cube remains white, not red. Any thoughts as to what I'm doing wrong?

Thanks,

Andy

3 REPLIES 3
Message 2 of 4
Stephen.Blair
in reply to: fxnut

Kd_color is a shader parameter (of the old deprecated Standard shader), not a polymesh parameter



// Stephen Blair
// Arnold Renderer Support
Message 3 of 4
julian.hodgson
in reply to: fxnut

Right - you should be able to change the shader's parameters with an operator if you select the shader.

But you also can create a colour parameter on the shape with an operator, and then tell the shader to look for the new parameter:

1574-set-parameter-cd.png

and then pick that up in the shader:

1575-shader.png

1576-user-data.png

and you should see a red sphere if you connect the operator:

1577-operator.png

See the example file set-parameter-cd.zip

Cheers,

Julian

Message 4 of 4
fxnut
in reply to: fxnut

Thanks Julian, I'll give that a go!

@stephenblair Okay, yep that makes sense. I think I was looking at the wrong thing in the ass file. Thanks.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report