Crashing when baking too many objects ?

Hi,

I have a scene with 200+ objetcs to bake. If I take all the scene or too many objects (very inconsistant) it crashes.
My workaround is to take few objects (10 max) and bake… veeeeeeeeryy long and not efficient at all !

Last time it crashed at “dilation” phase.

Known issue ?

MX OS 10,7,5
Unity PRO 4,0,1f4

If it’s crashing when doing that all in one go, how about a for loop?

Please test this first in a saved scene, I don’t have the time to!

import maya.cmds as cmds

items = cmds.ls(sl = True)
for i in items:
    cmds.bakeResults(i, simulation = True, time = (1, 15), sampleBy = 1, disableImplicitControl = True, preserveOutsideKeys = True, sparseAnimCurveBake = False, removeBakedAttributeFromLayer = False, bakeOnOverrideLayer = False, controlPoints = False, shape = True)

I’m sure you can figure how to change the settings as most are bools, and time = (1, 15) means it’ll run from frame 1 to 15.

Thx Vire, but are we talking about the same thing ? Maybe I did not express myself well enough. I talk about lightmaps baking.

Few minutes ago it crashed again. A selection of 16 objects of bake. At the “Edge Dilation Filter” step.

Ah oops, I didn’t read properly my bad. I thought you meant animation baking… still new to games and didn’t consider it :slight_smile:

Up. Some nice dev working on Sunday ?? :slight_smile:

Bump : case 538680

Any dev support available ?