-
Notifications
You must be signed in to change notification settings - Fork 19
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
Implement additional inputs #34
Comments
I was unable to solve the issue by changing the valueInput to type CoreNode. However, I was able to get a solution working by making the block holding the input data connect to an output node. This isnt great in terms of flow (since the output connects to data used as an input), but it will work for now. I would still love to know if it is possible to create your own additional input nodes :) |
Hi, NewGraph is designed to represent reference trees, similar to UML graphs, therefor it was desgined in a way that the input represents the node itself and that there is a clear flow in one direction. With these design decisions in mind it is currently not planned to have a default ability to create multiple input nodes, however if this is really needed you might be able to cook something up with custom NodeEditors :) |
Port Attribute@DraconInteractive
I changed it to the following and was able to get ports on the left side.
Custom EditorThis may be the correct path but I got tripped up, maybe @Doppelkeks can help? How can I access the serialized property thru the customer node editor?
How can I access the property from the customer node editor?
UsecaseMy use case is that I would like to create an action graph that allows animators to define animations with modular blocks. If you think this is a bad usage of NewGraph then let me know, Im still looking for a solution and would rather not write the whole thing myself. Thanks! |
Came here looking for the same thing. But looking at the way NewGraph is set up, it's pretty clear that this is outside its use case. (and i'm happy because that keeps things a lot simpler) Nodes reference other nodes directly through their No separate data is being kept on Edges. To have multiple input ports, you'd have to keep track of — and serialize — Edges as their own data type which would then break the nice symmetry between the [Serializable] Node classes and their visual representation. You would no longer be able to just plop a few Edit: thinking about it, you would probably even need a separate Port datatype! 🤪 e.g.
|
Hi! I'm trying to make a system similar as to what can be seen in ShaderGraph, where you create 'value' nodes that can feed into your main nodes to provide variables and context.
My current setup is as follows (see relevant scripts at the bottom):
I have created a 'CoreNode' class that derives from INode. In this, I have added methods for tracking outputs and executing actions. All of my nodes derive from this CoreNode.
The focus here is my ANode_SetAnimParameter class. It takes a string for the parameter name, and a string for the parameter value that is then parsed depending to an enum value (to parse as float, int or bool).
My goal was to change the parameter value string into its own node that feeds into the set anim parameter node.
To do this I did the following:
To all first appearances, this seems to work. The ports are created properly, I can create the string node correctly, and connect them all up. However, as soon as I press play in the editor, the connections between the VNode_String nodes and the ANode_SetAnimParameter nodes are lost. All other connections maintain their links.
Any ideas why this is happening? I think maybe due to my use of the VNode_String type to the input port, however I do want to be able to restrict the port type so I dont accidently provide an int to a string input.
Appreciate your time / thoughts!
VNode_String.txt
ANode_SetAnimParameter.txt
CoreNode.txt
ValueNode.txt
The text was updated successfully, but these errors were encountered: