PDA

View Full Version : COFFEE question


hausgross
08-17-2010, 09:01 AM
Hi folks.

With the R12 approaching and probably Python integration this might be a ridiculous question, but nevertheless it is spinning in my head.

Is there any way to determine the active editing mode (points, edges, polygons, ...) via COFFEE?
I know i can sitch the modes via CallCommand, but I need to find out which mode is active ATM.

Searched the SDK but didn't find anything.
Thanks.

Phil

Scott Ayers
08-17-2010, 04:26 PM
There is this type of thing available: doc->GetActiveTool();
But it doesn't seem to reflect the modeling tool modes. I might be using it wrong though.

Then there is this kind of thing available: if(!(IsCommandChecked(12139)))// if pointmode is not active
{
CallCommand(12139);// Make it active
}
if(IsCommandChecked(12139))return;// if it's already on. Do nothing

Is that any help?
-ScottA

hausgross
08-17-2010, 07:11 PM
Hey that's a nice trick. Haven't stumbled upon the "isCommandChecked"-function yet.

That'll do. Thank you very much.

Phil

CGTalk Moderation
08-17-2010, 07:11 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.