Hi
I would like to add a custom property to a ROP and query that inside of a shader.
Basically just add a float, name it and get it's value inside of a shader. Some global values, I would rather not define on a per shader basis.
I'm either missing something, or it's quite involved.
I got my extra attribute into the list of rendering attributes (had to make a IFDmantra.user.ds inside of soho/parameters).
Now getting the Parameter to be written to the IFD file seems even more involved (changing SOHO).. am I on track here? Is this the correct way?
Custom Render Property for Shader
2362 5 0- danylyon
- Member
- 8 posts
- Joined: June 2008
- Offline
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
if im understanding correctly, i think all you need to do is create your parameter and then use a channel reference to grab it. to make the parameter click the gear icon and then edit parameter interface and drag an empty float parm over.
then use the expression ch(“path/to/nodename/parametername”) to grab its value.
then use the expression ch(“path/to/nodename/parametername”) to grab its value.
.
- danylyon
- Member
- 8 posts
- Joined: June 2008
- Offline
Thanks for the fast answer..
I know I could do it that way. Problem, I'd need to connect all my shaders to the parameter on the ROP.
If I render with a different ROP, it wouldn't update.
I'm looking for a more general “pipeline” solution.
I guess I could to a prerender script that updates the connections.. mhm. I hoped for something more clean.
I know I could do it that way. Problem, I'd need to connect all my shaders to the parameter on the ROP.
If I render with a different ROP, it wouldn't update.
I'm looking for a more general “pipeline” solution.
I guess I could to a prerender script that updates the connections.. mhm. I hoped for something more clean.
- danylyon
- Member
- 8 posts
- Joined: June 2008
- Offline
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
- zdimaria
- Member
- 390 posts
- Joined: Jan. 2012
- Offline
-
- Quick Links