Enable Node Autocompletion for output ports of Dynamo nodes. #11638
Enable Node Autocompletion for output ports of Dynamo nodes. #11638reddyashish merged 10 commits intoDynamoDS:masterfrom
Conversation
|
@reddyashish maybe when nothing matches we show a list with codeblock, watch node, or python? |
Due to the convenience of creating CBN, I would maybe just add watch, watch 3D and Python, even watch3D may not be universal. My 2 cents. |
|
@mjkkirschner @QilongTang Addressed the comments. |
| /// <summary> | ||
| /// Class for all Auto-Completion Node search elements. | ||
| /// </summary> | ||
| public abstract class AutoCompletionNodeSearchElement |
There was a problem hiding this comment.
Can you re-iterate the purpose of this class by comments here? We cant inherit the NodeSearchElement class because auto-completion API returns a list of NodeSearchElement and we would need this information in the NodeSearchElementViewModel to connect the port? I am fine with this, @mjkkirschner @aparajit-pratap what do you think? I think we plan to keep expanding here because we will have more properties coming in specific to AutoComplete function, e.g. user's rank, whether favored, ML rank
Purpose
This PR is to address the task: https://jira.autodesk.com/browse/DYN-3344
This PR will enable the node autocompletion functionality on the output ports of the nodes. The node autocompletion model will find all the matching nodes which has atleast one input parameter matching the output port type of the selected node. When any of the search elements are clicked, it will create the node and connect the output port of the original node to the first available matching input port of the new node.
Things to discuss
Declarations
Check these if you believe they are true
*.resxfilesReviewers
@QilongTang @zeusongit @mjkkirschner @aparajit-pratap