Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

apaza610

Expression to drive attribute using other attribute with VEX or Python

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

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

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

Try the attribute SOP node, for more details look at this video (seen last week so ...) :

 

1 person likes this

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.

1 person likes this

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