On 22/05/2017 at 13:01, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R18
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
Have searched through the forum and found some topics, but can't manage to get it working.
I have a CommandData plugin, with an async dialog and userarea.
I'd like to represent "items" in the userarea, which the user can select. These items display some attributes (name, size, type, ...) defined as strings, integers, real. For these attributes to be edited, I would like to use the Attribute Manager.
I know I could provide some gadgets in the dialog next to the user area, or a separate dialog. But instead I want to use the AM for this.
So far, I have registered a new mode for the ActiveObjectManager. Created a NodeData per "item".
And registered a description for the NodeData to load during GetDDescription.
When I manually switch to the newly registered mode of the AM, the messagehook gets called and processes AOM_MSG_GETATOMLIST, where I collect the selected item (NodeData) into ((AtomArray* )data)->Append().
For testing purposes I send a message to the NodeData (while processing AOM_MSG_GETATOMLIST), and in MyNodeData::Message I print the incoming messages to the console. So far, so good.
However, the GetDDescription of MyNodeData never gets called. as such the AM remains empty.
Am I approaching this whole thing in the wrong way, or am I simply missing something minor?
TIA,
Daniel