Dashboard_avatar
Apr 23, 2012
Post id: 309953 Report Item

Example, we create a sphere using polySphere creating polySphere1. then we duplicate it (Ctrl + D) creating polySphere2 and change its transform. Now I traverse all meshes in the scene and want to find how they were created. For polySphere1 it’s easy as I can get to the original node using inMesh attribute but polySphere2 doesn’t have any input connections and any additional parents. How can I retrieve the parameters of the sphere it was created using Python?

Thanks!

Dashboard_avatar
Apr 24, 2012
Post id: 309955 Report Item

>> How can I retrieve the parameters of the sphere it was created using Python?

you can not, once the constuction history is gone its gone. This doesent mean you cant do a guess but theres no way to be sure.

Dont double post, mel and python have indentical constraints so th aswer would be the same.

Dashboard_avatar
Jul 03, 2012
Post id: 310267 Report Item

When you duplicate the original sphere, you can choose to duplicate the incoming connections as well. This will leave you with a clone of the first sphere with the ability to modify it's properties.

Take a look at Duplicate Special Options.