I'm having a problem where textures come out stretched/shrunk vertically, when I try to bake LightingMap for multiple objects at once, when the output size is set differently on each object. I do this by selecting all the object and calling:
render rendertype:#bakeSelected
I set the output size by doing this:
map = LightingMap()
map.outputSzX = size
map.outputSzY = size
obj.INodeBakeProperties.addBakeElement map
obj.INodeBakeProperties.activeWidth = size
obj.INodeBakeProperties.activeHeight = size
where [size] changes from one object to another.