Jump to content
apaza610

Expression to drive attribute using other attribute with VEX or Python

Recommended Posts

Hello, one question please:

What expression can I write to use the @ptnum attribute to drive the @P.y attribute using VEX or Python expressions.

What if I want to drive @P.y with @P.x  ??

thanks in advance.......

problemaPTNUM.jpg

Share this post


Link to post
Share on other sites
4 hours ago, 3dome said:

use a point wrangle
@P.y = @ptnum;
@P.z = @P.y;
 

If possible I would like to use an expression, not the wrangle node, unless there's really no other way........

Share this post


Link to post
Share on other sites

attrib sop is VEX aswell

i dont think you can do it with an expression in transform sop because it does not run over each point like a wrangle but over the whole geometry at once.

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, 3dome said:

attrib sop is VEX aswell

i dont think you can do it with an expression in transform sop because it does not run over each point like a wrangle but over the whole geometry at once.

Now I understand what was I wrong with, thanks Dominik  and dedeks3000 ........

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

×