17 Replies Latest reply on Nov 1, 2010 6:02 AM by Lichtzeichenanlage

    Problem updating snapshots

    Lichtzeichenanlage

      Hi,

       

      currently I am testing the photo:createDevelopSnapshot function. It's a no-brainer to create snapshots, but I am currently not able to update existing snapshots. Any idea?

       

       

       

      local function createDevelopSnapshot(photo, snapshotName, editCount)
           local success 
      
           catalog:withWriteAccessDo(LOC "$$$/lichtzeichenanlage/LZA_Execute/withWriteAccesDo=LZA_Execute.execute", function(context)
                success = photo:createDevelopSnapshot( snapshotName, true )
                
                if success then
                     local newEditCount = tonumber(editCount) + 1
                     photo:setPropertyForPlugin( _PLUGIN, 'LZA_VC2SNAP_editCount', tostring(newEditCount))
                end
           end)
           
           return success
      end
      
       
      

       

      I run this on virtual copies

       

      rgds - wilko