Discuss any general programming issues here
- Posts: 825
- Joined: Sun Feb 14, 2010 7:11 pm
As i couldnt find any "CopyLayer" command. I was wondering if this would be a safe way to do it:
Code: Select all
newlayerid = InsertLayer(0, #BRUSH, 1, 1, 1)
t = GetLayerStyle(layertobecopiedID)
Or do i have to take something into consideration, like is there some piece of information missing from layerstyle infos?
- Posts: 3208
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
Hmm, interesting approach. I'm not sure it will work 100% for all layer types, though, although in theory it should. If you have a case where it doesn't work, just post.