gouzhun

@noUIupdate  does't work?!

Discussion created by gouzhun on Dec 4, 2011
Latest reply on Dec 14, 2011 by gouzhun
Why did the @noUIupdate function not work?
In my script ,I wanna export models one by one in each export progress,but the UI updated frequently.
@noUIupdate
def Export(shapes, Namestr):
    exportPath = ce.toFSPath("models/")
    exportSettings = A3DSExportModelSettings()
    #exportSettings.setGranularityFile(A3DSExportModelSettings.PER_INITIAL_SHAPE)
#        
    i=0
    Name=''    
    KML=''
    
    for shape in shapes:
        Name=Namestr+str(i)
        exportSettings.setGeneralLocation(exportPath)
        exportSettings.setGeneralName(Name)
        exportSettings.setMiscOptionsWriteExportLog(False)
        ce.export(shape, exportSettings)
        model=ce.getModelFromShape(shape)
        ce.delete(model)

Outcomes