Jump to content
Sign in to follow this  
ivr

Sending result from Python node to other nodes in the network

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?

 

 

Share this post


Link to post
Share on other sites
Posted (edited)

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

Share this post


Link to post
Share on other sites
Posted (edited)

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

Share this post


Link to post
Share on other sites
7 hours ago, ivr said:

I'll stay away from user data!

I mean user data is great for storing metadata on nodes, I just meant be mindful about when and how you use them

Share this post


Link to post
Share on other sites

I'll keep that in mind! Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×