Melange - missing ids

On 05/06/2014 at 00:20, xxxxxxxx wrote:

Hello,

I'm writing import/export plugin for C4D file format, everything is almost fine.

However, many parameter ids are not defined in melange SDK.
For instance :
Cloner Object with id 1018544 is not defined at all.

While size, step, radius and some numerical values are easy to see and find, some boolean flags are really hard to understand.

Similar situation is with splinedewrap and probably with few more.

Is it possible to have header with this ids or can you provide this info somehow else?

Thank you,
Alex

On 05/06/2014 at 07:38, xxxxxxxx wrote:

The ID of the cloner object is nowhere defined explicitly, not even in the Plugin API. You
can get it by dragging a Cloner into the console or using the "Customize Commands..."
dialog.

If  need additional description resource headers, you can copy them from the Cinema 4D
installation.

Cheers,
-Niklas

On 05/06/2014 at 08:29, xxxxxxxx wrote:

Hi Niklas,

Thank you for your answer.
ID of object itself is easy- for cloner it's 1018544, what about parameters?
For instance Linear Clone -> "Mode". It may be 1271, or may be not.

Can I somehow retrieve this number ?

Of course, "Mode" just an example.

Thanks,
Alex

On 05/06/2014 at 09:02, xxxxxxxx wrote:

Hi Alex,

two options:

  1. drag the parameter into the console and only keep the YY part of  xx[YY], then press enter, then
    you get the ID in the console. Most likely (but not always, depends on what object you choose to
    do it), you'll also see the symbol name of the ID but that is defined in the resource header (see #2)
  2. search the description resource header of the Cloner Object in the Cinema 4D application folder
    and copy it to your project. (in this case C4D/modules/mograph/res/description/omograph_cloner.h)

Best,
-Niklas

On 05/06/2014 at 09:23, xxxxxxxx wrote:

Great! Both methods work.
Only sometimes, after dragging and leaving YY part I can't press ENTER. But this is nothing.
Thank you again!