Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- All effects are sent with the bool flag set to "false". This will add the effect with your
- settings, but it will not enable it. If you want to enable the effect, change "false" to
- "true" before sending your command.
- If you want to add the effect first and then enable the effect with a separate command,
- you can modify the curl.
- The example below shows the two calls required to add the effect, and then the
- modified version that can be sent to enable the effect. As with the full curl, the
- second one can be set to true or false to toggle the state of the effect.
- I have not figured out how to enable multiple effects individually yet.
- Effects Presets are located at the bottom of this document.
- To apply an effect to a specific layer, replace /workspace with /layer/0.
- ////////////////////////
- || ||
- || Effects Examples ||
- || ||
- ////////////////////////
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0,
- "max_value" : 3.1415927410125732,
- "min_value" : -3.1415927410125732,
- "name" : "Hue"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 2,
- "min_value" : 0,
- "name" : "Saturation"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0,
- "max_value" : 1,
- "min_value" : -1,
- "name" : "Brightness"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 2,
- "min_value" : 0,
- "name" : "Contrast"
- }
- }
- ],
- "enabled" : false,
- "name" : "Adjust Color",
- "uuid" : "D4C199A9-64D7-4CCB-8C26-443E7A9C5C03"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "enabled" : true,
- "name" : "Adjust Color",
- "uuid" : "D4C199A9-64D7-4CCB-8C26-443E7A9C5C03"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- ///////////////
- || ||
- || Effects ||
- || ||
- ///////////////
- "Adjust Color"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0,
- "max_value" : 3.1415927410125732,
- "min_value" : -3.1415927410125732,
- "name" : "Hue"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 2,
- "min_value" : 0,
- "name" : "Saturation"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0,
- "max_value" : 1,
- "min_value" : -1,
- "name" : "Brightness"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 2,
- "min_value" : 0,
- "name" : "Contrast"
- }
- }
- ],
- "enabled" : false,
- "name" : "Adjust Color",
- "uuid" : "D4C199A9-64D7-4CCB-8C26-443E7A9C5C03"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Blur"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Blur Amount"
- }
- }
- ],
- "enabled" : false,
- "name" : "Blur",
- "uuid" : "D84CE4A3-D1C3-4F7C-AA75-4C645A3621F2"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Color Filter"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Color",
- "base" : {
- "name" : "Blend Color",
- "color" : "#6C6C6C"
- }
- }
- ],
- "enabled" : false,
- "name" : "Color Filter",
- "uuid" : "85A535EF-4EFC-4105-B8C7-C65C53376B87"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Color Invert"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- ],
- "enabled" : false,
- "name" : "Color Invert",
- "uuid" : "EDF55F11-1A1E-4BF3-9718-FA2D3731626D"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Color Key"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Color",
- "base" : {
- "name" : "Color",
- "color" : "#6C6C6C"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0.0099999997764825821,
- "name" : "Tolerance"
- }
- }
- ],
- "enabled" : false,
- "name" : "Color Key",
- "uuid" : "469387A2-681A-458E-9414-DAB953C1564F"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Color Posterize"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 7,
- "max_value" : 14,
- "min_value" : 1,
- "name" : "Number of colors"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1.1000000238418579,
- "min_value" : 0.10000000149011612,
- "name" : "Gamma"
- }
- }
- ],
- "enabled" : false,
- "name" : "Color Posterize",
- "uuid" : "F888F8FF-605A-4B2E-A20D-6FFA7C3E6E00"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Color Swap"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0.0099999997764825821,
- "name" : "Tolerance"
- }
- },
- {
- "type" : "Color",
- "base" : {
- "name" : "Old Color",
- "color" : "#6C6C6C"
- }
- },
- {
- "type" : "Color",
- "base" : {
- "name" : "New Color",
- "color" : "#6C6C6C"
- }
- }
- ],
- "enabled" : false,
- "name" : "Color Swap",
- "uuid" : "7511AE15-3C2D-4840-BD66-DDC0C4A3DABE"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "CRT Monitor"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 1.2000000476837158,
- "max_value" : 1.7000000476837158,
- "min_value" : 0.5,
- "name" : "Strength"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 3,
- "max_value" : 5,
- "min_value" : 1.5,
- "name" : "Pixel Size"
- }
- }
- ],
- "enabled" : false,
- "name" : "CRT Monitor",
- "uuid" : "0AD74569-93D8-4849-8E07-A05CCFB15620"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Dots"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Dot Strength"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Color Level"
- }
- }
- ],
- "enabled" : false,
- "name" : "Dots",
- "uuid" : "A6FD4AC9-6C4C-47C5-9FC0-AAD551C4642E"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Edge Blur"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Blur Amount"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.25,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Blur Radius"
- }
- }
- ],
- "enabled" : false,
- "name" : "Edge Blur",
- "uuid" : "AF83B133-D6A1-487C-BD9E-8579FA49B4E0"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Edge Outline"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Outline Amount"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Color Level"
- }
- }
- ],
- "enabled" : false,
- "name" : "Edge Outline",
- "uuid" : "86BA6E3E-358F-4DA2-93C4-6A2C0EC831DA"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Emboss"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Light X"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Light Y"
- }
- }
- ],
- "enabled" : false,
- "name" : "Emboss",
- "uuid" : "D2C1718A-571B-4844-BD72-7C13193E8F26"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Gray Invert"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- ],
- "enabled" : false,
- "name" : "Gray Invert",
- "uuid" : "4FDA3849-C39D-4269-AADA-B963944900B7"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Halftone"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Sharpness"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 2,
- "min_value" : 0,
- "name" : "Gray Components"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Color Removal"
- }
- }
- ],
- "enabled" : false,
- "name" : "Halftone",
- "uuid" : "ADF80D5E-FD27-47BD-AFA6-8D4167364567"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Heat Signature"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- ],
- "enabled" : false,
- "name" : "Heat Signature",
- "uuid" : "F3F254AF-BF83-412D-B802-51E42A25FDF9"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Hexagon"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 50,
- "max_value" : 100,
- "min_value" : 10,
- "name" : "Hexagon Size"
- }
- }
- ],
- "enabled" : false,
- "name" : "Hexagon",
- "uuid" : "690831F6-A8A4-4B70-9AEB-E9A5E7FBDF63"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Image Distortion"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 1.5,
- "max_value" : 2,
- "min_value" : 1,
- "name" : "Scale"
- }
- }
- ],
- "enabled" : false,
- "name" : "Image Distortion",
- "uuid" : "8A0F0EB7-1F75-484B-8367-C390D94EA6C0"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Kaleidoscope 1"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Speed"
- }
- },
- {
- "type" : "Int",
- "base" : {
- "value" : 7,
- "max_value" : 20,
- "min_value" : 2,
- "name" : "Sides"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0,
- "max_value" : 1,
- "min_value" : -1,
- "name" : "Center X"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0,
- "max_value" : 1,
- "min_value" : -1,
- "name" : "Center Y"
- }
- }
- ],
- "enabled" : false,
- "name" : "Kaleidoscope 1",
- "uuid" : "17A42D1F-BC36-48D6-B9F6-110CB3AA93F9"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Kaleidoscope 2"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Speed"
- }
- },
- {
- "type" : "Int",
- "base" : {
- "value" : 7,
- "max_value" : 20,
- "min_value" : 4,
- "name" : "Sides"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0,
- "max_value" : 1,
- "min_value" : -1,
- "name" : "Center X"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0,
- "max_value" : 1,
- "min_value" : -1,
- "name" : "Center Y"
- }
- }
- ],
- "enabled" : false,
- "name" : "Kaleidoscope 2",
- "uuid" : "47BAC53A-761B-478D-AC74-2CA7A8CFB7D5"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Lens Distortion"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 2,
- "min_value" : 0,
- "name" : "Lens Size"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 2,
- "min_value" : 0,
- "name" : "Color Distortion"
- }
- }
- ],
- "enabled" : false,
- "name" : "Lens Distortion",
- "uuid" : "291C7C20-07C5-42D2-92C9-45C173D69898"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Old Film"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Sepia Effect"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Noise Level"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Scratches"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Vignette"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Frequency"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.019999999552965164,
- "max_value" : 0.20000000298023224,
- "min_value" : 0,
- "name" : "Intensity"
- }
- }
- ],
- "enabled" : false,
- "name" : "Old Film",
- "uuid" : "18CB8C8C-F23D-44B0-98BE-ECEB22B29D35"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Picasso"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Animate"
- }
- }
- ],
- "enabled" : false,
- "name" : "Picasso",
- "uuid" : "9A5ED7A4-8339-43C2-BABB-180AC20D4C07"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Pixelize"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0.0099999997764825821,
- "name" : "Pixel Size"
- }
- }
- ],
- "enabled" : false,
- "name" : "Pixelize",
- "uuid" : "54E8E7F0-2302-4CBE-A63D-02D56915A79A"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Plasma"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0.0099999997764825821,
- "name" : "Blend Amount"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0.0099999997764825821,
- "name" : "Speed"
- }
- }
- ],
- "enabled" : false,
- "name" : "Plasma",
- "uuid" : "E19D17CE-03B7-4C58-BD56-FF79C6875651"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Radial Blur"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0.0099999997764825821,
- "name" : "Blend Amount"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0.0099999997764825821,
- "name" : "Speed"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 10,
- "max_value" : 24,
- "min_value" : 4,
- "name" : "Iterations"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.97000002861022949,
- "max_value" : 1.0499999523162842,
- "min_value" : 0.80000001192092896,
- "name" : "Decay"
- }
- }
- ],
- "enabled" : false,
- "name" : "Radial Blur",
- "uuid" : "6BC757C8-3F76-4E7E-885A-7A7C944465A5"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "RGB Adjust"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Red"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Green"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Blue"
- }
- }
- ],
- "enabled" : false,
- "name" : "RGB Adjust",
- "uuid" : "453B8725-AAB6-427A-8FCE-570B8AB52790"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Ripple Center"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 2,
- "min_value" : 0,
- "name" : "Speed"
- }
- }
- ],
- "enabled" : false,
- "name" : "Ripple Center",
- "uuid" : "D0C7FA30-C4D6-4F6D-86D9-CA27099D56EC"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Ripple Side"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 2,
- "min_value" : 0,
- "name" : "Speed"
- }
- }
- ],
- "enabled" : false,
- "name" : "Ripple Side",
- "uuid" : "2A34B3FB-0AC5-4C7D-B07E-05FE83D796B4"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Sepia"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- ],
- "enabled" : false,
- "name" : "Sepia",
- "uuid" : "06157C8E-D971-4F06-9ECA-2663664E22A6"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Shake"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Frequency"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Intensity"
- }
- }
- ],
- "enabled" : false,
- "name" : "Shake",
- "uuid" : "5472C6A3-59A0-4ED5-AE13-0059E2D185C9"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Stars"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 10,
- "max_value" : 20,
- "min_value" : 0,
- "name" : "Speed"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Blend"
- }
- }
- ],
- "enabled" : false,
- "name" : "Stars",
- "uuid" : "55BB6AA1-9133-4CE4-991B-7BF5149E6834"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Strobe"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Frequency"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.05000000074505806,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Length"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Blend"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Randomness"
- }
- },
- {
- "type" : "Color",
- "base" : {
- "name" : "Color",
- "color" : "#FFFEFE"
- }
- }
- ],
- "enabled" : false,
- "name" : "Strobe",
- "uuid" : "DA373B28-6AD6-499D-8AD4-11E2ADC73475"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Tile"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 1,
- "max_value" : 32,
- "min_value" : 1,
- "name" : "Cells"
- }
- },
- {
- "type" : "Int",
- "base" : {
- "value" : 1,
- "max_value" : 20,
- "min_value" : 0,
- "name" : "Grid Size"
- }
- }
- ],
- "enabled" : false,
- "name" : "Tile",
- "uuid" : "4FF40112-9D47-43BA-A381-B685D13F5A89"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Toon"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Int",
- "base" : {
- "value" : 8,
- "max_value" : 16,
- "min_value" : 1,
- "name" : "Number of colors"
- }
- },
- {
- "type" : "Float",
- "base" : {
- "value" : 0.5,
- "max_value" : 1,
- "min_value" : 0,
- "name" : "Saturation"
- }
- }
- ],
- "enabled" : false,
- "name" : "Toon",
- "uuid" : "3A7A9FFF-F027-4EFD-94CC-429A491485C7"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Two Color"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Color",
- "base" : {
- "name" : "Dark Color",
- "color" : "#000000"
- }
- },
- {
- "type" : "Color",
- "base" : {
- "name" : "Bright Color",
- "color" : "#FFFEFE"
- }
- }
- ],
- "enabled" : false,
- "name" : "Two Color",
- "uuid" : "258D3830-8496-4712-AAAE-A68BCA23D805"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- "Vignette"
- curl -XPOST -H "Content-type: application/json" -d '{
- "effect" : {
- "variables" : [
- {
- "type" : "Float",
- "base" : {
- "value" : 50,
- "max_value" : 100,
- "min_value" : 0,
- "name" : "Radius"
- }
- }
- ],
- "enabled" : false,
- "name" : "Vignette",
- "uuid" : "42E83016-41DC-43AB-8061-9A93256DDA46"
- }
- }' 'http://localhost:8080/api/0/effects/workspace'
- //////////////////////
- || ||
- || Effects Presets ||
- || ||
- //////////////////////
- Replace "NameOfEffectsPreset" with the name of your Effects Present. Included effects
- will have their enabled/disabled state from when the preset was saved.
- curl -XPOST -H "Content-type: application/json" -d '{
- "value" : "NameOfEffectsPreset"
- }' 'http://localhost:8080/api/0/effectsPreset/workspace'
- ////////////////////////////
- || ||
- || Clear Effects Presets ||
- || ||
- ///////////////////////////
- curl -XPOST -H "Content-type: application/json" -d '{
- "value": "Clear Effects",
- }' 'http://localhost:8080/api/0/effectsPreset/layer/0'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement