Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Melange - missing ids

    General Discussion
    0
    5
    833
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              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!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post