Jump to content
Sign in to follow this  
konstantin magnus

Full path from lens shader to detail attribute

Recommended Posts

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)

cvex_sshot.jpeg

Edited by konstantin magnus
screenshot

Share this post


Link to post
Share on other sites

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 by Atom

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×