AntoineSfx Posted September 17, 2022 Share Posted September 17, 2022 (edited) In a shader, I want to sample the Cd attribute from a curve, which is not the object being shaded. I can't / doesn't want to store the information on the grid - also this is just a proof of concept for something a bit more complex. In shop, I don't undertand how to query attributes on other piece of information for a given SOP. In theory I could do it with Import Attribute, but how do I point to the set of curves ? I don't understand what OP Input Index mean. It feels like the other inputs for say, PointWrangle in SOP, but how does this work in shop ? The documentation for " Import Attribute VOP node " says: This operator imports attribute data from the OP connected to the given input. It returns 1 if successful and 0 if unsuccessful. Possible reasons for failure are: In pure SOP, this would look like this in a point wrangle on a subdivided grid: int n = nearpoint(1,@P); vector Cd = point(1,"Cd",n); @Cd=Cd; but I can't emulate the "1" input in shop Edited September 17, 2022 by AntoineSfx Quote Link to comment Share on other sites More sharing options...
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.