Axis Center

On 13/05/2016 at 01:48, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   15 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
I have a ObjectData plugin in which I want to Axis Center the object.

Looking at topic https://plugincafe.maxon.net/topic/8024/10427_axis-center
I used following code.

Except, only the dialog is opened and not executed.
What do I have to do, to trigger execute?

doc->SetActiveObject(obj);
CallCommand(1010819);	// Axis Center...

Or is there another way to Axis Center objects?

On 13/05/2016 at 13:27, xxxxxxxx wrote:

I guess I used the wrong command.
Thanks to an old post by Scott, I now use CallCommand(1011982) and that seems to work.
I will give it some more test.

-Pim