Skip to content

Create a user-facing ASCII format for nodes and subgraphs #1605

@Keavon

Description

@Keavon

Currently the CopyBufferEntry is serialised using JSON when a user copies a layer:

{
	"nodes": {
		"2": {
			"alias": "custom alias",
			"name": "Transform",
			"inputs": [
				{
					"Node": {
						"node_id": 3,
						"output_index": 0,
						"lambda": false
					}
				},
				{
					"Value": {
						"tagged_value": {
							"DVec2": [
								5.049571603427239,
								118.83782129742963
							]
						},
						"exposed": false
					}
				},

However this should be changed to be in a format that looks something like:

[node parent(4) / transform(2)]
alias = "custom alias"
position = [1, 3]
vector_data = { node_id = 3, output_index  = 0 }
translation = { value = [5.04, 118.8], exposed = false }

whereby each input is stored in snake case if it is overwritten.

Or possibly a format using the ron grammar. This is the current line of thinking for the design.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrapheneInvolves the node graph system/engine used by Graphite

    Projects

    Status

    Short-Term

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions