Creating New Nodes

Hi All,

Just wondering if anyone has any experience creating icon/nodes from functions.

To explain what I am trying to do:

I have created a few functions using the basic method shown in the 2019_02 GC SIG "The GC SDK Digging_Deeper".

Using just a script in simple string form, as a easy way to get into creating Add-ins. 

That all works fine as and we can utilise the function from the function dialog or using a function call.

I would however like to create an icon/node that I can link to this function.

I have created an icon/node and placed it into a NodeTypePaletteCateory etc 

Just wondering what how I would go about calling the function I created? I assume I would need to create a funcitoncall as an input and populate it with the new function I created. 

We are trying to make the custom function more accessible to new users that are more familiar with node based workflows.

Any help would be appreciated.

Will post the results, maybe someone will find it useful.

Thanks

Wayne

Parents
  • Hi Wayne,

    I'm not familiar with that SIG, but I assume you're talking about a custom function and a custom node type that you've implemented in a GC add-in, which you created in Visual Studio.

    From a GC user's point of view, there should be no difference between your custom function and any other GC function. Likewise, there should be no difference between your custom node type and any other GC node type. In other words, the user shouldn't need to know -- or care -- where that function and node type came from.

    Just as in any other scenario, you should be able to call your custom function within an expression that you provide to an input to your custom node. Or, you should be able to create a FunctionCall node that calls your custom function, and then reference that FunctionCall node in an expression that you provide as an input to your custom node.

    Or am I off track from what you're asking?

    Jeff

Reply
  • Hi Wayne,

    I'm not familiar with that SIG, but I assume you're talking about a custom function and a custom node type that you've implemented in a GC add-in, which you created in Visual Studio.

    From a GC user's point of view, there should be no difference between your custom function and any other GC function. Likewise, there should be no difference between your custom node type and any other GC node type. In other words, the user shouldn't need to know -- or care -- where that function and node type came from.

    Just as in any other scenario, you should be able to call your custom function within an expression that you provide to an input to your custom node. Or, you should be able to create a FunctionCall node that calls your custom function, and then reference that FunctionCall node in an expression that you provide as an input to your custom node.

    Or am I off track from what you're asking?

    Jeff

Children