Jump to content

accessing a element of a 3f vector in vex


mart1jn

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...