Jump to content

global variables in vex


Recommended Posts

Hi everyone 


Is there a way to reference one array in several different wrangle nodes ? I have an array containing a list of voxel indices constructed in one wrangle node but I need to use it in other places as well and would prefer not to construct it several times. So is it possible to define some sort of  global array from a vex node and reference it in different places  ?  :)


any help is much appreciated 

Link to comment
Share on other sites

Hi Edward, thanks a lot, but I'm not quite sure what you mean by mode. I create the list in an attribwrangle running over the detail attribute. I managed to set a detail attribute with the list as a string which seems to work ok but then I would need to "un-string" it again and I'm not sure how to do that. When you say array geometry attribute , does that mean you can store the array without creating a string first ?  


Or alternatively how do you convert the string back to the original array ? :)  

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.

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...