THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/07/2010 at 19:58, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Mac OSX ;
Language(s) : C++ ;
---------
Hey all,
I'm building a combo plugin that includes an object, a tag, and a scenehook. There are some global settings associated with the scenehook that I want to be available for the user to alter if necessary.
So, I was wondering how I could get AM parameters for the hook, but it's not something that's "selectable" like an object or a tag so there's no way to display it in the AM. Then there's a dialog, but I don't feel like going that route. Then I remembered the new document mode in the AM in R11.5 and wondered if I could create my own mode and tie it to my hook.
A quick look through the sdk, and I find lib_activeobjectmanager. Woohoo, it looks like I can create my own AM mode, and it's available all the way back to R10, perfect:D But it seems like it's a bit of a different beast than most of the other stuff I've seen in the SDK, so I thought I'd ask a couple of questions before diving in:)
1.It looks like a class, but it's categorized as a "global", so is there any special way to deal with it? (ducks for cover in case that's a stupid noob question).
2. It almost seems like it's designed for scenehooks... Like, it is the quintessential answer to my overall problem of adding parameters to a scenehook plugin. Is that correct? The function to register a new mode has a variable for a MESSAGEHOOK *hook, is that where I put my scenehook plugin to tie that mode to my scenehook? And if so, how do I handle the description resource in this case?
thanks!
-kvb