R21.207 How to apply Reset Scale with compensating points to all selected objects?
Crea last edited by
Hi, devs. I'm working with a rigging model, and in some cases I have to scale it which will make the scale value not be 1 (Figure 1). And every child object's real scale value is changed.
Then I'm using Reset Scale( c4d. CallCommand(12317) )(Figure 2)
to solve this problem, but it can only solve them one by one selected.
Then I wrote a Python script to see if this would be applied by one click.
import c4d def main(): SelectedObjs = doc.GetActiveObjects(1) cnt = len(SelectedObjs) print SelectedObjs # to check whether objs can be read for obj in SelectedObjs: print obj # to check whether each obj can be read c4d.CallCommand(12317,0) if __name__=='__main__': main()
And it turned out that objects could be read indeed, but Reset Scale just didn't make effects to children objects.
Is there anyway can solve this Reset Scale problem? I didn't use freeze scale because I worried about errors happenning in interactions with like Xparticle, dynamics, simulations stuffs.
ferdinand last edited by ferdinand
thank you for reaching out to us. Unfortunately I am a bit slow again this morning, so I have trouble understanding your posting.
- What do you mean by a real scale value? The size of the bounding box of an object?
- It also not quite clear to me what you are trying to achieve:
a. Reset the scaling component of the transforms of the objects you did previously scale up.
b. Or so to speak "reset" the scaling of the children of these objects - so that they "take on" their original size, while the scaling and size of their parent remains modified?
- Your script seems to work fine for me, but then again I am not quite clear on what you are trying to do.
What confuses me the most is that the selected object in your screen is not in a child-parent relation and also the fact that scaling a parent will not change the relative transform of its children, i.e. their local matrix, i.e. what you are seeing the coordinates tab of the attribute manager.
Sorry for all the confusion, but we would apricate it if you would clarify some points.