Closed GoogleCodeExporter closed 9 years ago
As reported by mdfisher272 on github, in issue #14, can also get a similar
error with:
import pymel.core as pm
trans = pm.polySphere()[0]
shape = trans.getShape()
shape.rename(trans.nodeName())
pm.duplicate(trans)
The basic issue here is the same - that there's no flag to duplicate to make
sure we get back node names we can actually use to identify the nodes created.
Only good way is to get a 'fullPath' option for duplicate from Autodesk... as a
workaround, could try to install a callback to track all newly-created nodes,
and then match those against the node-names returned. However, it's easy to
think of situations in which we could have multiple new nodes with the same
name, so figuring out which one is "supposed" to be returned could be tricky.
Original comment by elron...@gmail.com
on 17 Jul 2012 at 5:00
Fixed in
https://github.com/LumaPictures/pymel/commit/c1157d1f41c3d17cf774ed3dcf5542c584f
b3496
Original comment by elron...@gmail.com
on 17 Jan 2014 at 6:21
Original issue reported on code.google.com by
elron...@gmail.com
on 5 Jan 2011 at 8:36