I need to export multiple objects from Illustrator to individual
.png files. The objects are different in size.
I know this is easily done from Inkscape, but Illustrator seems to produce nicer images.
What is the routine to do it?
are they all in one document? if so, you could create multiple artboards and place each object in it's own artboard. then do file / export, choose format:png and check the box for "use artboards". this will export each artboard to it's own png file.
or you can try exporting layers directly using this script (I have not tested it).