want to get the id paths of selected nodes. but how? couldnt find the info on the plugin specs page.
thx
ele
want to get the id paths of selected nodes. but how? couldnt find the info on the plugin specs page.
thx
ele
thx woei, so far.
as a beginner im struggling with the concept of events in csharp, respectively the syntax to catch them.
found this: The Simplest C# Events Example Imaginable- CodeProject
and this: Delegates for Dummies- CodeProject
dont really get it :(
something like this:
public class MyPlugin: : IPluginEvaluate, IPartImportsSatisfiedNotification
{
[Import()](Import())
public IHDEHost FHDEHost;
private INode2[]() FSelection; //for storing the selection
public void OnImportsSatisfied() //called on creation
{
FHDEHost.NodeSelectionChanged += delegate(object sender, NodeSelectionEventArgs e)
{
FSelection = e.Nodes;
};
}
}
so each time the event is raised, that delegate is executed, which is simply saving the node selection.
thanks a lot woeishi.
still dont understand it in depth, but i got it working.
here is the plugin for those interested.
VVVVGetSelectedNode.zip (7.3 kB)