PluginInterface

is there any way to retrieve an INode2 interface from inside a plugin (i.e IPluginEvaluate)?

do you mean something else than importing IHDEHost and then getting the INode you need?

As far as I know, INode2 can’t be injected in a Node, so you’ll have to Import IHdeHost and use methods to find it (not sure when it is effectively created, so best bet is maybe on evaluate).

If INode gives you enough information (it’s more or less the same), then you can do (constructor)

[ImportingConstructor()](ImportingConstructor())
public MyPlugin(IPluginHost host)
{
    INode inode = (INode)host;
}

You might be able to import INode directly but I never tried.