kilianc / adobe-generator

The missing link
3 stars 0 forks source link

Investigate behavior on layer/group to smartobject #58

Closed kilianc closed 11 years ago

kilianc commented 11 years ago

Does it create a new layer? In this case the old layerId is gone and we have to act like a layer delete+create.

kilianc commented 11 years ago

Actual doc id is 35

//convert to smart object
layerAdded 44,5 // guessing new temp document background layer
layerAdded 44,4 // guessing new temp document selected layer
layerAdded 35,4     // added smart object
layerRemoved 35,3   // removed old layer

// opening the smart object
currentDocumentChanged 47 // id different from the one

// moving the layer
layerChangedPosition 47,4
layerChangedPosition 47,4
layerChangedPosition 47,4
layerChangedPosition 47,4

// saved smart object, no notification

currentDocumentChanged 35 // close smart object
currentDocumentChanged 47 // reopening, same id as beofore

// moving the layer
layerChangedPosition 47,4
layerChangedPosition 47,4
kilianc commented 11 years ago

So, when we will get the save event, we will be able to update the smart object bitmap representation. That's what we're going to support for 1.5.

But we could use smartobject like library objects with a css class in the very near future.