Rank: Newbie
Joined: 1/13/2021 Posts: 5
|
I am trying to simplify my mappings and one way I thought I could simplify is by creating a user-defined function to take a node as an input so that I can output a string based on the node's name and position. But I can't see a way to set the input of my user-defined function to be a node. node isn't one of the listed types in the dropdown for Simple inputs.
|
Rank: Advanced Member
Joined: 6/16/2006 Posts: 487 Location: AT
|
jduteau wrote:node isn't one of the listed types in the dropdown for Simple inputs.
That's because node is not a simple type.
But there is a "dirty" workaround: Use any simple type and make sure that your function is set to "inline". Inline functions ignore the parameter types completely because the parameter components are eliminated by the inlining process.
|