Advertisement
chrisrouse

PVP 3 API - Layer Presets (Complete)

Jun 5th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. This document contains completed API calls for PVP 3. These are meant to be used with any application or site that can send HTTP requests. They are not structured for HTTPS requests. You will need to modify the commands if you require HTTPS. You will also need to replace "8080" if you change the port in PVP 3.
  2.  
  3. These requests are used to recall effects presets. They use the name of the preset. "75% Saturation" is an example that I had on my computer. Change the name, but keep the quotes. To remove a preset, use the
  4.  
  5.  
  6. ///////////////////////////
  7. || ||
  8. || Select Layer Preset ||
  9. || ||
  10. ///////////////////////////
  11.  
  12.  
  13. Replace "exampleLayerPresetName" with the name of your preset.
  14. Update the layer index "0" with your index, UUID, or layer name.
  15.  
  16. curl -XPOST -H "Content-type: application/json" -d '{
  17. "value": "75% Saturation",
  18. }' 'http://localhost:8080/api/0/layerPreset/layer/0'
  19.  
  20.  
  21.  
  22.  
  23. //////////////////////////
  24. || ||
  25. || Clear Layer Preset ||
  26. || ||
  27. /////////////////////////
  28.  
  29.  
  30. curl -XPOST -H "Content-type: application/json" -d '{
  31. "value" : "Unlink Preset"
  32. }' 'http://localhost:8080/api/0/effectsPreset/workspace'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement