Jump to content
Sign in to follow this  
xxyxxy

How to access a detail attribute from a COPs Snippet VOP?

Recommended Posts

This is probably a simple question, but I cannot figure out how to grab a array detail attribute from /obj in my COP Snippet.  I am trying to render an image where each pixel contains part of my detail attrib array, as follows:

 

int test_array[] = detail("op:/obj/oinkster", "test_array");

R = G = B = test_array[1];

 

This is all inside of a VOP COP2 Generator... Where am I going wrong?
 

Share this post


Link to post
Share on other sites

try to provide path to a geometry node (SOP) not just object

like this:

"op:/obj/oinkster/OUT"

Share this post


Link to post
Share on other sites

You don't need the op: prefix. That is only required if the parameter expects to a filename.

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  

×