@noUIupdate

@noUIupdate:

Decorator to mark a function as non-UI updating.
By decorating a function with @noUIupdate: the function
will be executed on the UI thread thus preventing UI updates.

@example:
# mark setAttributes() to run faster without UI updates.
@noUIupdate
def setAttributes():
	for shape in ce.getObjectsFrom(ce.selection, ce.isShape):
		ce.setAttribute(shape, 'height', 15)

if __name__ == '__main__':
	setAttributes()

在本主题中