Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VOXELFORMAT: PXO: add Pixelorama format support #544

Open
mgerhardy opened this issue Nov 14, 2024 · 0 comments
Open

VOXELFORMAT: PXO: add Pixelorama format support #544

mgerhardy opened this issue Nov 14, 2024 · 0 comments
Labels
format Voxel or mesh format related

Comments

@mgerhardy
Copy link
Collaborator

pxo is the file format - and this is basically only a zip file with data.json and an image_data folder containing the frames and layers

There is also embedded json in the data.json

node types are

  • 0: 2d layer
  • 1: group
  • 2: 3d layer
data.json <file>
image_data <directory>
  frames <directory>
    1 <directory>
      layer_1 <file>
      layer_3 <file>
    2 <directory>
      layer_1 <file>
      layer_3 <file>
{
	"brushes": [],
	"export_file_format": 0,
	"export_file_name": "untitled",
	"fps": 6,
	"frames": [
		{
			"cels": [
				{
					"metadata": {},
					"opacity": 1,
					"z_index": 0
				},
				{
					"metadata": {},
					"object_properties": {
						"0": "{\n\"file_path\": \"\",\n\"id\": 0,\n\"light_color\": Color(1, 1, 1, 1),\n\"light_energy\": 1.0,\n\"light_negative\": false,\n\"shadow_enabled\": false,\n\"transform\": Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.5, 0, 0),\n\"type\": 8,\n\"visible\": true\n}"
					},
					"opacity": 1,
					"scene_properties": {
						"ambient_light_color": "Color(0, 0, 0, 1)",
						"ambient_light_energy": "1",
						"camera_fov": "70.0",
						"camera_projection": "0",
						"camera_size": "1.0",
						"camera_transform": "Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3)"
					},
					"z_index": 0
				},
				{
					"metadata": {},
					"opacity": 1,
					"z_index": 0
				},
				{
					"metadata": {},
					"object_properties": {
						"0": "{\n\"file_path\": \"\",\n\"id\": 0,\n\"light_color\": Color(1, 1, 1, 1),\n\"light_energy\": 1.0,\n\"light_negative\": false,\n\"shadow_enabled\": false,\n\"transform\": Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.5, 0, 0),\n\"type\": 8,\n\"visible\": true\n}"
					},
					"opacity": 1,
					"scene_properties": {
						"ambient_light_color": "Color(0, 0, 0, 1)",
						"ambient_light_energy": "1",
						"camera_fov": "70.0",
						"camera_projection": "0",
						"camera_size": "1.0",
						"camera_transform": "Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3)"
					},
					"z_index": 0
				},
				{
					"metadata": {},
					"opacity": 1,
					"z_index": 0
				}
			],
			"duration": 1,
			"metadata": {}
		},
		{
			"cels": [
				{
					"metadata": {},
					"opacity": 1,
					"z_index": 0
				},
				{
					"metadata": {},
					"object_properties": {
						"0": "{\n\"file_path\": \"\",\n\"id\": 0,\n\"light_color\": Color(1, 1, 1, 1),\n\"light_energy\": 1.0,\n\"light_negative\": false,\n\"shadow_enabled\": false,\n\"transform\": Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.36, -1.22, 0),\n\"type\": 8,\n\"visible\": true\n}"
					},
					"opacity": 1,
					"scene_properties": {
						"ambient_light_color": "Color(0, 0, 0, 1)",
						"ambient_light_energy": "1",
						"camera_fov": "70.0",
						"camera_projection": "0",
						"camera_size": "1.0",
						"camera_transform": "Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3)"
					},
					"z_index": 0
				},
				{
					"metadata": {},
					"opacity": 1,
					"z_index": 0
				},
				{
					"metadata": {},
					"object_properties": {
						"0": "{\n\"file_path\": \"\",\n\"id\": 0,\n\"light_color\": Color(1, 1, 1, 1),\n\"light_energy\": 1.0,\n\"light_negative\": false,\n\"shadow_enabled\": false,\n\"transform\": Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.5, 0, 0),\n\"type\": 8,\n\"visible\": true\n}",
						"1": "{\n\"file_path\": \"\",\n\"id\": 1,\n\"mesh_height\": 1.0,\n\"mesh_is_hemisphere\": false,\n\"mesh_radial_segments\": 64,\n\"mesh_radius\": 0.5,\n\"mesh_rings\": 32,\n\"transform\": Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0),\n\"type\": 1,\n\"visible\": true\n}"
					},
					"opacity": 1,
					"scene_properties": {
						"ambient_light_color": "Color(0, 0, 0, 1)",
						"ambient_light_energy": "1",
						"camera_fov": "70.0",
						"camera_projection": "0",
						"camera_size": "1.0",
						"camera_transform": "Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3)"
					},
					"z_index": 0
				},
				{
					"metadata": {},
					"opacity": 1,
					"z_index": 0
				}
			],
			"duration": 1,
			"metadata": {}
		}
	],
	"guides": [],
	"layers": [
		{
			"blend_mode": 0,
			"clipping_mask": false,
			"effects": [],
			"locked": false,
			"metadata": {},
			"name": "Layer 1",
			"new_cels_linked": false,
			"opacity": 1,
			"parent": -1,
			"type": 0,
			"visible": true
		},
		{
			"blend_mode": 0,
			"clipping_mask": false,
			"effects": [],
			"locked": false,
			"metadata": {},
			"name": "Layer 2 - 3d",
			"opacity": 1,
			"parent": 4,
			"type": 2,
			"visible": true
		},
		{
			"blend_mode": 0,
			"clipping_mask": false,
			"effects": [],
			"locked": false,
			"metadata": {},
			"name": "Layer 3",
			"new_cels_linked": false,
			"opacity": 1,
			"parent": 4,
			"type": 0,
			"visible": true
		},
		{
			"blend_mode": 0,
			"clipping_mask": false,
			"effects": [],
			"locked": false,
			"metadata": {},
			"name": "Layer 5 - 3d",
			"opacity": 1,
			"parent": 4,
			"type": 2,
			"visible": true
		},
		{
			"blend_mode": -2,
			"clipping_mask": false,
			"effects": [],
			"expanded": true,
			"locked": false,
			"metadata": {},
			"name": "Group 4",
			"opacity": 1,
			"parent": -1,
			"type": 1,
			"visible": true
		}
	],
	"metadata": {},
	"pixelorama_version": "v1.0.4-stable",
	"pxo_version": 4,
	"reference_images": [],
	"size_x": 64,
	"size_y": 64,
	"symmetry_points": [
		63,
		63
	],
	"tags": [],
	"tile_mode_x_basis_x": 64,
	"tile_mode_x_basis_y": 0,
	"tile_mode_y_basis_x": 0,
	"tile_mode_y_basis_y": 64,
	"user_data": "",
	"vanishing_points": []
}
@mgerhardy mgerhardy added the format Voxel or mesh format related label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format Voxel or mesh format related
Projects
None yet
Development

No branches or pull requests

1 participant