Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

considering an inter nodegroup communicator node "Node Remote" #737

Closed
zeffii opened this issue Nov 10, 2015 · 17 comments
Closed

considering an inter nodegroup communicator node "Node Remote" #737

zeffii opened this issue Nov 10, 2015 · 17 comments

Comments

@zeffii
Copy link
Collaborator

zeffii commented Nov 10, 2015

image

https://github.com/nortikin/sverchok/blob/node_remote/nodes/basic_data/node_remote.py

needs a lot of work, but the basics already exist in the Set/Get property node.. so. When someone finds time :) We could offer this as a convenient communication path to Animation Nodes node tree.. Maybe offer input / output as two modes of the single node.

@zeffii
Copy link
Collaborator Author

zeffii commented Nov 10, 2015

outputs: bpy.data.node_groups[1].nodes[2].outputs[0].getValue()

@zeffii
Copy link
Collaborator Author

zeffii commented Nov 10, 2015

image

@nortikin
Copy link
Owner

great idea.
i will have time on weekend, will look.
Thanks!

@zeffii
Copy link
Collaborator Author

zeffii commented Nov 10, 2015

also AN guy made new node today too for data exchange: http://animation-nodes-manual.readthedocs.org/en/latest/dev_guide/data_interface.html

@zeffii
Copy link
Collaborator Author

zeffii commented Nov 12, 2015

@enzyme69

A small recap. There are two scenarios.

SV => AN
AN => SV

and four possible nodes

SV_SETS_AN 
AN_SETS_SV

SV_GETS_AN
AN_GETS_SV

An SV node setting the value of an AN node is the almost the same as having an AN get a value from SV node. Essentially the same -- but with subtle differences, execution order most notably.

As far as i remember, for Scripted node to update, it requires at least one connection on the output. This is kind of an arbitrary limitation due to the SN starting out as a generator node, which didn't need to process until it had sockets connected to the output.

@zeffii
Copy link
Collaborator Author

zeffii commented Nov 13, 2015

i imagine it's possible to make both SV and AN shit bricks by doing something like this. Where the color of the background indicates that SV is communicating with AN , but it doesn't matter which is which. Cyclic update loop seems possible, but difficult to avoid if you are not careful.

https://gist.github.com/zeffii/2a49db1c41497515e459

@zeffii
Copy link
Collaborator Author

zeffii commented Nov 13, 2015

You might never experience it, and I don't have time to experiment :)

@nortikin
Copy link
Owner

@zeffii
assign_data(named_input.value, data)
value is not exists... how to call?

@enzyme69
Copy link
Collaborator

I downloaded latest Sverhcok and could not find "SV Node Remote".

@nortikin
Copy link
Owner

@enzyme69 because it is on branch node_remote. It is ok

@TysonParks
Copy link

Yes please! This would be amazing.

@zeffii
Copy link
Collaborator Author

zeffii commented Dec 4, 2015

This node is now added to the beta nodes as Node Remote (control) it is not tested extensively.

But ! you can ignore the color of the Socket dot, it should just accept any useful socket.

@zeffii
Copy link
Collaborator Author

zeffii commented Dec 4, 2015

this is far from being a useful node.. hence beta

@zeffii
Copy link
Collaborator Author

zeffii commented Dec 5, 2015

implementing the dynamic socket kind will at least show users what kind of socket to feed the node...

@TysonParks
Copy link

Excellent! I'll try it out this week.

@zeffii
Copy link
Collaborator Author

zeffii commented Dec 7, 2015

don't get your hopes up. @Bearmod the set props and get props node are already great. And i'm too lazy to do anything with this convenience feature..

@zeffii
Copy link
Collaborator Author

zeffii commented Dec 22, 2015

we need someone who not only wants this, but can invest their own time into adding the required conversion scheme. currently it's low priority and it seems like get and set props nodes can already be used for most stuff.

@zeffii zeffii closed this as completed Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants