Placing particles on shattered objects

I need some help with shattered objects please. I need to place a particle at the centre of each shattered piece but none of them have any xform positions, so they are displaying 0, 0, 0. I think this is because I have to delete all the construstion history before shattering my objects. Obviously I can't place all the particles at world 0, 0, 0 because that is not where my shard objects are. How do I keep/reassign world space variables to my shard objects before placing the particles please?

Ps if anyone can help Python is ideal but MEL can always be translated, Thanks

Ok so I half figured out what to do.

Because the translations were all set to 0, 0, 0 for each shard I used the rotate Pivot.

for a in nodeList:
 
	pos = cmds.xform(a, q=True, ws=True, rp=True)
 
	cmds.emit(o="wall_PTL", pos=(pos[0], pos[1], pos[2]))
	cmds.saveInitialState("wall_PTL")

So now that I have that working it adds a point to each shard just as I wanted.

The only issue now is when I add the shard shapes as instances they are set off in the X axis and are all the same shard shape instead of being different.