Skip to content

Commit

Permalink
Update metadata.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHanke authored May 1, 2024
1 parent 6c8645b commit 6c292b7
Showing 1 changed file with 24 additions and 292 deletions.
316 changes: 24 additions & 292 deletions startup/GafferCyclesUI/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,162 +46,6 @@
"TT" : "General",
"TRT" : "General",
},
"image_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"environment_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"sky_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"noise_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"gradient_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"voronoi_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"checker_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"ies_light" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"musgrave_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"wave_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"magic_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
"brick_texture" : {
"tex_mapping__translation" : "Texture Mapping",
"tex_mapping__rotation" : "Texture Mapping",
"tex_mapping__scale" : "Texture Mapping",
"tex_mapping__min" : "Texture Mapping",
"tex_mapping__max" : "Texture Mapping",
"tex_mapping__use_minmax" : "Texture Mapping",
"tex_mapping__x_mapping" : "Texture Mapping",
"tex_mapping__y_mapping" : "Texture Mapping",
"tex_mapping__z_mapping" : "Texture Mapping",
"tex_mapping__type" : "Texture Mapping",
"tex_mapping__projection" : "Texture Mapping",
},
}

names = {
Expand Down Expand Up @@ -352,33 +196,11 @@
"tfm" : "Transform",
},
"image_texture" : {
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
"alpha_type" : "Alpha Type",
"projection_blend" : "Projection Blend",
},
"environment_texture" : {
"alpha_type" : "Alpha Type",
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"sky_texture" : {
"sky_type" : "Type",
Expand All @@ -392,131 +214,28 @@
"air_density" : "Air",
"dust_density" : "Dust",
"ozone_density" : "Ozone",
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"noise_texture" : {
"use_normalize" : "Normalize",
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"gradient_texture" : {
"gradient_type" : "Gradient Type",
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"voronoi_texture" : {
"use_normalize" : "Normalize",
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"checker_texture" : {
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"ies_light" : {
"ies" : "IES",
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"musgrave_texture" : {
"musgrave_type" : "Musgrave Type",
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"wave_texture" : {
"wave_type" : "Wave Type",
"bands_direction" : "Bands Direction",
"rings_direction" : "Rings Direction",
"detail_scale" : "Detail Scale",
"detail_roughness" : "Detail Roughness",
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"magic_texture" : {
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"brick_texture" : {
"offset_frequency" : "Offset Frequency",
Expand All @@ -525,17 +244,6 @@
"mortar_smooth" : "Mortar Smooth",
"brick_width" : "Brick Width",
"row_height" : "Row Height",
"tex_mapping__translation" : "Translation",
"tex_mapping__rotation" : "Rotation",
"tex_mapping__scale" : "Scale",
"tex_mapping__min" : "Min",
"tex_mapping__max" : "Max",
"tex_mapping__use_minmax" : "Use Min Max",
"tex_mapping__x_mapping" : "X Mapping",
"tex_mapping__y_mapping" : "Y Mapping",
"tex_mapping__z_mapping" : "Z Mapping",
"tex_mapping__type" : "Type",
"tex_mapping__projection" : "Projection",
},
"hair_bsdf" : {
"roughness_u" : "Roughness U",
Expand Down Expand Up @@ -780,6 +488,18 @@ def default( plug ) :

Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.*", "layout:section", section )

Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__translation", "layout:section", "Texture Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__rotation", "layout:section", "Texture Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__scale", "layout:section", "Texture Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__min", "layout:section", "Texture Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__max", "layout:section", "Texture Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__use_minmax", "layout:section", "Texture Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__x_mapping", "layout:section", "Texture Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__y_mapping", "layout:section", "Texture Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__z_mapping", "layout:section", "Texture Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__type", "layout:section", "Texture Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__projection", "layout:section", "Texture Mapping" )

### indexes ###

Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.*", "layout:index", index )
Expand All @@ -799,6 +519,18 @@ def default( plug ) :
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.value_point", "label", "Point Value" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.value_string", "label", "String Value" )

Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__translation", "label", "Translation" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__rotation", "label", "Rotation" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__scale", "label", "Scale" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__min", "label", "Min" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__max", "label", "Max" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__use_minmax", "label", "Use Min Max" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__x_mapping", "label", "X Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__y_mapping", "label", "Y Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__z_mapping", "label", "Z Mapping" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__type", "label", "Type" )
Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.tex_mapping__projection", "label", "Projection" )

### defaults ###

Gaffer.Metadata.registerValue( GafferCycles.CyclesShader, "parameters.*", "userDefault", default )
Expand Down

0 comments on commit 6c292b7

Please sign in to comment.