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


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.


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 :

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.


MAXON SDK Specialist

MAXON Registered Developer


Thanks for the confirmation.