[Closed] SDK: ActionItems and ActionTable issue
I’m writing a plugin for which I want to make a number of Actions (i.e. what I would do with macroscripts in maxscript). I followed and practically copied the FFD example from the help, but I run into an issue.
First, the code that sets up the ActionTable and ActionItems can be seen here: https://github.com/Pjanssen/EdgeSmooth/blob/develop/EdgeSmoothActionTable.cpp
and initialized in LibInitialize here:
https://github.com/Pjanssen/EdgeSmooth/blob/develop/DllEntry.cpp
BuildActionTable();
EdgeSmoothActionCB* esActionCB = new EdgeSmoothActionCB();
GetCOREInterface()->GetActionManager()->ActivateActionTable(esActionCB, edgeSmoothActions);
This code creates a group for the actiontable, but there are no actions in there…
Also, I wonder if this is the right way of going about it if I don’t really have a special actioncontext, or perhaps they should only operate in the editable poly context.
Thanks!
A gentle nudge
I’m still rather stuck on this issue, so if there’s anyone who can give me a hint, that would be great.