catchyid Posted August 24, 2016 Share Posted August 24, 2016 Hi, In a dop network, I am using POP Wrangler to read some point attributes using "haspointattrib" VEX function, however, not ALL attributes are read? The point attributes I am interested in are created by SOP Ray node ("hitprim" and "hitprimuv") located in geometry network. However, "haspointattrib" can still read other attributes like P (but not the ones created by Ray node)?! for example: i@exists = haspointattrib("/obj/crowdsim/ray1", "P"); //returns 1, i.e. P do exists i@exists = haspointattrib("/obj/crowdsim/ray1", "hitprim"); //returns 0, i.e. hitprim does't exists I double checked that "hitprim" exists in /obj/crowdsim/ray1, which also contains "P" point attribute. I am not sure if there are limitation to using "haspointattrib" function (the docs do not say any)? or maybe I should not use in POP Wrangler node? The only thing in POP Wrangler that says this node does not use Local Variable but "hitprim" is an attribute and not a local variable. https://www.sidefx.com/docs/houdini15.5/vex/functions/haspointattrib https://www.sidefx.com/docs/houdini15.5/nodes/dop/popwrangle Thanks in advance, Quote Link to comment Share on other sites More sharing options...
animatrix Posted August 24, 2016 Share Posted August 24, 2016 They are primitive attributes. You have to use hasprimattrib function. 2 Quote Link to comment Share on other sites More sharing options...
catchyid Posted August 25, 2016 Author Share Posted August 25, 2016 Thanks pusat Actually, I did some investigation, I verified they are Point primitives (although their names has "prim" prefix). The problem was from my side I was writing the SOP path without "op:" so the command failed to retrieve the geometry! i.e. i@result = point("/obj/c/ray1", "hitprim", 0); // fails because no op: i@result = point("op:/obj/c/ray1", "hitprim", 0); //works! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.