24 lines
		
	
	
		
			970 B
		
	
	
	
		
			Python
		
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			970 B
		
	
	
	
		
			Python
		
	
	
|  | import enum | |||
|  | 
 | |||
|  | psd_standard_width = 3000 | |||
|  | psd_standard_height = 2000 | |||
|  | psd_standard_width2 = 2000 | |||
|  | psd_standard_height2 = 3000 | |||
|  | 
 | |||
|  | 
 | |||
|  | class error_log(enum.Enum): | |||
|  |     psd_name_error = 'psd名称格式不正确' | |||
|  |     psd_size_error = 'psd尺寸大小不正确' | |||
|  |     exit_repeat_layer = '存在重复图层' | |||
|  |     psd_item_name_error = 'titem分组下存在不是titem的图层' | |||
|  |     item_group_not_exit = 'titem分组不存在' | |||
|  |     psd_not_exit_base = '不存在base底图' | |||
|  |     exit_more_base = '存在多个base图层' | |||
|  |     psd_not_full = '没有item对应的full' | |||
|  |     psd_not_fullcolor = '没有item对应的fullcolor' | |||
|  |     psd_not_itemcolor = '没有item对应的itemcolor' | |||
|  |     item_or_full_num_error = 'item,full或itemcolor,fullcolor的个数不全部相同' | |||
|  |     name_contains_spaces = '该图层名字中包含空格' | |||
|  |     psd_mask_not_full = '没有mask对应的full' | |||
|  |     layer_not_need = '图层第一级有不属于我们需要的图层' | |||
|  |     psd_cmyk = 'psd是CMYK的色彩空间' |