THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/10/2004 at 14:16, xxxxxxxx wrote:
Howdy,
OK, so how does GetAction() work in C++? The SDK says this:
LONG GetAction(void)
Get the current tool in the editor.
Return
LONG
The return values are the IDM_MOVE, IDM_SCALE etc. All these IDs are listed in c4d_symbols.coh in the resource folder of the main application. The IDs used need to be copied over manually.
I tried this...
LONG activeTool = doc->GetAction();
if (activeTool == IDM_MOVE)
{
GePrint("Move Tool active");
}
...but nothing happens.
Then I tried this...
LONG activeTool = doc->GetAction();
GePrint("activeTool = "+LongToString(activeTool));
...and it printed out this: activeTool = 200000088
In the c4d_symbols.coh file, it's listed: IDM_MOVE = 12356,
When it said, "The IDs used need to be copied over manually" I thought it meant that I have to copy that line and paste it into my plugin's header file with the other enum's.
I'm a bit confused. Can someone steer me in the right direction?
Adios,
Cactus Dan