@chuanzhen said in Weight Manager Window access help:
1: Why drag a weight manager Dialog parameter to the console, the resulting WeightManager is a BaseList2D
2: Is there a way to access the opened Dialog and modify its parameters (such as modifying values, CallButton, etc.)
The dialog box doesn't store the values; it's done somewhere else. Just like the SnapSettings or the ModelingSettings.
That's why you retrieve a BaseList2D.
But the point is that we have an API to access those parameters and commands. The weight manager is just a UI calling the same functions.
As i pointed, you also have the c++ manual and the documentation
You have GetParameter, SetParameter, all function to apply weight and thing like that.
Do you have anything you can't do with the API ? (maybe we could add it)
Any other way to retrieve parameter should be considered as a "hack". I'm not saying hacks are bad, but they are, if there's an API that does the job.
On the thread I linked, you have this example :
c4d.modules.character.CAWeightMgr.SetParameter(doc, c4d.ID_CA_WEIGHT_MGR_ENABLE_DISPLAY, True)
if you want to retrieve the mode of the Commands :
c4d.modules.character.CAWeightMgr.GetParameter(doc, c4d.ID_CA_WEIGHT_MGR_WEIGHT_MODE)
As I said, it's a static class that will know where to go, in order to retrieve the datas.
Once again, if there's something you can't do with the api let us know, maybe i missed a point here.
Cheers,
Manuel