Re: Is there a method to have type and range for a keyword?
Posted: Tue Dec 08, 2015 2:18 am
by Invisible Ray
Here are the params in dictionary form.
Note a few variations from the [min,max] construction:
'direct_globalMask_surfaceBlend_Dest' : ['ZERO','ONE','DST_COLOR','SRC_COLOR','INV_DST_COLOR','INV_SRC_COLOR','SRC_ALPHA','INV_SRC_ALPHA','DST_ALPHA','INV_DST_ALPHA','SRC_ALPHA_SATURATE']
'direct_globalMask_surfaceBlend_Src' : ['ZERO','ONE','DST_COLOR','SRC_COLOR','INV_DST_COLOR','INV_SRC_COLOR','SRC_ALPHA','INV_SRC_ALPHA','DST_ALPHA','INV_DST_ALPHA','SRC_ALPHA_SATURATE']
'direct_layer_position_x' : ['(float)-infinite','(float)+infinite'] #these 6 examples are really a description of the type and range of values allowed
'direct_layer_position_y' : ['(float)-infinite','(float)+infinite']
'direct_layer_position_z' : ['(float)-infinite','(float)+infinite']
'direct_layer_scale_x' : [0.0,'(float)infinite']
'direct_layer_scale_y' : [0.0,'(float)infinite']
'direct_layer_scale_z' : [0.0,'(float)infinite']
Besides the above, every item has {key : [min,max]}
Enjoy!
keyMinMax = {'ctrl_layer_activated' : [False,True], 'ctrl_layer_alpha' : [0.0,1.0], 'ctrl_layer_auto_colorASpeed' : [0.0,1.0], 'ctrl_layer_auto_colorAdditiveOn' : [False,True], 'ctrl_layer_auto_colorBSpeed' : [0.0,1.0], 'ctrl_layer_auto_colorCurve' : [0,9], 'ctrl_layer_auto_colorGSpeed' : [0.0,1.0], 'ctrl_layer_auto_colorModulateOn' : [False,True], 'ctrl_layer_auto_colorOn' : [False,True], 'ctrl_layer_auto_colorRSpeed' : [0.0,1.0], 'ctrl_layer_auto_moveCurve' : [0,9], 'ctrl_layer_auto_moveOn' : [False,True], 'ctrl_layer_auto_moveSize' : [0.0,1.0], 'ctrl_layer_auto_moveSize_factor' : [0.0,8.0], 'ctrl_layer_auto_moveSpeed' : [0.0,1.0], 'ctrl_layer_auto_moveStrob' : [0.0,1.0], 'ctrl_layer_auto_moveXY' : [0,2], 'ctrl_layer_auto_rotateOn' : [False,True], 'ctrl_layer_auto_rotateStrob' : [0.0,1.0], 'ctrl_layer_auto_rotateXDirection' : [False,True], 'ctrl_layer_auto_rotateXSpeed' : [0.0,1.0], 'ctrl_layer_auto_rotateYDirection' : [False,True], 'ctrl_layer_auto_rotateYSpeed' : [0.0,1.0], 'ctrl_layer_auto_rotateZDirection' : [False,True], 'ctrl_layer_auto_rotateZSpeed' : [0.0,1.0], 'ctrl_layer_auto_scaleCurve' : [0,9], 'ctrl_layer_auto_scaleOn' : [False,True], 'ctrl_layer_auto_scaleSize' : [0.0,1.0], 'ctrl_layer_auto_scaleSpeed' : [0.0,1.0], 'ctrl_layer_auto_scaleStrob' : [0.0,1.0], 'ctrl_layer_auto_scaleXY' : [0,4], 'ctrl_layer_blendMode' : [0,5], 'ctrl_layer_color_additiveB' : [0.0,1.0], 'ctrl_layer_color_additiveG' : [0.0,1.0], 'ctrl_layer_color_additiveR' : [0.0,1.0], 'ctrl_layer_color_modulateB' : [0.0,1.0], 'ctrl_layer_color_modulateG' : [0.0,1.0], 'ctrl_layer_color_modulateR' : [0.0,1.0], 'ctrl_layer_fieldOfView' : [0,1.0], 'ctrl_layer_focused' : [False,True], 'ctrl_layer_hidden' : [False,True], 'ctrl_layer_media' : [0,135], 'ctrl_layer_mediaSet' : [0,8], 'ctrl_layer_movie_loopMode' : [0.0,2.0], 'ctrl_layer_movie_playDirection' : [0.0,1.0], 'ctrl_layer_movie_positionIn' : [0.0,1.0], 'ctrl_layer_movie_positionOut' : [0.0,1.0], 'ctrl_layer_movie_shuttle1' : [0.0,1.0], 'ctrl_layer_movie_shuttle2' : [0.0,1.0], 'ctrl_layer_movie_speedFactor' : [0.0,1.0], 'ctrl_layer_pixelFX_blurLevel' : [0.0,1.0], 'ctrl_layer_pixelFX_blurOn' : [False,True], 'ctrl_layer_pixelFX_blurType' : [0,1], 'ctrl_layer_pixelFX_contrastBoost' : [False,True], 'ctrl_layer_pixelFX_contrastInverse' : [False,True], 'ctrl_layer_pixelFX_contrastLevel' : [0.0,1.0], 'ctrl_layer_pixelFX_contrastOn' : [False,True], 'ctrl_layer_pixelFX_lightnessLevel' : [0.0,1.0], 'ctrl_layer_pixelFX_lightnessOn' : [False,True], 'ctrl_layer_pixelFX_lightnessType' : [0,1], 'ctrl_layer_pixelFX_lumaOn' : [False,True], 'ctrl_layer_pixelFX_lumaPreserveAlpha' : [False,True], 'ctrl_layer_pixelFX_lumaType' : [0,4], 'ctrl_layer_pixelFX_noiseAlpha' : [False,True], 'ctrl_layer_pixelFX_noiseColored' : [False,True], 'ctrl_layer_pixelFX_noiseLevel' : [0.0,1.0], 'ctrl_layer_pixelFX_noiseOn' : [False,True], 'ctrl_layer_pixelFX_noiseRGBOn' : [False,True], 'ctrl_layer_pixelFX_saturationBoost' : [False,True], 'ctrl_layer_pixelFX_saturationInverse' : [False,True], 'ctrl_layer_pixelFX_saturationLevel' : [0.0,1.0], 'ctrl_layer_pixelFX_saturationOn' : [False,True], 'ctrl_layer_position_x' : ['(float)-infinite','(float)+infinite'], 'ctrl_layer_position_y' : ['(float)-infinite','(float)+infinite'], 'ctrl_layer_record_eraseOn' : [False,True], 'ctrl_layer_record_stopPlayRec' : [False,True], 'ctrl_layer_rotation_x' : [0.0,1.0], 'ctrl_layer_rotation_y' : [0.0,1.0], 'ctrl_layer_rotation_z' : [0.0,1.0], 'ctrl_layer_scale_factorUniform' : [1.0,20.0], 'ctrl_layer_scale_factorXYZ' : [1.0,99.0], 'ctrl_layer_scale_normalizeOn' : [False,True], 'ctrl_layer_scale_uniform' : [0.0,1.0], 'ctrl_layer_scale_x' : [0.0,1.0], 'ctrl_layer_scale_y' : [0.0,1.0], 'ctrl_layer_scale_z' : [0.0,1.0], 'ctrl_layer_soundOutBalance' : [0.0,1.0], 'ctrl_layer_soundOutLevel' : [0.0,1.0], 'ctrl_layer_soundOutLinkToAlphaAndCrossfader' : [False,True], 'ctrl_layer_stackPosition' : [1,10], 'ctrl_layer_transformer_matrix_deepSpace' : [0.0,1.0], 'ctrl_layer_transformer_matrix_extrusionLevel' : [0.0,1.0], 'ctrl_layer_transformer_matrix_flipXeYe' : [0,3], 'ctrl_layer_transformer_matrix_flipXeYu' : [0,3], 'ctrl_layer_transformer_matrix_flipXuYe' : [0,3], 'ctrl_layer_transformer_matrix_flipXuYu' : [0,3], 'ctrl_layer_transformer_matrix_planarSpace' : [0.0,1.0], 'ctrl_layer_transformer_matrix_resize' : [False,True], 'ctrl_layer_transformer_matrix_xValue' : [1,10], 'ctrl_layer_transformer_matrix_yValue' : [1,10], 'ctrl_layer_transformer_matrix_zValue' : [1,10], 'ctrl_layer_transformer_on' : [False,True], 'ctrl_layer_transformer_particle_alphaFadeIn' : [False,True], 'ctrl_layer_transformer_particle_alphaFadeOut' : [False,True], 'ctrl_layer_transformer_particle_applyLocalAngleOn' : [False,True], 'ctrl_layer_transformer_particle_cutOffAngleX' : [0.0,1.0], 'ctrl_layer_transformer_particle_cutOffAngleY' : [0.0,1.0], 'ctrl_layer_transformer_particle_gravity' : [0.0,1.0], 'ctrl_layer_transformer_particle_life' : [0.0,1.0], 'ctrl_layer_transformer_particle_localScale' : [0.0,1.0], 'ctrl_layer_transformer_particle_particlesPerSec' : [0.0,1.0], 'ctrl_layer_transformer_particle_radiusSource' : [0.0,1.0], 'ctrl_layer_transformer_particle_scaleFadeIn' : [False,True], 'ctrl_layer_transformer_particle_scaleFadeOut' : [False,True], 'ctrl_layer_transformer_particle_speed' : [0.0,1.0], 'ctrl_layer_transformer_patch_colorOn' : [False,True], 'ctrl_layer_transformer_patch_dmapingAlphaOn' : [False,True], 'ctrl_layer_transformer_patch_dmappingLevel' : [0.0,1.0], 'ctrl_layer_transformer_patch_fillMode' : [0,2], 'ctrl_layer_transformer_patch_noiseLevel' : [0.0,1.0], 'ctrl_layer_transformer_patch_shapeType' : [0,3], 'ctrl_layer_transformer_patch_soundInputValue' : [0.0,1.0], 'ctrl_layer_transformer_patch_soundInputVdelayOn' : [False,True], 'ctrl_layer_transformer_patch_subdivX' : [1,50], 'ctrl_layer_transformer_patch_subdivY' : [1,50], 'ctrl_layer_transformer_patch_thickness' : [1,20], 'ctrl_layer_transformer_type' : [0,2], 'ctrl_layer_transition_durationDelta' : [0,2], 'ctrl_layer_transition_type' : [0.0,1.0], 'ctrl_layerStack_focusPosition' : [1,10], 'ctrl_master_TimeRecPosition' : [1,10], 'ctrl_master_addColorB' : [1,10], 'ctrl_master_addColorG' : [1,10], 'ctrl_master_addColorR' : [1,10], 'ctrl_master_alpha' : [1,10], 'ctrl_master_backgroundColorB' : [1,10], 'ctrl_master_backgroundColorG' : [1,10], 'ctrl_master_backgroundColorR' : [1,10], 'ctrl_master_crossfader_alphaGroupAOn' : [1,10], 'ctrl_master_crossfader_alphaGroupBOn' : [1,10], 'ctrl_master_crossfader_scaleGroupAOn' : [1,10], 'ctrl_master_crossfader_scaleGroupBOn' : [1,10], 'ctrl_master_crossfader_slider' : [1,10], 'ctrl_master_flash' : [False,True], 'ctrl_master_invColor' : [False,True], 'ctrl_master_invColorB' : [1,10], 'ctrl_master_invColorG' : [1,10], 'ctrl_master_invColorR' : [1,10], 'ctrl_master_layerSetGroupA' : [0,7], 'ctrl_master_layerSetGroupB' : [0,7], 'ctrl_master_scale' : [1,10], 'ctrl_master_soundLevelCapture' : [1,10], 'ctrl_master_soundOutLevel' : [1,10], 'ctrl_master_speed' : [1,10], 'ctrl_master_still' : [False,True], 'ctrl_master_traceLevel' : [0.0,1.0], 'ctrl_ui_minimalizeMainWindow' : [False,True], 'ctrl_ui_previewWindowMode' : [0,6], 'direct_globalMask_color_additiveB' : [0.0,1.0], 'direct_globalMask_color_additiveG' : [0.0,1.0], 'direct_globalMask_color_additiveR' : [0.0,1.0], 'direct_globalMask_color_modulateA' : [0.0,1.0], 'direct_globalMask_color_modulateB' : [0.0,1.0], 'direct_globalMask_color_modulateG' : [0.0,1.0], 'direct_globalMask_color_modulateR' : [0.0,1.0], 'direct_globalMask_media' : [0,135], 'direct_globalMask_movie_speedFactor' : [0.0,1.0], 'direct_globalMask_position_x' : ['(float)-infinite','(float)+infinite'], 'direct_globalMask_movie_speedFactor' : [0.0,1.0], 'direct_globalMask_position_y' : ['(float)-infinite','(float)+infinite'], 'direct_globalMask_scale_uniform' : [0.0,1.0], 'direct_globalMask_scale_x' : [0.0,1.0], 'direct_globalMask_scale_y' : [0.0,1.0], 'direct_globalMask_show_inOutput' : [0,1], 'direct_globalMask_show_inPreview' : [0,1], 'direct_globalMask_surfaceBlend_Dest' : ['ZERO','ONE','DST_COLOR','SRC_COLOR','INV_DST_COLOR','INV_SRC_COLOR','SRC_ALPHA','INV_SRC_ALPHA','DST_ALPHA','INV_DST_ALPHA','SRC_ALPHA_SATURATE'], 'direct_globalMask_surfaceBlend_Src' : ['ZERO','ONE','DST_COLOR','SRC_COLOR','INV_DST_COLOR','INV_SRC_COLOR','SRC_ALPHA','INV_SRC_ALPHA','DST_ALPHA','INV_DST_ALPHA','SRC_ALPHA_SATURATE'], 'direct_layer_color_additiveB' : [0.0,1.0], 'direct_layer_color_additiveG' : [0.0,1.0], 'direct_layer_color_additiveR' : [0.0,1.0], 'direct_layer_color_modulateA' : [0.0,1.0], 'direct_layer_color_modulateB' : [0.0,1.0], 'direct_layer_color_modulateG' : [0.0,1.0], 'direct_layer_color_modulateR' : [0.0,1.0], 'direct_layer_localPosition_x' : ['(float)-infinite','(float)+infinite'], 'direct_layer_localPosition_y' : ['(float)-infinite','(float)+infinite'], 'direct_layer_localPosition_z' : ['(float)-infinite','(float)+infinite'], 'direct_layer_media_timePosition' : [0,1], 'direct_layer_position_x' : ['(float)-infinite','(float)+infinite'], 'direct_layer_position_y' : ['(float)-infinite','(float)+infinite'], 'direct_layer_position_z' : ['(float)-infinite','(float)+infinite'], 'direct_layer_rotation_x' : [0.0,1.0], 'direct_layer_rotation_y' : [0.0,1.0], 'direct_layer_rotation_z' : [0.0,1.0], 'direct_layer_scale_x' : [0.0,'(float)infinite'], 'direct_layer_scale_y' : [0.0,'(float)infinite'], 'direct_layer_scale_z' : [0.0,'(float)infinite'], 'direct_layer_transformer_particle_localColor' : [0.0,1], 'direct_layer_transformer_particle_localColor_aditiveB' : [0.0,1], 'direct_layer_transformer_particle_localColor_aditiveG' : [0.0,1], 'direct_layer_transformer_particle_localColor_aditiveR' : [0.0,1], 'direct_layer_transformer_particle_localColor_modulateA' : [0.0,1], 'direct_layer_transformer_particle_localColor_modulateB' : [0.0,1], 'direct_layer_transformer_particle_localColor_modulateG' : [0.0,1], 'direct_layer_transformer_particle_localColor_modulateR' : [0.0,1], 'direct_preview_position_z' : [0.0,50], 'direct_soundInputLevel' : [0.0,1.0, ]}