Jump to content

Sending result from Python node to other nodes in the network


ivr

Recommended Posts

Hello, everyone!

I need the result of some calculations done in a Python node in other parts of my network. I am doing a singular value decomposition using the NumPy package. I am getting two 3x3 matrices for each particle in my system.Storing them on the particles seems like a bad idea as they are 3x3 matrices and I am already storing other matrices and vectors on my particles. 

Is there a way a way I could recall those results further in the network, especially in Attribute Wrangles?

 

 

Link to comment
Share on other sites

just pass them as attributes, if they are really per particle, that may be the most efficient

if it's less data you can always just create point per data and still store on points, then access them from that geo, which doesn't have to be your main branch

dirty, potentially dangerous, maybe even slow way could be to set data as user data on the node and read in another node downstream using Python, wouldn't do it for lots of data though, or probably ever

Edited by anim
Link to comment
Share on other sites

Thank you, Tomas! I'll consider point per data if my slowing down problems become overwhelming and I'll stay away from user data!

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