Source: Nestorprado Tumblr


Transferring normals information from one object to another is simple enough. Just go to Mesh → Transfer Attributes → Option Box and using the default options choose Component for the Sample space in the settings tab. However, what happens when you want to transfer the normals information from one object to multiple? Using the script below by Nestor Prado, all you have to do is select the source object (with the correct UV's) and then select all the objects you want to apply the correct normals to and run the below script.

import maya.cmds as cm

#grab all the selected objects

selectedObjects = cm.ls(sl=True)

#save first one into variable

#pop first one out of the selected objects list

driver = selectedObjects.pop(0)

#for each object in the selected objects list

for object in selectedObjects:

    cm.select([driver,object])

    #transfer attributes

    cm.transferAttributes(sampleSpace=4,transferUVs=2, transferColors=2 )

The Result

Before

Before

After

After