Attribute's and Shaders ?

   4142   8   2
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Is there any tutorial or information on how to transfer a attribute created in SOP's with “Attribute Create” to a shader?
Because obviously Im doing something very wrong And cant really find the info im looking for.

/M
/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
12450 posts
Joined: July 2005
Online
Make an attribute (usually a Point attrib, but others will work) with the same name as the shader parameter. Eg. “rough” will override Roughness on the VEX Metal SHOP.
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
1529 posts
Joined: July 2005
Offline
It's actually a lot simpler then is sounds.

If you create a float point attribute called “neener” on your geo, all you need to do is create a float attribute called “neener” on your shading network, and they will bind correctly. You RMB on an input, and select “Create Parameter”.

Watch your signatures though – float, vectors, etc…

G
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Ah thanks but I wanted to use this Attribute at VEX level, but maybe creating a parameter in VEX and creating the Attribute with the parameter name ? and not as I did put $myAttribute in the parameter input ?

/M
/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
1529 posts
Joined: July 2005
Offline
Whether a shading network, or a vop sop network, they all work the same way.

Attrib ‘foo’ on geo, a parameter vop: ‘foo’ (no $) in the parameter name field.

Done.
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Hmm but I think im doing exactley that but cant get it to work ..I must miss something that I think im doing right… would it be possible to create a very simple file ?

I hope im not asking for to much

/M
/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
696 posts
Joined: March 2006
Offline
http://www.sidefx.com/index.php?option=com_content&task=view&id=1500&Itemid=132 [sidefx.com]

I'm pretty sure there was an example of this in video 12 if not earlier in the series.
Stephen Tucker
VFXTD
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Ah sweet a video tutorial ! thanks, downloading

/M
/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
User Avatar
Member
1104 posts
Joined: Aug. 2008
Offline
Hrm I was doing right there just seemed to be a update issue when rendering If I connect, disconnect and fiddle around it suddenly just started to work… grrr

/M
/M

Personal Houdini test videos, http://vimeo.com/magnusl3d/ [vimeo.com]
  • Quick Links