it is possible that because i had already an object name like that the new object name took the same name.+ 001
and the rotation was applied to the first old object
it looks that the old object was not rename and kept it’s original name
the new object took the new name as such but a number was also adde to it
like name = spiral and in blender it became spiral…001
but in the script i already had the name spiral not spiral.001 so it could not find it !
but is there a way to give to an object an absolute name with no chang ein blender like adding number to it or how do ig et the real name given in blender so i can change the spec of the added object ?
another thing here is if you have 2 objects with same name let say
spriral and spira.001 and you delete spiral then copy the spiral.001 it won’t take the name spiral.002 it will take the name spiral again !
so that complicate things a little
thanks for the help