Advertisement
chrisrouse

PVP 3 API - Effects and Effects Presets

Dec 14th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.98 KB | None | 0 0
  1. All effects are sent with the bool flag set to "false". This will add the effect with your
  2. settings, but it will not enable it. If you want to enable the effect, change "false" to
  3. "true" before sending your command.
  4.  
  5. If you want to add the effect first and then enable the effect with a separate command,
  6. you can modify the curl.
  7.  
  8. The example below shows the two calls required to add the effect, and then the
  9. modified version that can be sent to enable the effect. As with the full curl, the
  10. second one can be set to true or false to toggle the state of the effect.
  11.  
  12. I have not figured out how to enable multiple effects individually yet.
  13.  
  14. Effects Presets are located at the bottom of this document.
  15.  
  16. To apply an effect to a specific layer, replace /workspace with /layer/0.
  17.  
  18. ////////////////////////
  19. || ||
  20. || Effects Examples ||
  21. || ||
  22. ////////////////////////
  23.  
  24.  
  25. curl -XPOST -H "Content-type: application/json" -d '{
  26. "effect" : {
  27. "variables" : [
  28. {
  29. "type" : "Float",
  30. "base" : {
  31. "value" : 0,
  32. "max_value" : 3.1415927410125732,
  33. "min_value" : -3.1415927410125732,
  34. "name" : "Hue"
  35. }
  36. },
  37. {
  38. "type" : "Float",
  39. "base" : {
  40. "value" : 1,
  41. "max_value" : 2,
  42. "min_value" : 0,
  43. "name" : "Saturation"
  44. }
  45. },
  46. {
  47. "type" : "Float",
  48. "base" : {
  49. "value" : 0,
  50. "max_value" : 1,
  51. "min_value" : -1,
  52. "name" : "Brightness"
  53. }
  54. },
  55. {
  56. "type" : "Float",
  57. "base" : {
  58. "value" : 1,
  59. "max_value" : 2,
  60. "min_value" : 0,
  61. "name" : "Contrast"
  62. }
  63. }
  64. ],
  65. "enabled" : false,
  66. "name" : "Adjust Color",
  67. "uuid" : "D4C199A9-64D7-4CCB-8C26-443E7A9C5C03"
  68.  
  69.  
  70. }
  71. }' 'http://localhost:8080/api/0/effects/workspace'
  72.  
  73.  
  74. curl -XPOST -H "Content-type: application/json" -d '{
  75. "effect" : {
  76. "enabled" : true,
  77. "name" : "Adjust Color",
  78. "uuid" : "D4C199A9-64D7-4CCB-8C26-443E7A9C5C03"
  79. }
  80. }' 'http://localhost:8080/api/0/effects/workspace'
  81.  
  82.  
  83. ///////////////
  84. || ||
  85. || Effects ||
  86. || ||
  87. ///////////////
  88.  
  89.  
  90. "Adjust Color"
  91.  
  92. curl -XPOST -H "Content-type: application/json" -d '{
  93. "effect" : {
  94. "variables" : [
  95. {
  96. "type" : "Float",
  97. "base" : {
  98. "value" : 0,
  99. "max_value" : 3.1415927410125732,
  100. "min_value" : -3.1415927410125732,
  101. "name" : "Hue"
  102. }
  103. },
  104. {
  105. "type" : "Float",
  106. "base" : {
  107. "value" : 1,
  108. "max_value" : 2,
  109. "min_value" : 0,
  110. "name" : "Saturation"
  111. }
  112. },
  113. {
  114. "type" : "Float",
  115. "base" : {
  116. "value" : 0,
  117. "max_value" : 1,
  118. "min_value" : -1,
  119. "name" : "Brightness"
  120. }
  121. },
  122. {
  123. "type" : "Float",
  124. "base" : {
  125. "value" : 1,
  126. "max_value" : 2,
  127. "min_value" : 0,
  128. "name" : "Contrast"
  129. }
  130. }
  131. ],
  132. "enabled" : false,
  133. "name" : "Adjust Color",
  134. "uuid" : "D4C199A9-64D7-4CCB-8C26-443E7A9C5C03"
  135. }
  136. }' 'http://localhost:8080/api/0/effects/workspace'
  137.  
  138.  
  139. "Blur"
  140.  
  141. curl -XPOST -H "Content-type: application/json" -d '{
  142. "effect" : {
  143. "variables" : [
  144. {
  145. "type" : "Float",
  146. "base" : {
  147. "value" : 0.5,
  148. "max_value" : 1,
  149. "min_value" : 0,
  150. "name" : "Blur Amount"
  151. }
  152. }
  153. ],
  154. "enabled" : false,
  155. "name" : "Blur",
  156. "uuid" : "D84CE4A3-D1C3-4F7C-AA75-4C645A3621F2"
  157. }
  158. }' 'http://localhost:8080/api/0/effects/workspace'
  159.  
  160.  
  161. "Color Filter"
  162.  
  163. curl -XPOST -H "Content-type: application/json" -d '{
  164. "effect" : {
  165. "variables" : [
  166. {
  167. "type" : "Color",
  168. "base" : {
  169. "name" : "Blend Color",
  170. "color" : "#6C6C6C"
  171. }
  172. }
  173. ],
  174. "enabled" : false,
  175. "name" : "Color Filter",
  176. "uuid" : "85A535EF-4EFC-4105-B8C7-C65C53376B87"
  177. }
  178. }' 'http://localhost:8080/api/0/effects/workspace'
  179.  
  180.  
  181. "Color Invert"
  182.  
  183. curl -XPOST -H "Content-type: application/json" -d '{
  184. "effect" : {
  185. "variables" : [
  186.  
  187. ],
  188. "enabled" : false,
  189. "name" : "Color Invert",
  190. "uuid" : "EDF55F11-1A1E-4BF3-9718-FA2D3731626D"
  191. }
  192. }' 'http://localhost:8080/api/0/effects/workspace'
  193.  
  194.  
  195. "Color Key"
  196.  
  197. curl -XPOST -H "Content-type: application/json" -d '{
  198. "effect" : {
  199. "variables" : [
  200. {
  201. "type" : "Color",
  202. "base" : {
  203. "name" : "Color",
  204. "color" : "#6C6C6C"
  205. }
  206. },
  207. {
  208. "type" : "Float",
  209. "base" : {
  210. "value" : 0.5,
  211. "max_value" : 1,
  212. "min_value" : 0.0099999997764825821,
  213. "name" : "Tolerance"
  214. }
  215. }
  216. ],
  217. "enabled" : false,
  218. "name" : "Color Key",
  219. "uuid" : "469387A2-681A-458E-9414-DAB953C1564F"
  220. }
  221. }' 'http://localhost:8080/api/0/effects/workspace'
  222.  
  223.  
  224. "Color Posterize"
  225.  
  226. curl -XPOST -H "Content-type: application/json" -d '{
  227. "effect" : {
  228. "variables" : [
  229. {
  230. "type" : "Float",
  231. "base" : {
  232. "value" : 7,
  233. "max_value" : 14,
  234. "min_value" : 1,
  235. "name" : "Number of colors"
  236. }
  237. },
  238. {
  239. "type" : "Float",
  240. "base" : {
  241. "value" : 0.5,
  242. "max_value" : 1.1000000238418579,
  243. "min_value" : 0.10000000149011612,
  244. "name" : "Gamma"
  245. }
  246. }
  247. ],
  248. "enabled" : false,
  249. "name" : "Color Posterize",
  250. "uuid" : "F888F8FF-605A-4B2E-A20D-6FFA7C3E6E00"
  251. }
  252. }' 'http://localhost:8080/api/0/effects/workspace'
  253.  
  254.  
  255. "Color Swap"
  256.  
  257. curl -XPOST -H "Content-type: application/json" -d '{
  258. "effect" : {
  259. "variables" : [
  260. {
  261. "type" : "Float",
  262. "base" : {
  263. "value" : 0.5,
  264. "max_value" : 1,
  265. "min_value" : 0.0099999997764825821,
  266. "name" : "Tolerance"
  267. }
  268. },
  269. {
  270. "type" : "Color",
  271. "base" : {
  272. "name" : "Old Color",
  273. "color" : "#6C6C6C"
  274. }
  275. },
  276. {
  277. "type" : "Color",
  278. "base" : {
  279. "name" : "New Color",
  280. "color" : "#6C6C6C"
  281. }
  282. }
  283. ],
  284. "enabled" : false,
  285. "name" : "Color Swap",
  286. "uuid" : "7511AE15-3C2D-4840-BD66-DDC0C4A3DABE"
  287. }
  288. }' 'http://localhost:8080/api/0/effects/workspace'
  289.  
  290.  
  291. "CRT Monitor"
  292.  
  293. curl -XPOST -H "Content-type: application/json" -d '{
  294. "effect" : {
  295. "variables" : [
  296. {
  297. "type" : "Float",
  298. "base" : {
  299. "value" : 1.2000000476837158,
  300. "max_value" : 1.7000000476837158,
  301. "min_value" : 0.5,
  302. "name" : "Strength"
  303. }
  304. },
  305. {
  306. "type" : "Float",
  307. "base" : {
  308. "value" : 3,
  309. "max_value" : 5,
  310. "min_value" : 1.5,
  311. "name" : "Pixel Size"
  312. }
  313. }
  314. ],
  315. "enabled" : false,
  316. "name" : "CRT Monitor",
  317. "uuid" : "0AD74569-93D8-4849-8E07-A05CCFB15620"
  318. }
  319. }' 'http://localhost:8080/api/0/effects/workspace'
  320.  
  321.  
  322. "Dots"
  323.  
  324. curl -XPOST -H "Content-type: application/json" -d '{
  325. "effect" : {
  326. "variables" : [
  327. {
  328. "type" : "Float",
  329. "base" : {
  330. "value" : 0.5,
  331. "max_value" : 1,
  332. "min_value" : 0,
  333. "name" : "Dot Strength"
  334. }
  335. },
  336. {
  337. "type" : "Float",
  338. "base" : {
  339. "value" : 0.5,
  340. "max_value" : 1,
  341. "min_value" : 0,
  342. "name" : "Color Level"
  343. }
  344. }
  345. ],
  346. "enabled" : false,
  347. "name" : "Dots",
  348. "uuid" : "A6FD4AC9-6C4C-47C5-9FC0-AAD551C4642E"
  349. }
  350. }' 'http://localhost:8080/api/0/effects/workspace'
  351.  
  352.  
  353. "Edge Blur"
  354.  
  355. curl -XPOST -H "Content-type: application/json" -d '{
  356. "effect" : {
  357. "variables" : [
  358. {
  359. "type" : "Float",
  360. "base" : {
  361. "value" : 0.5,
  362. "max_value" : 1,
  363. "min_value" : 0,
  364. "name" : "Blur Amount"
  365. }
  366. },
  367. {
  368. "type" : "Float",
  369. "base" : {
  370. "value" : 0.25,
  371. "max_value" : 1,
  372. "min_value" : 0,
  373. "name" : "Blur Radius"
  374. }
  375. }
  376. ],
  377. "enabled" : false,
  378. "name" : "Edge Blur",
  379. "uuid" : "AF83B133-D6A1-487C-BD9E-8579FA49B4E0"
  380. }
  381. }' 'http://localhost:8080/api/0/effects/workspace'
  382.  
  383.  
  384. "Edge Outline"
  385.  
  386. curl -XPOST -H "Content-type: application/json" -d '{
  387. "effect" : {
  388. "variables" : [
  389. {
  390. "type" : "Float",
  391. "base" : {
  392. "value" : 0.5,
  393. "max_value" : 1,
  394. "min_value" : 0,
  395. "name" : "Outline Amount"
  396. }
  397. },
  398. {
  399. "type" : "Float",
  400. "base" : {
  401. "value" : 0.5,
  402. "max_value" : 1,
  403. "min_value" : 0,
  404. "name" : "Color Level"
  405. }
  406. }
  407. ],
  408. "enabled" : false,
  409. "name" : "Edge Outline",
  410. "uuid" : "86BA6E3E-358F-4DA2-93C4-6A2C0EC831DA"
  411. }
  412. }' 'http://localhost:8080/api/0/effects/workspace'
  413.  
  414.  
  415. "Emboss"
  416.  
  417. curl -XPOST -H "Content-type: application/json" -d '{
  418. "effect" : {
  419. "variables" : [
  420. {
  421. "type" : "Float",
  422. "base" : {
  423. "value" : 0,
  424. "max_value" : 1,
  425. "min_value" : 0,
  426. "name" : "Light X"
  427. }
  428. },
  429. {
  430. "type" : "Float",
  431. "base" : {
  432. "value" : 1,
  433. "max_value" : 1,
  434. "min_value" : 0,
  435. "name" : "Light Y"
  436. }
  437. }
  438. ],
  439. "enabled" : false,
  440. "name" : "Emboss",
  441. "uuid" : "D2C1718A-571B-4844-BD72-7C13193E8F26"
  442. }
  443. }' 'http://localhost:8080/api/0/effects/workspace'
  444.  
  445.  
  446. "Gray Invert"
  447.  
  448. curl -XPOST -H "Content-type: application/json" -d '{
  449. "effect" : {
  450. "variables" : [
  451.  
  452. ],
  453. "enabled" : false,
  454. "name" : "Gray Invert",
  455. "uuid" : "4FDA3849-C39D-4269-AADA-B963944900B7"
  456. }
  457. }' 'http://localhost:8080/api/0/effects/workspace'
  458.  
  459.  
  460. "Halftone"
  461.  
  462. curl -XPOST -H "Content-type: application/json" -d '{
  463. "effect" : {
  464. "variables" : [
  465. {
  466. "type" : "Float",
  467. "base" : {
  468. "value" : 0.5,
  469. "max_value" : 1,
  470. "min_value" : 0,
  471. "name" : "Sharpness"
  472. }
  473. },
  474. {
  475. "type" : "Float",
  476. "base" : {
  477. "value" : 1,
  478. "max_value" : 2,
  479. "min_value" : 0,
  480. "name" : "Gray Components"
  481. }
  482. },
  483. {
  484. "type" : "Float",
  485. "base" : {
  486. "value" : 0.5,
  487. "max_value" : 1,
  488. "min_value" : 0,
  489. "name" : "Color Removal"
  490. }
  491. }
  492. ],
  493. "enabled" : false,
  494. "name" : "Halftone",
  495. "uuid" : "ADF80D5E-FD27-47BD-AFA6-8D4167364567"
  496. }
  497. }' 'http://localhost:8080/api/0/effects/workspace'
  498.  
  499.  
  500. "Heat Signature"
  501.  
  502. curl -XPOST -H "Content-type: application/json" -d '{
  503. "effect" : {
  504. "variables" : [
  505.  
  506. ],
  507. "enabled" : false,
  508. "name" : "Heat Signature",
  509. "uuid" : "F3F254AF-BF83-412D-B802-51E42A25FDF9"
  510. }
  511. }' 'http://localhost:8080/api/0/effects/workspace'
  512.  
  513.  
  514. "Hexagon"
  515.  
  516. curl -XPOST -H "Content-type: application/json" -d '{
  517. "effect" : {
  518. "variables" : [
  519. {
  520. "type" : "Float",
  521. "base" : {
  522. "value" : 50,
  523. "max_value" : 100,
  524. "min_value" : 10,
  525. "name" : "Hexagon Size"
  526. }
  527. }
  528. ],
  529. "enabled" : false,
  530. "name" : "Hexagon",
  531. "uuid" : "690831F6-A8A4-4B70-9AEB-E9A5E7FBDF63"
  532. }
  533. }' 'http://localhost:8080/api/0/effects/workspace'
  534.  
  535.  
  536. "Image Distortion"
  537.  
  538. curl -XPOST -H "Content-type: application/json" -d '{
  539. "effect" : {
  540. "variables" : [
  541. {
  542. "type" : "Float",
  543. "base" : {
  544. "value" : 1.5,
  545. "max_value" : 2,
  546. "min_value" : 1,
  547. "name" : "Scale"
  548. }
  549. }
  550. ],
  551. "enabled" : false,
  552. "name" : "Image Distortion",
  553. "uuid" : "8A0F0EB7-1F75-484B-8367-C390D94EA6C0"
  554. }
  555. }' 'http://localhost:8080/api/0/effects/workspace'
  556.  
  557.  
  558. "Kaleidoscope 1"
  559.  
  560. curl -XPOST -H "Content-type: application/json" -d '{
  561. "effect" : {
  562. "variables" : [
  563. {
  564. "type" : "Float",
  565. "base" : {
  566. "value" : 0.5,
  567. "max_value" : 1,
  568. "min_value" : 0,
  569. "name" : "Speed"
  570. }
  571. },
  572. {
  573. "type" : "Int",
  574. "base" : {
  575. "value" : 7,
  576. "max_value" : 20,
  577. "min_value" : 2,
  578. "name" : "Sides"
  579. }
  580. },
  581. {
  582. "type" : "Float",
  583. "base" : {
  584. "value" : 0,
  585. "max_value" : 1,
  586. "min_value" : -1,
  587. "name" : "Center X"
  588. }
  589. },
  590. {
  591. "type" : "Float",
  592. "base" : {
  593. "value" : 0,
  594. "max_value" : 1,
  595. "min_value" : -1,
  596. "name" : "Center Y"
  597. }
  598. }
  599. ],
  600. "enabled" : false,
  601. "name" : "Kaleidoscope 1",
  602. "uuid" : "17A42D1F-BC36-48D6-B9F6-110CB3AA93F9"
  603. }
  604. }' 'http://localhost:8080/api/0/effects/workspace'
  605.  
  606.  
  607. "Kaleidoscope 2"
  608.  
  609. curl -XPOST -H "Content-type: application/json" -d '{
  610. "effect" : {
  611. "variables" : [
  612. {
  613. "type" : "Float",
  614. "base" : {
  615. "value" : 0.5,
  616. "max_value" : 1,
  617. "min_value" : 0,
  618. "name" : "Speed"
  619. }
  620. },
  621. {
  622. "type" : "Int",
  623. "base" : {
  624. "value" : 7,
  625. "max_value" : 20,
  626. "min_value" : 4,
  627. "name" : "Sides"
  628. }
  629. },
  630. {
  631. "type" : "Float",
  632. "base" : {
  633. "value" : 0,
  634. "max_value" : 1,
  635. "min_value" : -1,
  636. "name" : "Center X"
  637. }
  638. },
  639. {
  640. "type" : "Float",
  641. "base" : {
  642. "value" : 0,
  643. "max_value" : 1,
  644. "min_value" : -1,
  645. "name" : "Center Y"
  646. }
  647. }
  648. ],
  649. "enabled" : false,
  650. "name" : "Kaleidoscope 2",
  651. "uuid" : "47BAC53A-761B-478D-AC74-2CA7A8CFB7D5"
  652. }
  653. }' 'http://localhost:8080/api/0/effects/workspace'
  654.  
  655.  
  656. "Lens Distortion"
  657.  
  658. curl -XPOST -H "Content-type: application/json" -d '{
  659. "effect" : {
  660. "variables" : [
  661. {
  662. "type" : "Float",
  663. "base" : {
  664. "value" : 1,
  665. "max_value" : 2,
  666. "min_value" : 0,
  667. "name" : "Lens Size"
  668. }
  669. },
  670. {
  671. "type" : "Float",
  672. "base" : {
  673. "value" : 1,
  674. "max_value" : 2,
  675. "min_value" : 0,
  676. "name" : "Color Distortion"
  677. }
  678. }
  679. ],
  680. "enabled" : false,
  681. "name" : "Lens Distortion",
  682. "uuid" : "291C7C20-07C5-42D2-92C9-45C173D69898"
  683. }
  684. }' 'http://localhost:8080/api/0/effects/workspace'
  685.  
  686.  
  687. "Old Film"
  688.  
  689. curl -XPOST -H "Content-type: application/json" -d '{
  690. "effect" : {
  691. "variables" : [
  692. {
  693. "type" : "Float",
  694. "base" : {
  695. "value" : 0.5,
  696. "max_value" : 1,
  697. "min_value" : 0,
  698. "name" : "Sepia Effect"
  699. }
  700. },
  701. {
  702. "type" : "Float",
  703. "base" : {
  704. "value" : 0.5,
  705. "max_value" : 1,
  706. "min_value" : 0,
  707. "name" : "Noise Level"
  708. }
  709. },
  710. {
  711. "type" : "Float",
  712. "base" : {
  713. "value" : 0.5,
  714. "max_value" : 1,
  715. "min_value" : 0,
  716. "name" : "Scratches"
  717. }
  718. },
  719. {
  720. "type" : "Float",
  721. "base" : {
  722. "value" : 0.5,
  723. "max_value" : 1,
  724. "min_value" : 0,
  725. "name" : "Vignette"
  726. }
  727. },
  728. {
  729. "type" : "Float",
  730. "base" : {
  731. "value" : 0.5,
  732. "max_value" : 1,
  733. "min_value" : 0,
  734. "name" : "Frequency"
  735. }
  736. },
  737. {
  738. "type" : "Float",
  739. "base" : {
  740. "value" : 0.019999999552965164,
  741. "max_value" : 0.20000000298023224,
  742. "min_value" : 0,
  743. "name" : "Intensity"
  744. }
  745. }
  746. ],
  747. "enabled" : false,
  748. "name" : "Old Film",
  749. "uuid" : "18CB8C8C-F23D-44B0-98BE-ECEB22B29D35"
  750. }
  751. }' 'http://localhost:8080/api/0/effects/workspace'
  752.  
  753.  
  754. "Picasso"
  755.  
  756. curl -XPOST -H "Content-type: application/json" -d '{
  757. "effect" : {
  758. "variables" : [
  759. {
  760. "type" : "Float",
  761. "base" : {
  762. "value" : 0,
  763. "max_value" : 1,
  764. "min_value" : 0,
  765. "name" : "Animate"
  766. }
  767. }
  768. ],
  769. "enabled" : false,
  770. "name" : "Picasso",
  771. "uuid" : "9A5ED7A4-8339-43C2-BABB-180AC20D4C07"
  772. }
  773. }' 'http://localhost:8080/api/0/effects/workspace'
  774.  
  775.  
  776. "Pixelize"
  777.  
  778. curl -XPOST -H "Content-type: application/json" -d '{
  779. "effect" : {
  780. "variables" : [
  781. {
  782. "type" : "Float",
  783. "base" : {
  784. "value" : 0.5,
  785. "max_value" : 1,
  786. "min_value" : 0.0099999997764825821,
  787. "name" : "Pixel Size"
  788. }
  789. }
  790. ],
  791. "enabled" : false,
  792. "name" : "Pixelize",
  793. "uuid" : "54E8E7F0-2302-4CBE-A63D-02D56915A79A"
  794. }
  795. }' 'http://localhost:8080/api/0/effects/workspace'
  796.  
  797.  
  798. "Plasma"
  799.  
  800. curl -XPOST -H "Content-type: application/json" -d '{
  801. "effect" : {
  802. "variables" : [
  803. {
  804. "type" : "Float",
  805. "base" : {
  806. "value" : 0.5,
  807. "max_value" : 1,
  808. "min_value" : 0.0099999997764825821,
  809. "name" : "Blend Amount"
  810. }
  811. },
  812. {
  813. "type" : "Float",
  814. "base" : {
  815. "value" : 0.5,
  816. "max_value" : 1,
  817. "min_value" : 0.0099999997764825821,
  818. "name" : "Speed"
  819. }
  820. }
  821. ],
  822. "enabled" : false,
  823. "name" : "Plasma",
  824. "uuid" : "E19D17CE-03B7-4C58-BD56-FF79C6875651"
  825. }
  826. }' 'http://localhost:8080/api/0/effects/workspace'
  827.  
  828.  
  829. "Radial Blur"
  830.  
  831. curl -XPOST -H "Content-type: application/json" -d '{
  832. "effect" : {
  833. "variables" : [
  834. {
  835. "type" : "Float",
  836. "base" : {
  837. "value" : 0.5,
  838. "max_value" : 1,
  839. "min_value" : 0.0099999997764825821,
  840. "name" : "Blend Amount"
  841. }
  842. },
  843. {
  844. "type" : "Float",
  845. "base" : {
  846. "value" : 0.5,
  847. "max_value" : 1,
  848. "min_value" : 0.0099999997764825821,
  849. "name" : "Speed"
  850. }
  851. },
  852. {
  853. "type" : "Float",
  854. "base" : {
  855. "value" : 10,
  856. "max_value" : 24,
  857. "min_value" : 4,
  858. "name" : "Iterations"
  859. }
  860. },
  861. {
  862. "type" : "Float",
  863. "base" : {
  864. "value" : 0.97000002861022949,
  865. "max_value" : 1.0499999523162842,
  866. "min_value" : 0.80000001192092896,
  867. "name" : "Decay"
  868. }
  869. }
  870. ],
  871. "enabled" : false,
  872. "name" : "Radial Blur",
  873. "uuid" : "6BC757C8-3F76-4E7E-885A-7A7C944465A5"
  874. }
  875. }' 'http://localhost:8080/api/0/effects/workspace'
  876.  
  877.  
  878. "RGB Adjust"
  879.  
  880. curl -XPOST -H "Content-type: application/json" -d '{
  881. "effect" : {
  882. "variables" : [
  883. {
  884. "type" : "Float",
  885. "base" : {
  886. "value" : 1,
  887. "max_value" : 1,
  888. "min_value" : 0,
  889. "name" : "Red"
  890. }
  891. },
  892. {
  893. "type" : "Float",
  894. "base" : {
  895. "value" : 1,
  896. "max_value" : 1,
  897. "min_value" : 0,
  898. "name" : "Green"
  899. }
  900. },
  901. {
  902. "type" : "Float",
  903. "base" : {
  904. "value" : 1,
  905. "max_value" : 1,
  906. "min_value" : 0,
  907. "name" : "Blue"
  908. }
  909. }
  910. ],
  911. "enabled" : false,
  912. "name" : "RGB Adjust",
  913. "uuid" : "453B8725-AAB6-427A-8FCE-570B8AB52790"
  914. }
  915. }' 'http://localhost:8080/api/0/effects/workspace'
  916.  
  917.  
  918. "Ripple Center"
  919.  
  920. curl -XPOST -H "Content-type: application/json" -d '{
  921. "effect" : {
  922. "variables" : [
  923. {
  924. "type" : "Float",
  925. "base" : {
  926. "value" : 1,
  927. "max_value" : 2,
  928. "min_value" : 0,
  929. "name" : "Speed"
  930. }
  931. }
  932. ],
  933. "enabled" : false,
  934. "name" : "Ripple Center",
  935. "uuid" : "D0C7FA30-C4D6-4F6D-86D9-CA27099D56EC"
  936. }
  937. }' 'http://localhost:8080/api/0/effects/workspace'
  938.  
  939.  
  940. "Ripple Side"
  941.  
  942. curl -XPOST -H "Content-type: application/json" -d '{
  943. "effect" : {
  944. "variables" : [
  945. {
  946. "type" : "Float",
  947. "base" : {
  948. "value" : 1,
  949. "max_value" : 2,
  950. "min_value" : 0,
  951. "name" : "Speed"
  952. }
  953. }
  954. ],
  955. "enabled" : false,
  956. "name" : "Ripple Side",
  957. "uuid" : "2A34B3FB-0AC5-4C7D-B07E-05FE83D796B4"
  958. }
  959. }' 'http://localhost:8080/api/0/effects/workspace'
  960.  
  961.  
  962. "Sepia"
  963.  
  964. curl -XPOST -H "Content-type: application/json" -d '{
  965. "effect" : {
  966. "variables" : [
  967.  
  968. ],
  969. "enabled" : false,
  970. "name" : "Sepia",
  971. "uuid" : "06157C8E-D971-4F06-9ECA-2663664E22A6"
  972. }
  973. }' 'http://localhost:8080/api/0/effects/workspace'
  974.  
  975.  
  976. "Shake"
  977.  
  978. curl -XPOST -H "Content-type: application/json" -d '{
  979. "effect" : {
  980. "variables" : [
  981. {
  982. "type" : "Float",
  983. "base" : {
  984. "value" : 0.5,
  985. "max_value" : 1,
  986. "min_value" : 0,
  987. "name" : "Frequency"
  988. }
  989. },
  990. {
  991. "type" : "Float",
  992. "base" : {
  993. "value" : 0.5,
  994. "max_value" : 1,
  995. "min_value" : 0,
  996. "name" : "Intensity"
  997. }
  998. }
  999. ],
  1000. "enabled" : false,
  1001. "name" : "Shake",
  1002. "uuid" : "5472C6A3-59A0-4ED5-AE13-0059E2D185C9"
  1003. }
  1004. }' 'http://localhost:8080/api/0/effects/workspace'
  1005.  
  1006.  
  1007. "Stars"
  1008.  
  1009. curl -XPOST -H "Content-type: application/json" -d '{
  1010. "effect" : {
  1011. "variables" : [
  1012. {
  1013. "type" : "Float",
  1014. "base" : {
  1015. "value" : 10,
  1016. "max_value" : 20,
  1017. "min_value" : 0,
  1018. "name" : "Speed"
  1019. }
  1020. },
  1021. {
  1022. "type" : "Float",
  1023. "base" : {
  1024. "value" : 0.5,
  1025. "max_value" : 1,
  1026. "min_value" : 0,
  1027. "name" : "Blend"
  1028. }
  1029. }
  1030. ],
  1031. "enabled" : false,
  1032. "name" : "Stars",
  1033. "uuid" : "55BB6AA1-9133-4CE4-991B-7BF5149E6834"
  1034. }
  1035. }' 'http://localhost:8080/api/0/effects/workspace'
  1036.  
  1037.  
  1038. "Strobe"
  1039.  
  1040. curl -XPOST -H "Content-type: application/json" -d '{
  1041. "effect" : {
  1042. "variables" : [
  1043. {
  1044. "type" : "Float",
  1045. "base" : {
  1046. "value" : 0.5,
  1047. "max_value" : 1,
  1048. "min_value" : 0,
  1049. "name" : "Frequency"
  1050. }
  1051. },
  1052. {
  1053. "type" : "Float",
  1054. "base" : {
  1055. "value" : 0.05000000074505806,
  1056. "max_value" : 1,
  1057. "min_value" : 0,
  1058. "name" : "Length"
  1059. }
  1060. },
  1061. {
  1062. "type" : "Float",
  1063. "base" : {
  1064. "value" : 1,
  1065. "max_value" : 1,
  1066. "min_value" : 0,
  1067. "name" : "Blend"
  1068. }
  1069. },
  1070. {
  1071. "type" : "Float",
  1072. "base" : {
  1073. "value" : 0.5,
  1074. "max_value" : 1,
  1075. "min_value" : 0,
  1076. "name" : "Randomness"
  1077. }
  1078. },
  1079. {
  1080. "type" : "Color",
  1081. "base" : {
  1082. "name" : "Color",
  1083. "color" : "#FFFEFE"
  1084. }
  1085. }
  1086. ],
  1087. "enabled" : false,
  1088. "name" : "Strobe",
  1089. "uuid" : "DA373B28-6AD6-499D-8AD4-11E2ADC73475"
  1090. }
  1091. }' 'http://localhost:8080/api/0/effects/workspace'
  1092.  
  1093.  
  1094. "Tile"
  1095.  
  1096. curl -XPOST -H "Content-type: application/json" -d '{
  1097. "effect" : {
  1098. "variables" : [
  1099. {
  1100. "type" : "Float",
  1101. "base" : {
  1102. "value" : 1,
  1103. "max_value" : 32,
  1104. "min_value" : 1,
  1105. "name" : "Cells"
  1106. }
  1107. },
  1108. {
  1109. "type" : "Int",
  1110. "base" : {
  1111. "value" : 1,
  1112. "max_value" : 20,
  1113. "min_value" : 0,
  1114. "name" : "Grid Size"
  1115. }
  1116. }
  1117. ],
  1118. "enabled" : false,
  1119. "name" : "Tile",
  1120. "uuid" : "4FF40112-9D47-43BA-A381-B685D13F5A89"
  1121. }
  1122. }' 'http://localhost:8080/api/0/effects/workspace'
  1123.  
  1124.  
  1125. "Toon"
  1126.  
  1127. curl -XPOST -H "Content-type: application/json" -d '{
  1128. "effect" : {
  1129. "variables" : [
  1130. {
  1131. "type" : "Int",
  1132. "base" : {
  1133. "value" : 8,
  1134. "max_value" : 16,
  1135. "min_value" : 1,
  1136. "name" : "Number of colors"
  1137. }
  1138. },
  1139. {
  1140. "type" : "Float",
  1141. "base" : {
  1142. "value" : 0.5,
  1143. "max_value" : 1,
  1144. "min_value" : 0,
  1145. "name" : "Saturation"
  1146. }
  1147. }
  1148. ],
  1149. "enabled" : false,
  1150. "name" : "Toon",
  1151. "uuid" : "3A7A9FFF-F027-4EFD-94CC-429A491485C7"
  1152. }
  1153. }' 'http://localhost:8080/api/0/effects/workspace'
  1154.  
  1155.  
  1156. "Two Color"
  1157.  
  1158. curl -XPOST -H "Content-type: application/json" -d '{
  1159. "effect" : {
  1160. "variables" : [
  1161. {
  1162. "type" : "Color",
  1163. "base" : {
  1164. "name" : "Dark Color",
  1165. "color" : "#000000"
  1166. }
  1167. },
  1168. {
  1169. "type" : "Color",
  1170. "base" : {
  1171. "name" : "Bright Color",
  1172. "color" : "#FFFEFE"
  1173. }
  1174. }
  1175. ],
  1176. "enabled" : false,
  1177. "name" : "Two Color",
  1178. "uuid" : "258D3830-8496-4712-AAAE-A68BCA23D805"
  1179. }
  1180. }' 'http://localhost:8080/api/0/effects/workspace'
  1181.  
  1182.  
  1183. "Vignette"
  1184.  
  1185. curl -XPOST -H "Content-type: application/json" -d '{
  1186. "effect" : {
  1187. "variables" : [
  1188. {
  1189. "type" : "Float",
  1190. "base" : {
  1191. "value" : 50,
  1192. "max_value" : 100,
  1193. "min_value" : 0,
  1194. "name" : "Radius"
  1195. }
  1196. }
  1197. ],
  1198. "enabled" : false,
  1199. "name" : "Vignette",
  1200. "uuid" : "42E83016-41DC-43AB-8061-9A93256DDA46"
  1201. }
  1202. }' 'http://localhost:8080/api/0/effects/workspace'
  1203.  
  1204.  
  1205. //////////////////////
  1206. || ||
  1207. || Effects Presets ||
  1208. || ||
  1209. //////////////////////
  1210.  
  1211. Replace "NameOfEffectsPreset" with the name of your Effects Present. Included effects
  1212. will have their enabled/disabled state from when the preset was saved.
  1213.  
  1214. curl -XPOST -H "Content-type: application/json" -d '{
  1215. "value" : "NameOfEffectsPreset"
  1216. }' 'http://localhost:8080/api/0/effectsPreset/workspace'
  1217.  
  1218.  
  1219. ////////////////////////////
  1220. || ||
  1221. || Clear Effects Presets ||
  1222. || ||
  1223. ///////////////////////////
  1224.  
  1225.  
  1226. curl -XPOST -H "Content-type: application/json" -d '{
  1227. "value": "Clear Effects",
  1228. }' 'http://localhost:8080/api/0/effectsPreset/layer/0'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement