diff --git a/sample-scenes/animation.omm b/sample-scenes/animation.omm new file mode 100644 index 000000000..137c7aaa9 --- /dev/null +++ b/sample-scenes/animation.omm @@ -0,0 +1,236 @@ +{ + "animation": { + "current-frame": 21, + "end-frame": 100, + "filename-pattern": "", + "overwrite-file": true, + "play-mode": 0, + "start-frame": 1 + }, + "colors": [], + "root": { + "children": [ + { + "children": [], + "id": 11657966089213757796, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "Ellipse 0" + }, + { + "animatable": true, + "animated": true, + "key": "position", + "track": { + "interpolation": 1, + "knots": [ + { + "frame": 7, + "left-value": [ + 0.0, + 0.0 + ], + "right-value": [ + 0.0, + 0.0 + ], + "value": [ + -24.12706242497248, + 0.0 + ] + }, + { + "frame": 96, + "left-value": [ + 0.0, + 0.0 + ], + "right-value": [ + 0.0, + 0.0 + ], + "value": [ + 16.810498543209462, + -14.380444716337081 + ] + } + ], + "type": "FloatVector" + }, + "type": "FloatVectorProperty", + "value": [ + -17.687446092898917, + -2.262092427288979 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 0.6000000000000001, + 0.9999999999999999 + ] + }, + { + "animatable": true, + "animated": true, + "key": "rotation", + "track": { + "interpolation": 1, + "knots": [ + { + "frame": 7, + "left-value": 0.0, + "right-value": 0.0, + "value": 22.360642563818065 + }, + { + "frame": 21, + "left-value": 0.0, + "right-value": 0.0, + "value": -95.7122105142338 + }, + { + "frame": 96, + "left-value": 0.0, + "right-value": 0.0, + "value": 68.52483264812918 + } + ], + "type": "Float" + }, + "type": "FloatProperty", + "value": -95.7122105142338 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "r", + "type": "FloatVectorProperty", + "value": [ + 1.0, + 1.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "n", + "type": "IntegerProperty", + "value": 12 + }, + { + "animatable": true, + "animated": false, + "key": "smooth", + "type": "BoolProperty", + "value": true + } + ], + "tags": [], + "type": "Ellipse" + } + ], + "id": 14530128855743225119, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "_root_" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 968.8560921163163, + 467.2059867313434 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 46.79989657946607, + 46.79989657946579 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + } + ], + "tags": [] + }, + "styles": [] +} \ No newline at end of file diff --git a/sample-scenes/animation.png b/sample-scenes/animation.png new file mode 100644 index 000000000..6dd71c71f Binary files /dev/null and b/sample-scenes/animation.png differ diff --git a/sample-scenes/basic.omm b/sample-scenes/basic.omm new file mode 100644 index 000000000..0fc93641c --- /dev/null +++ b/sample-scenes/basic.omm @@ -0,0 +1,1222 @@ +{ + "animation": { + "current-frame": 1, + "end-frame": 100, + "filename-pattern": "", + "overwrite-file": true, + "play-mode": 0, + "start-frame": 1 + }, + "colors": [], + "root": { + "children": [ + { + "children": [], + "id": 14379534773174806949, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "RectangleObject 0" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 102.33920187793433, + 118.48946135831386 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 1.3215962441314555, + 0.9859484777517564 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "size", + "type": "FloatVectorProperty", + "value": [ + 425.0, + 642.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "r", + "type": "FloatVectorProperty", + "value": [ + 0.0, + 0.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "tension", + "type": "FloatVectorProperty", + "value": [ + 1.0, + 1.0 + ] + } + ], + "tags": [ + { + "id": 3767319964752659166, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "StyleTag 0" + }, + { + "animatable": true, + "animated": false, + "filter": { + "flag": { + "terms": [ + { + "terms": [] + } + ] + }, + "kind": { + "terms": [ + { + "i": 1, + "v": true + } + ] + } + }, + "key": "style", + "type": "ReferenceProperty", + "value": 18254312176574172149 + }, + { + "animatable": true, + "animated": false, + "key": "edit-style", + "type": "TriggerProperty" + } + ], + "type": "StyleTag" + } + ], + "type": "RectangleObject" + }, + { + "children": [ + { + "children": [ + { + "children": [], + "id": 18128809437088895491, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "Ellipse 2" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + -55.75005206179883, + 134.34040797233448 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 0.5999999999999998, + 0.6 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "r", + "type": "FloatVectorProperty", + "value": [ + 100.0, + 100.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "n", + "type": "IntegerProperty", + "value": 12 + }, + { + "animatable": true, + "animated": false, + "key": "smooth", + "type": "BoolProperty", + "value": true + } + ], + "tags": [ + { + "id": 7378084526202211452, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "StyleTag 1" + }, + { + "animatable": true, + "animated": false, + "filter": { + "flag": { + "terms": [ + { + "terms": [] + } + ] + }, + "kind": { + "terms": [ + { + "i": 1, + "v": true + } + ] + } + }, + "key": "style", + "type": "ReferenceProperty", + "value": 10295221238008432402 + }, + { + "animatable": true, + "animated": false, + "key": "edit-style", + "type": "TriggerProperty" + } + ], + "type": "StyleTag" + } + ], + "type": "Ellipse" + } + ], + "id": 16896995218845686868, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "RectangleObject 0" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 0.0, + 0.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 1.0, + 1.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "size", + "type": "FloatVectorProperty", + "value": [ + 200.0, + 200.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "r", + "type": "FloatVectorProperty", + "value": [ + 1.0, + 1.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "tension", + "type": "FloatVectorProperty", + "value": [ + 1.0, + 1.0 + ] + } + ], + "tags": [ + { + "id": 2090215719974290035, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "StyleTag 0" + }, + { + "animatable": true, + "animated": false, + "filter": { + "flag": { + "terms": [ + { + "terms": [] + } + ] + }, + "kind": { + "terms": [ + { + "i": 1, + "v": true + } + ] + } + }, + "key": "style", + "type": "ReferenceProperty", + "value": 3901448468124317691 + }, + { + "animatable": true, + "animated": false, + "key": "edit-style", + "type": "TriggerProperty" + } + ], + "type": "StyleTag" + } + ], + "type": "RectangleObject" + } + ], + "id": 7499183679719225449, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "Cloner 1" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 0.0, + 0.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 1.0, + 1.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "mode", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "count", + "type": "IntegerProperty", + "value": 3 + }, + { + "animatable": true, + "animated": false, + "key": "count2d", + "type": "IntegerVectorProperty", + "value": [ + 3, + 3 + ] + }, + { + "animatable": true, + "animated": false, + "key": "distance2d", + "type": "FloatVectorProperty", + "value": [ + 100.0, + 100.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "radius", + "type": "FloatProperty", + "value": 200.0 + }, + { + "animatable": true, + "animated": false, + "filter": { + "flag": { + "terms": [ + { + "terms": [ + { + "i": 2, + "v": true + } + ] + } + ] + }, + "kind": { + "terms": [ + { + "i": 2, + "v": true + } + ] + } + }, + "key": "path", + "type": "ReferenceProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "start", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "end", + "type": "FloatProperty", + "value": 1.0 + }, + { + "animatable": true, + "animated": false, + "key": "align", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "border", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "code", + "type": "StringProperty", + "value": "import math\nimport numpy as np\nnp.random.seed(id)\ncopy.set(\"position\", [ id*100, 0.0 ])\ncopy.set(\"rotation\", id*math.pi/10.0)\ncopy.set(\"scale\", np.random.random(2)+0.5)\n" + }, + { + "animatable": true, + "animated": false, + "key": "seed", + "type": "IntegerProperty", + "value": 12345 + }, + { + "animatable": true, + "animated": false, + "key": "anchor", + "type": "OptionProperty", + "value": 0 + } + ], + "tags": [], + "type": "Cloner" + } + ], + "id": 5718622049955397721, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "_root_" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 216.6977682075995, + 190.48167015013894 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 0.8945356589434665, + 0.8945356589434665 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + } + ], + "tags": [] + }, + "styles": [ + { + "id": 3901448468124317691, + "nodes": { + "nodes": [ + { + "connection": [], + "id": 3047760000432136243, + "pos": [ + 0.0, + 0.0 + ], + "properties": [], + "type": "FragmentNode" + } + ] + }, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "blue" + }, + { + "animatable": true, + "animated": false, + "key": "pen/active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "pen/color", + "type": "ColorProperty", + "value": { + "name": "", + "rgba": [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + } + }, + { + "animatable": true, + "animated": false, + "key": "pen/width", + "type": "FloatProperty", + "value": 5.0 + }, + { + "animatable": true, + "animated": false, + "key": "pen/stroke", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "pen/join", + "type": "OptionProperty", + "value": 2 + }, + { + "animatable": true, + "animated": false, + "key": "pen/cap", + "type": "OptionProperty", + "value": 1 + }, + { + "animatable": true, + "animated": false, + "key": "pen/cosmetic", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "brush/active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "brush/color", + "type": "ColorProperty", + "value": { + "name": "", + "rgba": [ + 0.1, + 0.52, + 0.82, + 1.0 + ] + } + }, + { + "animatable": true, + "animated": false, + "key": "gl-brush", + "type": "BoolProperty", + "value": false + }, + { + "animatable": true, + "animated": false, + "key": "edit-nodes", + "type": "TriggerProperty" + }, + { + "animatable": true, + "animated": false, + "key": "startshape", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "startsize", + "type": "FloatProperty", + "value": 2.0 + }, + { + "animatable": true, + "animated": false, + "key": "startaspectratio", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "startreverse", + "type": "BoolProperty", + "value": false + }, + { + "animatable": true, + "animated": false, + "key": "endshape", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "endsize", + "type": "FloatProperty", + "value": 2.0 + }, + { + "animatable": true, + "animated": false, + "key": "endaspectratio", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "endreverse", + "type": "BoolProperty", + "value": false + } + ] + }, + { + "id": 10295221238008432402, + "nodes": { + "nodes": [ + { + "connection": [], + "id": 4395578656617089346, + "pos": [ + 0.0, + 0.0 + ], + "properties": [], + "type": "FragmentNode" + } + ] + }, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "orange" + }, + { + "animatable": true, + "animated": false, + "key": "pen/active", + "type": "BoolProperty", + "value": false + }, + { + "animatable": true, + "animated": false, + "key": "pen/color", + "type": "ColorProperty", + "value": { + "name": "", + "rgba": [ + 0.573170731707317, + 0.0, + 0.0, + 1.0 + ] + } + }, + { + "animatable": true, + "animated": false, + "key": "pen/width", + "type": "FloatProperty", + "value": 5.0 + }, + { + "animatable": true, + "animated": false, + "key": "pen/stroke", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "pen/join", + "type": "OptionProperty", + "value": 2 + }, + { + "animatable": true, + "animated": false, + "key": "pen/cap", + "type": "OptionProperty", + "value": 1 + }, + { + "animatable": true, + "animated": false, + "key": "pen/cosmetic", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "brush/active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "brush/color", + "type": "ColorProperty", + "value": { + "name": "", + "rgba": [ + 0.8140243902439024, + 0.6353361094586555, + 0.0992712671029149, + 1.0 + ] + } + }, + { + "animatable": true, + "animated": false, + "key": "gl-brush", + "type": "BoolProperty", + "value": false + }, + { + "animatable": true, + "animated": false, + "key": "edit-nodes", + "type": "TriggerProperty" + }, + { + "animatable": true, + "animated": false, + "key": "startshape", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "startsize", + "type": "FloatProperty", + "value": 2.0 + }, + { + "animatable": true, + "animated": false, + "key": "startaspectratio", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "startreverse", + "type": "BoolProperty", + "value": false + }, + { + "animatable": true, + "animated": false, + "key": "endshape", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "endsize", + "type": "FloatProperty", + "value": 2.0 + }, + { + "animatable": true, + "animated": false, + "key": "endaspectratio", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "endreverse", + "type": "BoolProperty", + "value": false + } + ] + }, + { + "id": 18254312176574172149, + "nodes": { + "nodes": [ + { + "connection": [], + "id": 10440245093637850290, + "pos": [ + 0.0, + 0.0 + ], + "properties": [], + "type": "FragmentNode" + } + ] + }, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "purple" + }, + { + "animatable": true, + "animated": false, + "key": "pen/active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "pen/color", + "type": "ColorProperty", + "value": { + "name": "", + "rgba": [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + } + }, + { + "animatable": true, + "animated": false, + "key": "pen/width", + "type": "FloatProperty", + "value": 5.0 + }, + { + "animatable": true, + "animated": false, + "key": "pen/stroke", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "pen/join", + "type": "OptionProperty", + "value": 2 + }, + { + "animatable": true, + "animated": false, + "key": "pen/cap", + "type": "OptionProperty", + "value": 1 + }, + { + "animatable": true, + "animated": false, + "key": "pen/cosmetic", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "brush/active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "brush/color", + "type": "ColorProperty", + "value": { + "name": "", + "rgba": [ + 0.5390243902439028, + 0.09999999999999998, + 0.82, + 1.0 + ] + } + }, + { + "animatable": true, + "animated": false, + "key": "gl-brush", + "type": "BoolProperty", + "value": false + }, + { + "animatable": true, + "animated": false, + "key": "edit-nodes", + "type": "TriggerProperty" + }, + { + "animatable": true, + "animated": false, + "key": "startshape", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "startsize", + "type": "FloatProperty", + "value": 2.0 + }, + { + "animatable": true, + "animated": false, + "key": "startaspectratio", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "startreverse", + "type": "BoolProperty", + "value": false + }, + { + "animatable": true, + "animated": false, + "key": "endshape", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "endsize", + "type": "FloatProperty", + "value": 2.0 + }, + { + "animatable": true, + "animated": false, + "key": "endaspectratio", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "endreverse", + "type": "BoolProperty", + "value": false + } + ] + } + ] +} \ No newline at end of file diff --git a/sample-scenes/basic.png b/sample-scenes/basic.png new file mode 100644 index 000000000..8e136b3bd Binary files /dev/null and b/sample-scenes/basic.png differ diff --git a/sample-scenes/glshader.omm b/sample-scenes/glshader.omm new file mode 100644 index 000000000..b9685a711 --- /dev/null +++ b/sample-scenes/glshader.omm @@ -0,0 +1,947 @@ +{ + "animation": { + "current-frame": 1, + "end-frame": 100, + "filename-pattern": "", + "overwrite-file": true, + "play-mode": 0, + "start-frame": 1 + }, + "colors": [], + "root": { + "children": [ + { + "children": [], + "id": 10840912028786991646, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "Ellipse 1" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 2.1541863078499257, + -0.11561103117871185 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 2.0095623634823747, + 2.009562363482375 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "r", + "type": "FloatVectorProperty", + "value": [ + 1.0, + 1.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "n", + "type": "IntegerProperty", + "value": 12 + }, + { + "animatable": true, + "animated": false, + "key": "smooth", + "type": "BoolProperty", + "value": true + } + ], + "tags": [ + { + "id": 12896807351667105392, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "StyleTag 1" + }, + { + "animatable": true, + "animated": false, + "filter": { + "flag": { + "terms": [ + { + "terms": [] + } + ] + }, + "kind": { + "terms": [ + { + "i": 1, + "v": true + } + ] + } + }, + "key": "style", + "type": "ReferenceProperty", + "value": 8784653487184449376 + }, + { + "animatable": true, + "animated": false, + "key": "edit-style", + "type": "TriggerProperty" + } + ], + "type": "StyleTag" + } + ], + "type": "Ellipse" + }, + { + "children": [], + "id": 9675856853943300215, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "RectangleObject 0" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 1.8270907033194805, + 2.9139709438786947 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 2.897353704629631, + 2.897353704629631 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "size", + "type": "FloatVectorProperty", + "value": [ + 2.0, + 1.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "r", + "type": "FloatVectorProperty", + "value": [ + 0.18, + 1.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "tension", + "type": "FloatVectorProperty", + "value": [ + 0.0, + 1.0 + ] + } + ], + "tags": [ + { + "id": 18398096533727800358, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "StyleTag 0" + }, + { + "animatable": true, + "animated": false, + "filter": { + "flag": { + "terms": [ + { + "terms": [] + } + ] + }, + "kind": { + "terms": [ + { + "i": 1, + "v": true + } + ] + } + }, + "key": "style", + "type": "ReferenceProperty", + "value": 22408990650000502 + }, + { + "animatable": true, + "animated": false, + "key": "edit-style", + "type": "TriggerProperty" + } + ], + "type": "StyleTag" + } + ], + "type": "RectangleObject" + } + ], + "id": 3223711314177687736, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "_root_" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 97.72239922900917, + 240.31853506074998 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 88.57828702649866, + 88.57828702649849 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + } + ], + "tags": [] + }, + "styles": [ + { + "id": 22408990650000502, + "nodes": { + "nodes": [ + { + "connection": [ + { + "in": 0, + "node": 11302106137919438831, + "out": 0 + } + ], + "id": 14081031177401449156, + "pos": [ + 243.5111644538531, + 30.587858216396356 + ], + "properties": [], + "type": "FragmentNode" + }, + { + "connection": [ + { + "in": 0, + "node": 14724328996775097359, + "out": 0 + } + ], + "id": 1252121869652153566, + "pos": [ + -134.79077351954564, + 35.63558416251259 + ], + "properties": [ + { + "animatable": true, + "animated": false, + "key": "in", + "type": "FloatVectorProperty", + "value": [ + 0.0, + 0.0 + ] + } + ], + "type": "DecomposeNode" + }, + { + "connection": [], + "id": 14724328996775097359, + "pos": [ + -162.3620266074173, + -77.87685334179754 + ], + "properties": [], + "type": "VertexNode" + }, + { + "connection": [ + { + "in": 2, + "node": 1252121869652153566, + "out": 2 + }, + { + "in": 0, + "node": 1252121869652153566, + "out": 1 + } + ], + "id": 11302106137919438831, + "pos": [ + 55.030949795050105, + -49.736861719613515 + ], + "properties": [ + { + "animatable": true, + "animated": false, + "key": "r", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "g", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "b", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "a", + "type": "FloatProperty", + "value": 0.45999999999999963 + } + ], + "type": "ComposeColorNode" + } + ] + }, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "Style 1" + }, + { + "animatable": true, + "animated": false, + "key": "pen/active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "pen/color", + "type": "ColorProperty", + "value": { + "name": "", + "rgba": [ + 0.7042682926829268, + 0.0, + 0.0, + 1.0 + ] + } + }, + { + "animatable": true, + "animated": false, + "key": "pen/width", + "type": "FloatProperty", + "value": 6.8999999999999995 + }, + { + "animatable": true, + "animated": false, + "key": "pen/stroke", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "pen/join", + "type": "OptionProperty", + "value": 2 + }, + { + "animatable": true, + "animated": false, + "key": "pen/cap", + "type": "OptionProperty", + "value": 1 + }, + { + "animatable": true, + "animated": false, + "key": "pen/cosmetic", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "brush/active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "brush/color", + "type": "ColorProperty", + "value": { + "name": "", + "rgba": [ + 0.1, + 0.52, + 0.82, + 1.0 + ] + } + }, + { + "animatable": true, + "animated": false, + "key": "gl-brush", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "edit-nodes", + "type": "TriggerProperty" + }, + { + "animatable": true, + "animated": false, + "key": "startshape", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "startsize", + "type": "FloatProperty", + "value": 2.0 + }, + { + "animatable": true, + "animated": false, + "key": "startaspectratio", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "startreverse", + "type": "BoolProperty", + "value": false + }, + { + "animatable": true, + "animated": false, + "key": "endshape", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "endsize", + "type": "FloatProperty", + "value": 2.0 + }, + { + "animatable": true, + "animated": false, + "key": "endaspectratio", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "endreverse", + "type": "BoolProperty", + "value": false + } + ] + }, + { + "id": 8784653487184449376, + "nodes": { + "nodes": [ + { + "connection": [ + { + "in": 0, + "node": 1716099247501584868, + "out": 0 + } + ], + "id": 7434005464566041231, + "pos": [ + 118.0, + 100.0 + ], + "properties": [], + "type": "FragmentNode" + }, + { + "connection": [ + { + "in": 1, + "node": 12730615671267278618, + "out": 1 + }, + { + "in": 2, + "node": 12730615671267278618, + "out": 2 + } + ], + "id": 14146945465266274661, + "pos": [ + -230.0, + -109.0 + ], + "properties": [ + { + "animatable": true, + "animated": false, + "key": "op", + "type": "OptionProperty", + "value": 3 + }, + { + "animatable": true, + "animated": false, + "key": "a", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "b", + "type": "FloatProperty", + "value": 0.0 + } + ], + "type": "MathNode" + }, + { + "connection": [], + "id": 8367175419737299176, + "pos": [ + -498.66666666666674, + -148.33333333333334 + ], + "properties": [], + "type": "VertexNode" + }, + { + "connection": [ + { + "in": 0, + "node": 8367175419737299176, + "out": 0 + } + ], + "id": 12730615671267278618, + "pos": [ + -469.61072369814184, + -35.80536184907086 + ], + "properties": [ + { + "animatable": true, + "animated": false, + "key": "in", + "type": "FloatVectorProperty", + "value": [ + 0.0, + 0.0 + ] + } + ], + "type": "DecomposeNode" + }, + { + "connection": [ + { + "in": 2, + "node": 12730615671267278618, + "out": 2 + }, + { + "in": 0, + "node": 12730615671267278618, + "out": 1 + }, + { + "in": 1, + "node": 14146945465266274661, + "out": 1 + } + ], + "id": 1716099247501584868, + "pos": [ + 13.333333333333314, + -39.33333333333334 + ], + "properties": [ + { + "animatable": true, + "animated": false, + "key": "r", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "g", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "b", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "a", + "type": "FloatProperty", + "value": 1.0 + } + ], + "type": "ComposeColorNode" + } + ] + }, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "Style 1" + }, + { + "animatable": true, + "animated": false, + "key": "pen/active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "pen/color", + "type": "ColorProperty", + "value": { + "name": "", + "rgba": [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + } + }, + { + "animatable": true, + "animated": false, + "key": "pen/width", + "type": "FloatProperty", + "value": 5.0 + }, + { + "animatable": true, + "animated": false, + "key": "pen/stroke", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "pen/join", + "type": "OptionProperty", + "value": 2 + }, + { + "animatable": true, + "animated": false, + "key": "pen/cap", + "type": "OptionProperty", + "value": 1 + }, + { + "animatable": true, + "animated": false, + "key": "pen/cosmetic", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "brush/active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "brush/color", + "type": "ColorProperty", + "value": { + "name": "", + "rgba": [ + 0.8024390243902432, + 0.09999999999999998, + 0.82, + 1.0 + ] + } + }, + { + "animatable": true, + "animated": false, + "key": "gl-brush", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "edit-nodes", + "type": "TriggerProperty" + }, + { + "animatable": true, + "animated": false, + "key": "startshape", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "startsize", + "type": "FloatProperty", + "value": 2.0 + }, + { + "animatable": true, + "animated": false, + "key": "startaspectratio", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "startreverse", + "type": "BoolProperty", + "value": false + }, + { + "animatable": true, + "animated": false, + "key": "endshape", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "endsize", + "type": "FloatProperty", + "value": 2.0 + }, + { + "animatable": true, + "animated": false, + "key": "endaspectratio", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "endreverse", + "type": "BoolProperty", + "value": false + } + ] + } + ] +} \ No newline at end of file diff --git a/sample-scenes/glshader.png b/sample-scenes/glshader.png new file mode 100644 index 000000000..cffb374aa Binary files /dev/null and b/sample-scenes/glshader.png differ diff --git a/sample-scenes/nodes.omm b/sample-scenes/nodes.omm new file mode 100644 index 000000000..8672b75fa --- /dev/null +++ b/sample-scenes/nodes.omm @@ -0,0 +1,485 @@ +{ + "animation": { + "current-frame": 77, + "end-frame": 100, + "filename-pattern": "", + "overwrite-file": true, + "play-mode": 0, + "start-frame": 1 + }, + "colors": [], + "root": { + "children": [ + { + "children": [], + "id": 6193732420348438995, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "ellipse" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 1440.3651740640623, + -147.76795861782227 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 0.9999999999999999, + 0.9999999999999992 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "r", + "type": "FloatVectorProperty", + "value": [ + 100.0, + 100.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "n", + "type": "IntegerProperty", + "value": 12 + }, + { + "animatable": true, + "animated": false, + "key": "smooth", + "type": "BoolProperty", + "value": true + } + ], + "tags": [ + { + "id": 16793405267157224058, + "nodes": { + "nodes": [ + { + "connection": [ + { + "in": 0, + "node": 4816786456898073630, + "out": 2 + } + ], + "id": 3456011278757218053, + "input": [ + "position" + ], + "pos": [ + 372.1762135866368, + 175.09333737766147 + ], + "properties": [ + { + "animatable": true, + "animated": false, + "filter": { + "flag": { + "terms": [ + { + "terms": [] + } + ] + }, + "kind": { + "terms": [ + { + "i": 0, + "v": true + }, + { + "i": 1, + "v": true + }, + { + "i": 2, + "v": true + }, + { + "i": 3, + "v": true + }, + { + "i": 4, + "v": true + } + ] + } + }, + "key": "ref", + "type": "ReferenceProperty", + "value": 661090558569976046 + } + ], + "type": "ReferenceNode" + }, + { + "connection": [], + "id": 3153577948518313557, + "output": [ + "position" + ], + "pos": [ + -216.5, + 149.5 + ], + "properties": [ + { + "animatable": true, + "animated": false, + "filter": { + "flag": { + "terms": [ + { + "terms": [] + } + ] + }, + "kind": { + "terms": [ + { + "i": 0, + "v": true + }, + { + "i": 1, + "v": true + }, + { + "i": 2, + "v": true + }, + { + "i": 3, + "v": true + }, + { + "i": 4, + "v": true + } + ] + } + }, + "key": "ref", + "type": "ReferenceProperty", + "value": 6193732420348438995 + } + ], + "type": "ReferenceNode" + }, + { + "connection": [ + { + "in": 0, + "node": 14967938327622412646, + "out": 1 + } + ], + "id": 4816786456898073630, + "pos": [ + 166.93144417097972, + 167.20952669832968 + ], + "properties": [ + { + "animatable": true, + "animated": false, + "key": "x", + "type": "FloatProperty", + "value": -147.76795861782227 + }, + { + "animatable": true, + "animated": false, + "key": "y", + "type": "FloatProperty", + "value": 119.62707854392684 + } + ], + "type": "ComposeNode" + }, + { + "connection": [ + { + "in": 0, + "node": 3153577948518313557, + "out": 1 + } + ], + "id": 14967938327622412646, + "pos": [ + -32.38381067933187, + 156.96475728267262 + ], + "properties": [ + { + "animatable": true, + "animated": false, + "key": "in", + "type": "FloatVectorProperty", + "value": [ + 1440.3651740640623, + -147.76795861782227 + ] + } + ], + "type": "DecomposeNode" + } + ] + }, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "NodesTag 0" + }, + { + "animatable": true, + "animated": false, + "key": "update", + "type": "OptionProperty", + "value": 1 + }, + { + "animatable": true, + "animated": false, + "key": "trigger", + "type": "TriggerProperty" + }, + { + "animatable": true, + "animated": false, + "key": "edit-nodes", + "type": "TriggerProperty" + } + ], + "type": "NodesTag" + } + ], + "type": "Ellipse" + }, + { + "children": [], + "id": 661090558569976046, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "rectangle" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + -147.76795861782227, + 119.62707854392684 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 0.9999999999999999, + 0.9999999999999999 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "size", + "type": "FloatVectorProperty", + "value": [ + 200.0, + 200.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "r", + "type": "FloatVectorProperty", + "value": [ + 1.0, + 1.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "tension", + "type": "FloatVectorProperty", + "value": [ + 1.0, + 1.0 + ] + } + ], + "tags": [], + "type": "RectangleObject" + } + ], + "id": 8205071648709527265, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "_root_" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 302.76015795574017, + 145.36950829853805 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 0.16455054838352937, + 0.16455054838352934 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + } + ], + "tags": [] + }, + "styles": [] +} \ No newline at end of file diff --git a/sample-scenes/nodes.png b/sample-scenes/nodes.png new file mode 100644 index 000000000..0228a8cad Binary files /dev/null and b/sample-scenes/nodes.png differ diff --git a/sample-scenes/python.omm b/sample-scenes/python.omm new file mode 100644 index 000000000..ca4ce07d1 --- /dev/null +++ b/sample-scenes/python.omm @@ -0,0 +1,173 @@ +{ + "animation": { + "current-frame": 92, + "end-frame": 100, + "filename-pattern": "", + "overwrite-file": true, + "play-mode": 0, + "start-frame": 1 + }, + "colors": [], + "root": { + "children": [ + { + "children": [], + "id": 12249644710846474893, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "ProceduralPath" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 0.0, + 0.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 1.0, + 1.0 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "code", + "type": "StringProperty", + "value": "import math\nimport numpy as np\n\nprint(\"Hello Python!\")\nfor i, p in enumerate(points):\n r = {0: 10, 1: 40, 2: 100, 3: 40}[i % 4]\n theta = i/len(points)*math.pi*2\n pos = np.array([math.cos(theta),\n math.sin(theta)])\n tangent = np.array([pos[1], -pos[0]])\n p.set_position(r*pos)\n print(i, pos)\n r /= 10\n p.set_left_tangent(r*tangent)\n p.set_right_tangent(-r*tangent)\n" + }, + { + "animatable": true, + "animated": false, + "key": "count", + "type": "IntegerProperty", + "value": 10 + }, + { + "animatable": true, + "animated": false, + "key": "closed", + "type": "BoolProperty", + "value": true + } + ], + "tags": [], + "type": "ProceduralPath" + } + ], + "id": 8205071648709527265, + "properties": [ + { + "animatable": true, + "animated": false, + "key": "viewport-visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "visibility", + "type": "OptionProperty", + "value": 0 + }, + { + "animatable": true, + "animated": false, + "key": "is_active", + "type": "BoolProperty", + "value": true + }, + { + "animatable": true, + "animated": false, + "key": "name", + "type": "StringProperty", + "value": "_root_" + }, + { + "animatable": true, + "animated": false, + "key": "position", + "type": "FloatVectorProperty", + "value": [ + 309.3004068441389, + 309.78696679514405 + ] + }, + { + "animatable": true, + "animated": false, + "key": "scale", + "type": "FloatVectorProperty", + "value": [ + 3.3465809156731354, + 3.3465809156731354 + ] + }, + { + "animatable": true, + "animated": false, + "key": "rotation", + "type": "FloatProperty", + "value": 0.0 + }, + { + "animatable": true, + "animated": false, + "key": "shear", + "type": "FloatProperty", + "value": 0.0 + } + ], + "tags": [] + }, + "styles": [] +} \ No newline at end of file diff --git a/sample-scenes/python.png b/sample-scenes/python.png new file mode 100644 index 000000000..0d12e1b32 Binary files /dev/null and b/sample-scenes/python.png differ