I'm trying to change an attribute in a bunch of shapes and then generate all the models at once after the shapes had their attribute set. However CE generates each model separately while running through the loop, resulting in a rather slow process. Can I somehow prevent this?
My code:
shapes = getObjectsFrom(ce.selection, ce.isShape)
for shape in shapes:
ce.setAttributeSource(shape, "/ce/rule/someAttribute", "USER")
ce.setAttribute(shape, "/ce/rule/someAttribute", "hello")
ce.generateModels(shapes, False, True)