My question about COPs ...

   1761   2   0
User Avatar
Member
404 posts
Joined: Aug. 2015
Offline
Hi;

1) I assigned a Principled Shader material to my geometry.
2) I created a “Shape” COP node, and I use it as diffuse texture in my material.
3) That Shape COP node, has a parameter called “Number Of Points” and I want to change it using an attribute in my geometry.

Is it possible to read geometry attributes in a COP?


Thanks for helping.

Attachments:
COP.JPG (338.2 KB)

Masoud Saadatmand (MSDVFX)
User Avatar
Staff
5154 posts
Joined: July 2005
Online
I believe you'd have to write out the various combinations of images and reference those as files from the shader. The geometry attribute could override the texture filename. I don't think the IFD export process is smart enough to recook the COP network for multiple variations.
User Avatar
Member
26 posts
Joined: May 2018
Offline
There's a couple ways…

If you can expose the relevant geometry attribute to a SOP or OBJ parameter, you can reference that parameter directly in your COP parameter.

If you're trying to do something more complicated, put down a VOP COP2 Generator and use the Get Attribute node with an "op:/obj/geo1"reference for the “Geometry File” parameter.

EDIT:
Or, throw down an inline node inside your VOP COP2 Generator and use http://www.sidefx.com/docs/houdini/vex/functions/getattribute.html [www.sidefx.com]
Edited by Tristannn - Aug. 18, 2018 20:32:40
  • Quick Links