How to add values to an array?

   1217   2   0
User Avatar
Member
97 posts
Joined: May 2015
Offline
How can i add a array onto another array? How do i add Number to the first and values to the second inside @Testing? I get an error when i do: p@testing = {Number,values};
Edited by Shadowjonny - June 16, 2019 02:27:33

Attachments:
Screenshot (345).png (226.4 KB)

User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
As far as I know you can't have multi dimensional arrays with vex
User Avatar
Member
2041 posts
Joined: Sept. 2015
Offline
No, you can't generate arrays of arrays in vex.

However, you can make a quasi type setup to accomplish something similar; It's just not efficient as it can chew up a lot of memory and processing if it gets big.

Would be good if we had that capacity in vex(arrays of arrays) where under the hood it's referencing the members by pointers, rather than having to generate attributes like I have with the example hip.

For your other questions, here's a doc reference so you can choose how you want to work with your example:


http://www.sidefx.com/docs/houdini/vex/functions/index.html [www.sidefx.com]

Attachments:
Quasi Array of Array.hiplc (58.3 KB)

  • Quick Links