Jump to content
Sign in to follow this  
mart1jn

accessing a element of a 3f vector in vex

Recommended Posts

In a vex attributewrangle node I'm trying to access all elements of the @pprevious attribute. The @pprevious seams to work differently than @P and @Cd.  I cannot figure out what the syntax should be. Could someone help me with that?

 

@Cd = @pprevious; This doesn't give an error but it copies the 1st element of the @pprevious to all elements of @Cd. 

 

These all give errors:

@Cd.x = @pprevious.x;
@Cd.x = @pprevious[0];
@Cd.x = @pprevious.0;

@Cd.x = @pprevious(0);

 

Im using Houdini 14.0.474.

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  

×