Binding float array in COP network

   990   4   1
User Avatar
Member
11 posts
Joined: Feb. 2018
Offline
Hi,

I'm trying to bind a float array (any array really) in a COP2 network in a VOP COP2 Generator node. I initialize the array in an inline VEX node and output it as a 'Float Array'. When I print the output of the VEX node it works correctly. However when I Bind Export it instead as a 'Float Array (float)' and try to access it in another scope (VOP COP2 Generator node) with a Bind node, Houdini crashes. The crash doesn't happen in Houdini FX, but it does in Houdini Apprentice I use at home.

The Geometry Spreadsheet also doesn't show my array correctly at all, instead it looks like some uninitialized value. Binding a float array does work in SOP networks, so is this a limitation in COP networks? Or is there a different way to get this to work? I'm using Houdini Apprentice 17.5.425.

Thanks!
Edited by Vinc45678 - Nov. 24, 2019 08:48:26

Attachments:
float_array.hipnc (131.5 KB)
2019-11-24 13_12_27-Window.png (3.2 KB)

User Avatar
Member
142 posts
Joined: Aug. 2009
Offline
houdini 16.5 apprentice
no Crash here
User Avatar
Member
11 posts
Joined: Feb. 2018
Offline
Ah, I left the code that crashed it in the second VOP COP2 Generator node commented out. I've attached it again which crashes for me as soon as I press 'Click to forcefully update all values'. I saved the file in manual cook mode.

Attachments:
float_array.hipnc (131.6 KB)

User Avatar
Member
142 posts
Joined: Aug. 2009
Offline
no crash

Attachments:
14.jpg (721.9 KB)

User Avatar
Member
11 posts
Joined: Feb. 2018
Offline
Thanks for testing, but it also doesn't seem to print: " Float array count: len(m_MyArray)". I can't seem to use an array of any kind in my COP network after I used ‘Bind Export’ and try to use it in another scope (not sure this is the right terminology - I just mean in a different VOP COP2 Generator node).
  • Quick Links