Jump to content

VEXing array question - SOLVED


kev2

Recommended Posts

Hi, 

If I use an attribute wrangle to create an array attribute and populate the array like so:

i[]@stuff = nearpoints (0, @ape, 1, 23);

I can then slice the array like so:

i@branch = @stuff[3];

and all is good in the world.

However, if I attach another wrangle node and try to use the same slice, I get an error even though the array attribute shows up in the spreadsheet? 

Not a showstopper but I'd love to know why the attribute isn't accessible.

Edited by kev2
Link to comment
Share on other sites

For completeness, all I needed to do was declare the array as itself: 

i[]@stuff = i[]stuff; 

and then it picks up the array so that i@branch = @stuff[4] works fine now. Thanks @david for the assist. 

 

 

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