Hi Maxime, thank you for the reply.
I forgot to write that the code is executed after pressing a button. Last year in the old forum we talked about the fact that it was safe to create a new object while managing the pressure of a button.
I really hope this feature will not be removed in the future.
This is the old thread:
At this point to obtain the result I want, do I still need to use c4d.AliasTrans?
If yes, I'm going to try it somehow.
Just tried now…
It seems to work perfectly!
I don't want to boring you, but, please, don't disable this super feature in python. Instead you could update the documentation specifying well how to use it.
I have the following problem in making a copy of a bend deformer that has a box field as a child and the same box field inserted in its field list as you can see in the picture.
Using the pyhon tag to make a copy of the bend deformer I get a different result from one obtained by running the command in Tools/Arrange Objects/Duplicate or even with a simple Drag and Drop.
I would like to have the same latter results using the python code.
Precisely happens that the copy made with the python code results in having in the Field list the Box Field of the previous Bend and not the duplicated one.
How can I solve the problem?
This is the code used for make and insert a copy:
last = op.GetObject().GetDownLast()
new_object = last.GetClone(c4d.COPYFLAGS_NO_ANIMATION)
The start point
The Control Drag result
The Python code result