AnsweredAssumed Answered

Can I prevent automatic model generation when changing user attributes with python?

Question asked by raze on Mar 29, 2016
Latest reply on Mar 30, 2016 by raze

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)