Jump to content
Sign in to follow this  
magneto

How to use the op syntax with point VEX function using Point Wrangle?

Recommended Posts

Hi,

I am trying to use:

op:`opinputpath(".", 0)`[/CODE]

But couldn't figure out the right syntax in VEX. Right now I am using absolute path:

[CODE]point("op:/obj/geo1/grid1", "P", 0);[/CODE]

[size=4]It would be much better if I could use opinputpath.[/size]

[size=4]Thanks :)[/size]

Share this post


Link to post
Share on other sites

I think it's just @OpInputn, where "n" is the input number you want it to look to. The input numbers start at 1.

edited, to correct the syntax...

Edited by swimmer
  • Like 1

Share this post


Link to post
Share on other sites

mmm and how can you access an attribute from the second input?

@OpInputX, where X is 1, 2, 3 or 4 for each input.

Share this post


Link to post
Share on other sites

thanks skybar,  thats for accessing the input, lets say i want to get the normals or the Cd of the second input.

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  

×