I have designed a 3D model using different elements:
ParentObject-001.name = 'ParentObject-001';
ChildObjectA-001.name = 'ChildObjectA-001';
ChildObjectB-001.name = 'ChildObjectB-001';
Then, I combined them with:
ParentObject-001.add(ChildObject-001A, ChildObject-001B);
This functionality is working well as all parts rotate and adjust position along with the parent object.
Now, when I create a clone like this:
ParentObject-002=ParentObject.clone();
I get an identical copy, but:
ParentObject-002.name = 'ParentObject-001'
As expected, so...
ParentObject-002.name='ParentObject-002';
Solves the issue.
However, I need to change the name of the child object under ParentObject-002 named ChildObjectA-001.
Is there a way to achieve this?
I attempted to access the child object for modification using:
ParentObject-002.ChildObjectA-001
and:
ParentObject-002[0]
But both returned 'undefined'.
I'm relatively new to this whole process... Have I missed a simpler solution?