Open kwokcb opened 3 weeks ago
@manuelkoester , @RichardFrangenberg
I have tried adding this code inside of connect_qx_inputs_from_mx_node()
. It adds a connection but doesn't work properly. For example the nodegraph has no UI in the properly panel.
for mx_input in mx_node.getActiveInputs():
if mx_input.hasInterfaceName():
intf_name = mx_input.getInterfaceName()
logger.info("-------------- Add connect interface name: %s" % intf_name)
port_node = qx_node.graph.get_input_port_nodes()[0]
out_port = port_node.get_output(intf_name)
qx_input_port = qx_node.get_input(mx_input.getName())
out_port.connect_to(qx_input_port)
This is the current WIP code.
https://github.com/PrismPipeline/QuiltiX/compare/main...kwokcb:interface_input_load?expand=1
The connections are there but when unexpanded there are no inputs on the nodegraph node. Tried forcing an update but no luck: https://github.com/PrismPipeline/QuiltiX/compare/main...kwokcb:interface_input_load?expand=1#diff-98b0f2ce3bf2a207a8c4be6ee4c9a654250018d567f18b55dff0d6fc686ef145R889-R897
There are no value
attributes on for the interface inputs when examining the XML.
Issue
If you have a document with a
nodegraph
with inputs which are connected to downstream nodes, these connections are not made when loading in.Steps
This example was created in the editor and while creating it seems okay so this appears to be purely a load issue.
When you look at the graph, it looks like this:
If you example the XML (using text preview):
Here you can see that the inputs are missing from the document but appear in the UI.
Thus it appears that the nodegraph UI has the inputs added but the connections are never made to the node UI ?