Jump to content

Vector component in stamp expression


Recommended Posts

Is it possible to access a single component of a vector in a stamp expression? Or is it just limited to single numbers? I've searched and haven't found anything specific to copy stamping and vectors.
 
For example, if I had a vector attribute called size and I wanted to just get the second component. I've tried:
stamp('../copy1', 'size.y', 0)
stamp('../copy1', 'sizey', 0)
stamp('../copy1', 'size[1]', 0)
 
I know it would be easy enough to create an extra attribute with just the second component to stamp instead. But it seems like this should be unnecessary.

 

 
Link to comment
Share on other sites

You can of course use an Attribute Wrangle to store the single axis in a new attribute and stamp just that.

f@my_y_axis = v@P.y;

Eh, it looks like you reject that solution, hmm...

 

 

 

 

 

Edited by Atom
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...