If I can't use the DBP logo in mine, just give me a sign.
Hello everyone!
Here I am with a new plugin.
What is LayerStudio?
LayerStudio is a plugin where you can create layer files, add layers, and manipulate them. You can then render the layer files to an image to use within DBP.
How does LayerStudio work?
LayerStudio uses an internal data system to increase speed. A lot of parameters aren't used until the actual render to delay the lag inbetween commands.
Features
LayerStudio supports these current features:
-
Layer manipulation
You can add, delete and move layers whenever you want. Layers also contain information like alpha and blend modes.
-
Edit layers
Use 2D commands (that resemble the DBP-commands) or paste images on layers. You can also use a blend mode and an alpha for these commands.
-
Effects
Use a convolution matrix to add cool effects to your layers. Like your own blur, emboss, etc.
More effects to come.
-
Use a temporary directory
To avoid using alot of RAM, you can write the layer file to the hard disk and free your precious RAM memory.
Examples
This image consists of 1 layer. I started out by a gradient fill using the line command and pasted the particles on the same layer using the DIFFERENCE blend mode and random alpha. (Image from barista.media2.org)
This image is to show what you can do with a convolution matrix using an emboss preset:
0 0 0 0 0
0 2 1 0 0
0 1 1 -1 0
0 0 -1 -2 0
0 0 0 0 0
Offset: 0
Divisor: 1
Image from TheGIMP website.
Current commands:
NewNr = ADD LAYER FILE(Width, Height)
DELETE LAYER FILE File
NewNr = ADD LAYER(File)
DELETE LAYER File, Layer
LAYER INK Color
SET CURRENT FILE File
SET CURRENT LAYER Layer
SET CURRENT MODE Mode
SET CURRENT ALPHA Alpha
SET LAYER MODE Mode|[Layer,] Mode|[File,] Layer, Mode
SET LAYER ALPHA Alpha|[Layer,] Alpha|[File,] Layer, Alpha
SWAP LAYERS Layer 1, Layer 2|[File,] Layer 1, Layer 2
MOVE LAYER Layer, Position|[File,] Layer, Position
LayerAlpha = GET LAYER ALPHA(Layer|[File,] Layer)
LayerMode = GET LAYER MODE(Layer|[File,] Layer)
LayerCount = GET LAYER COUNT([File])
width = GET FILE WIDTH(File)
height = GET FILE HEIGHT(File)
LAYER DOT X, Y|[Layer,] X, Y|[File,] Layer, X, Y
LAYER BOX Left, Top, Right, Bottom|[Layer,] Left, Top, Right, Bottom|[File,] Layer, Left, Top, Right, Bottom
LAYER CIRCLE X, Y, Radius|[Layer,] X, Y, Radius|[File,] Layer, X, Y, Radius
LAYER LINE X1, Y1, X2, Y2|[Layer,] X1, Y1, X2, Y2|[File,] Layer, X1, Y1, X2, Y2
LAYER PASTE IMAGE Image, X, Y|[Layer,] Image, X, Y|[File,] Layer, Image, X, Y
RENDER FILE Image|[File,] Image
RENDER PART Image, Left, Top, Right, Bottom|[File,] Image, Left, Top, Right, Bottom
TempDir = GET TEMP DIRECTORY()
SET TEMP DIRECTORY TemporaryDir
WRITE FILE TO TEMP File
READ FILE FROM TEMP File
APPLY CONVOLUTION MATRIX [Layer]|[File,] Layer
APPLY CONVOLUTION MATRIX PART Left, Top, Right, Bottom|[Layer,] Left, Top, Right, Bottom|[File,] Layer, Left, Top, Right, Bottom
SET CONVOLUTION VALUE X, Y, Value
SET CONVOLUTION OFFSET Offset
SET CONVOLUTION DIVISOR Divisor
SET CONVOLUTION BORDER MODE BorderMode
ADD MASK Layer|[File,] Layer
DELETE MASK Layer|[File,] Layer
MaskExist = MASK EXIST(Layer|[File,] Layer)
MASK DOT X, Y | [Layer,] X, Y | [File,] Layer, X, Y
MASK BOX Left, Top, Right, Bottom | [Layer,] Left, Top, Right, Bottom | [File,] Layer, Left, Top, Right, Bottom
MASK CIRCLE X, Y, Radius | [Layer,] X, Y, Radius | [File,] Layer, X, Y, Radius
MASK LINE X1, Y1, X2, Y2 | [Layer,] X1, Y1, X2, Y2 | [File,] Layer, X1, Y1, X2, Y2
MASK PASTE IMAGE Image, X, Y | [Layer,] Image, X, Y | [File,] Layer, Image, X, Y
Attached:
LayerStudio v1.0 - 19 oct. 2008
LayerStudio v1.001 - 21 oct. 2008
LayerStudio v1.002 - 10 nov. 2008
It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.