Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Integrating a CallCommand() with Built-In Save Dialog?

    Cinema 4D SDK
    r21 python
    2
    3
    371
    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.
    • B
      bentraje
      last edited by

      Hi,

      I'm trying to create a script that

      1. Exports All Skin Weights in the Scene to an External File
      2. Name Each file with an Object Name

      I want to piggy back on C4D's Save Weights (under the Weight Manager) with the c4d.CallCommand(1028186)
      The problem is I don't know how to perform the naming of each file.
      When I execute c4d.CallCommand(1028186), I have no access to the Save Dialog.

      Is there a way around this? Or should I just create my own weight saver (ouch)?

      Thank you for looking at my problem.

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by

        Hello,

        it's not possible to bypass that dialogbox or set a filename.
        Using CallCommand is like a user pressing a button in the UI, so if you have a DialogBox, you are blocked and you must use something else.

        It is possible to retrieve all the weight for all joints.

        some doc that could help you :

        • the weight manager
        • the weight manager c++ manual
        • the Weight Tag functions

        on the tag function you got the GetWeightMap that is interesting.

        You can export that to a binary format of you own or an xml, it's up to you.

        Cheers,
        Manuel.

        MAXON SDK Specialist

        MAXON Registered Developer

        1 Reply Last reply Reply Quote 2
        • B
          bentraje
          last edited by

          @m_magalhaes

          Thanks for the confirmation.

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