Jump to content

"layerstate-save" can't overwrite the layer state?


AIberto

Recommended Posts

Hi all

 

I use

 (layerstate-save "layer_color" nil nil)

save the layer state.

 

next, I change the layer color

use

 (layerstate-save "layer_color" nil nil)

again.

 

then,restore.

(layerstate-restore "layer_color" nil nil)

 

I found

"layerstate-save" can't overwrite the layer state.

Link to comment
Share on other sites

I would simply use the Layer States Manager. You could check to see if it's a member of (layerstate-getnames) or just use (layerstate-delete "layer_color") before (layerstate-save "layer_color" nil nil)

Link to comment
Share on other sites

I would simply use the Layer States Manager. You could check to see if it's a member of (layerstate-getnames) or just use (layerstate-delete "layer_color") before (layerstate-save "layer_color" nil nil)

 

Thank you tombu.

 

I used (layerstate-delete "layer_color") before (layerstate-save "layer_color" nil nil), :( Just only do this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...