Weight Manager UI Not Updating Immediately After Locking Joints via API?
-
Hello everyone,
I've encountered an issue where the Weight Manager UI doesn't update immediately after using the API to lock joints.
Specifically, when I use thec4d.modules.character.CAWeightMgr.LockAllJoints(doc)
or
c4d.modules.character.CAWeightMgr.LockSelectedJoints(doc)
functions, the joints are indeed locked internally, meaning I can no longer paint weights on them. However, the lock icon in the Weight Manager UI remains in the "unlocked" state, not reflecting the actual locked status. Even after switching windows or reopening the Weight Manager, the UI still shows them as unlocked.
I've tried calling c4d.EventAdd() after the lock operation, as well as CAWeightMgr.SetDirty(doc) and CAWeightMgr.Update(doc) before c4d.EventAdd(), but the UI still doesn't refresh to show the correct locked state.Is there a specific method or command to force the Weight Manager UI to instantly update its display of the joint lock status?
Any insights or solutions would be greatly appreciated.
Thank you!import c4d from c4d.modules.character import CAWeightMgr CAWeightMgr.LockAllJoints(doc) # lock all joints c4d.EventAdd()
-
Hey @Oliver,
Thank you for reaching out to us. This is a known bug, but currently only listed in our internal tracker as
ITEM#249775 CAWeightMgr.UnlockAllJoints/LockSelectedJoints locked icon do not refresh
. I have moved this topic into bugs, and gave the internal issue a little nudge.There is unfortunately no workaround for you, as this is not just an update issue, i.e., closing and reopening the Weight Manager won't help and deselecting and reselecting bones will neither.
Cheers,
Ferdinand -
F ferdinand moved this topic from Cinema 4D SDK on
-
@ferdinand Got it, thanks for the heads-up!