Is there a python equivalent of Reset Scale With Compensate Points command?
Reset Scale With Compensate Points
Illustration of what it does:
P.S. There is an existing thread regarding the topic but its not resolved. Also its referring to a rig, which has complicated hierarchy. I'm only referring to ,
Hi @bentraje you cna use the SendModelingCommang with the MDATA_RESETSYSTEM_COMPENSATE flag. All settings are explained in Python MCOMAND page. So do to what you are aiming for, you should do:
def main() -> None:
settings = c4d.BaseContainer()
settings[c4d.MDATA_RESETSYSTEM_COMPENSATE] = True
settings[c4d.MDATA_RESETSYSTEM_RECURSIVE] = True
res = c4d.utils.SendModelingCommand(command=c4d.MCOMMAND_RESETSYSTEM,
if __name__ == '__main__':
Gotcha. Thanks for the response.
It works but I was kinda looking for the thought process on how to implement it.
Mainly because the command is only limited to scale. I was hoping I can modify it to include also rotation.