Custom Data JSON

Structure of the custom data JSON

The custom data JSON file can be used to add personal items to certain UI lists. The path to the file can be set in the add-on preferences.

Data

The add-on expects a specific structure to be found in the JSON. The specific sections must be named as required, and placed in the root object of the JSON file.

Due to the JSON syntax specifications, file paths should use /, or the \ characters must be properly escaped as \\.

Proxies

Section to define personal items for the Common Proxies list. The key value is the name that will be shown in the list, the value is the path to the proxy model.

"proxies": {
	"Personal proxy 1": "path/to/proxy_1.p3d",
	"Presonal proxy 2": "path/to/proxy_2.p3d"
}
Named Properties

Section to define personal items for the Common Named Properties list. The key is the name of the named property, the value is the value of the named property. A list of named properties supported by the engine can be found on the Community Wiki.

"namedprops": {
	"property_1": "value_1",
	"property_2": "value_2"
}
Materials

Section to define personal items for the Common Materials list. The key value is the name that will be shown in the list, the value is the path to the material file.

"materials": {
	"Material 1": "path/to/material_1.rvmat",
	"Material 2": "path/to/material_2.rvmat"
}
Penetration Materials

Section to define personal items for the Common Materials list. The key value is the name that will be shown in the list, the value is the path to the material file.

"materials_penetration": {
	"Penetration Material 1": "path/to/pen_material_1.rvmat",
	"Penetration Material 2": "path/to/pen_material_2.rvmat"
}
Procedural Textures

Section to define personal items for the Common Procedurals list. The key value is the name that will be shown in the list, the value is the procedural texture string to paste.

"procedurals": {
	"Procedural": "#(argb,512,512,1)r2t(rendertarget0,1.0)"
}
RVMAT Templates

Section to define personal items for the Templates tool of the Materials tools. The key value is the name that will be shown in the list, the value is the path to a template file.

"rvmat_templates": {
	"Template": "path/to/template.rvmat_template"
}

Example

custom_data.json
{
	"proxies": {
		"Personal proxy 1": "path/to/proxy_1.p3d",
		"Presonal proxy 2": "path/to/proxy_2.p3d"
	},
	"namedprops": {
		"property_1": "value_1",
		"property_2": "value_2"
	},
	"materials": {
		"Material 1": "path/to/material_1.rvmat",
		"Material 2": "path/to/material_2.rvmat"
	},
	"materials_penetration": {
		"Penetration Material 1": "path/to/pen_material_1.rvmat",
		"Penetration Material 2": "path/to/pen_material_2.rvmat"
	},
	"procedurals": {
		"Procedural": "#(argb,512,512,1)r2t(rendertarget0,1.0)"
	},
	"rvmat_templates": {
		"Template": "path/to/template.rvmat_template"
	}
}

Last updated