Page MenuHome

texture.py
No OneTemporary

texture.py

from manage_extra.node_types import _file_embedded_schema
node_type_texture = {
'name': 'texture',
'description': 'Image Texture',
# This data type does not have parent limitations (can be child
# of any node). An empty parent declaration is required.
'parent': ['group',],
'dyn_schema': {
'status': {
'type': 'string',
'allowed': [
'published',
'pending',
'processing',
],
},
# Used for sorting within the context of a group
'order': {'type': 'integer'},
# We point to the file variations (and use it to extract any relevant
# variation useful for our scope).
'files': {
'type': 'list',
'schema': {
'type': 'dict',
'schema': {
'file': _file_embedded_schema,
'is_tileable': {'type': 'boolean'},
'map_type': {
'type': 'string',
'allowed': [
'spec',
'bump',
'nor',
'col',
'translucency',
'emission',
'alpha'
]}
}
}
},
# Properties of the texture files
'is_tileable': {'type': 'boolean'},
'is_landscape': {'type': 'boolean'},
# Resolution in 'WIDTHxHEIGHT' format (e.g. 512x512)
'resolution': {'type': 'string'},
'aspect_ratio': {'type': 'float'},
# Tags for search
'tags': {
'type': 'list',
'schema': {
'type': 'string'
}
},
# Simple string to represent hierarchical categories. Should follow
# this schema: "Root > Nested Category > One More Nested Category"
'categories': {
'type': 'string'
}
},
'form_schema': {
'status': {},
'content_type': {'visible': False},
'files': {'visible': False},
'is_tileable': {},
'is_landscape': {},
'resolution': {},
'aspect_ratio': {},
'order': {},
'tags' : {},
'categories': {}
},
'permissions': {
}
}

File Metadata

Mime Type
text/x-python
Expires
Sat, Jul 9, 7:49 AM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c3/f9/4185620c3514cd0625412ebfd20e

Event Timeline