konstantin magnus Posted September 10, 2018 Share Posted September 10, 2018 (edited) I wrote a lens shader in CVEX that is supposed to get some data from geo level (ie. a position to look at). Unfortunately no full path expression on my shader node does seem to work: detail("op:/obj/mesh/OUT"), "center", 0) Edited September 10, 2018 by konstantin magnus screenshot Quote Link to comment Share on other sites More sharing options...
Atom Posted September 10, 2018 Share Posted September 10, 2018 (edited) Hmmm...am I seeing a parenthesis mis-balance? detail("op:/obj/mesh/OUT", "center", 0) The camera is just a single point, what if you stored the data on the point instead of detail? point("/obj/cam1/camOrigin","center",0) Oh wait a second, are you fetching from inside the object? I think detail can't reach inside SOP, it would sit at the obj level. detail("op:/obj/mesh", "center", 0) Edited September 10, 2018 by Atom Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 10, 2018 Author Share Posted September 10, 2018 1 hour ago, Atom said: parenthesis mis-balance? You were right: I just overlooked the bracket. I used the detailattrib to create getbbox_center(). Works nicely now, thanks! 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.