@@ -0,0 +1,502 @@
+import pymel.core as pm%0A%0A# Select top group node. Run the following.It will generate a locator.%0A# Send to the current group pivot position.%0A# You can position the locator where you want to represent the final pivot position.%0AcurSel = pm.ls(sl=True,type='transform')%0Atrans = pm.xform(curSel%5B0%5D,ws=1,piv=1,q=1)%0Arot = pm.xform(curSel,ws=1,ro=1,q=1)%0Ascl = pm.xform(curSel,ws=1,s=1,q=1)%0AlocNd = pm.spaceLocator(n=(curSel%5B0%5D+'_LOC'),p=(0,0,0))%0Apm.xform(locNd,s=scl,t=(trans%5B0%5D,trans%5B1%5D,trans%5B2%5D),ro=rot)%0A%0A# %0A

Create af_assemblyPrep.py