Hello
I am trying to use the file_cache node with my combustion network.
I got an Error with complex traces (see the picture for the full explanation)
Any ideas ?
Solved! Go to Solution.
Solved by moiamy. Go to Solution.
Solved by mjcg91. Go to Solution.
You are trying to output an object of type array<Amino::Object> , while the output port of your graph has a type Amino::Object . In other words, you are trying to output an array into a single value port.
Judging from the output port name of your graph, you created the output port by connecting the output of simulate_aero, and then you've tried to plug the output of file_cache, which has a different type. If you pay attention, you can see that the output port out_objects on file_cache has a little hat-shaped icon. This means that this is an array and not a single value.
What you can do is just create another output port on your graph, or change the type of your current output port.
Because this is the top level of your graph, the auto type feature on ports is disabled, so you have to be a little bit careful about it.
Thanks Mjcg91 for the clue.
Nevertheless when I try a "write_OpenVDB" node with consistent input/output, I got the same error.
Actually you were right. Just needed to connect the right output node
(Still I don't get why the vdb node doesn't work)
This is the same problem. Try connecting it to the second output and it will work.
Ian if you read this, maybe it should be better if the port icon doesn't change when incompatible. In case like this, if the port was still showing its original type, it would help new users to debug issues like this.
I agree that the port appearance should not change in this case. It would be even better if auto-ports were possible on the output node, but having the correct affordance as you suggest is always a good idea. I've logged an improvement request. Thanks!
Also, I am not sure connecting an array to the output node works very well with the bifShape. I would recommend using first_in_array or get_from_array to get the appropriate element from your file_cache node or write_OpenVDB instead of connecting the array out-port directly the the output node.
I.e. ----> write_OpenVDB -----> first_in_array -----> output
Can't find what you're looking for? Ask the community or share your knowledge.