* Point density texture works again
[blender.git] / release / ui / buttons_texture.py
1         
2 import bpy
3
4 class TextureButtonsPanel(bpy.types.Panel):
5         __space_type__ = "BUTTONS_WINDOW"
6         __region_type__ = "WINDOW"
7         __context__ = "texture"
8         
9         def poll(self, context):
10                 return (context.texture and context.texture.type != 'NONE')
11                 
12 class TEXTURE_PT_preview(TextureButtonsPanel):
13         __label__ = "Preview"
14
15         def draw(self, context):
16                 layout = self.layout
17                 
18                 tex = context.texture
19                 ma = context.material
20                 la = context.lamp
21                 wo = context.world
22                 br = context.brush
23                 
24                 if ma:
25                         layout.template_preview(tex, parent=ma)
26                 elif la:
27                         layout.template_preview(tex, parent=la)
28                 elif wo:
29                         layout.template_preview(tex, parent=wo)
30                 elif br:
31                         layout.template_preview(tex, parent=br)
32                 else:
33                         layout.template_preview(tex)
34
35 class TEXTURE_PT_context_texture(TextureButtonsPanel):
36         __show_header__ = False
37
38         def poll(self, context):
39                 return (context.material or context.world or context.lamp or context.brush or context.texture)
40
41         def draw(self, context):
42                 layout = self.layout
43
44                 tex = context.texture
45                 
46                 id = context.material
47                 if not id: id = context.lamp
48                 if not id: id = context.world
49                 if not id: id = context.brush
50                 
51                 space = context.space_data
52
53                 if id:
54                         row = layout.row()
55                         row.template_list(id, "textures", id, "active_texture_index", rows=2)
56                         
57                 split = layout.split(percentage=0.65)
58
59                 if id:
60                         split.template_ID(id, "active_texture", new="texture.new")
61                 elif tex:
62                         split.template_ID(space, "pin_id")
63
64                 if (not space.pin_id) and (     context.sculpt_object or \
65                                                                         context.vertex_paint_object or \
66                                                                         context.weight_paint_object or \
67                                                                         context.texture_paint_object \
68                                                                         ):
69                         split.itemR(space, "brush_texture", text="Brush", toggle=True)
70                 
71                 layout.itemS()
72
73                 if tex:
74                         split = layout.split(percentage=0.2)
75                 
76                         split.itemL(text="Type:")
77                         split.itemR(tex, "type", text="")
78
79 class TEXTURE_PT_mapping(TextureButtonsPanel):
80         __label__ = "Mapping"
81         
82         def poll(self, context):
83                 return (context.texture_slot and context.texture and context.texture.type != 'NONE')
84
85         def draw(self, context):
86                 layout = self.layout
87                 
88                 ma = context.material
89                 la = context.lamp
90                 wo = context.world
91                 br = context.brush
92                 tex = context.texture_slot
93                 textype = context.texture
94
95                 if not br:
96                         split = layout.split(percentage=0.3)
97                         col = split.column()
98                         col.itemL(text="Coordinates:")
99                         col = split.column()
100                         col.itemR(tex, "texture_coordinates", text="")
101
102                         if tex.texture_coordinates == 'ORCO':
103                                 """
104                                 ob = context.object
105                                 if ob and ob.type == 'MESH':
106                                         split = layout.split(percentage=0.3)
107                                         split.itemL(text="Mesh:")
108                                         split.itemR(ob.data, "texco_mesh", text="")
109                                 """
110                         elif tex.texture_coordinates == 'UV':
111                                 split = layout.split(percentage=0.3)
112                                 split.itemL(text="Layer:")
113                                 split.itemR(tex, "uv_layer", text="")
114                         elif tex.texture_coordinates == 'OBJECT':
115                                 split = layout.split(percentage=0.3)
116                                 split.itemL(text="Object:")
117                                 split.itemR(tex, "object", text="")
118                         
119                 if ma:
120                         split = layout.split(percentage=0.3)
121                         split.itemL(text="Projection:")
122                         split.itemR(tex, "mapping", text="")
123
124                         split = layout.split()
125                         
126                         col = split.column()
127                         if tex.texture_coordinates in ('ORCO', 'UV'):
128                                 col.itemR(tex, "from_dupli")
129                         elif tex.texture_coordinates == 'OBJECT':
130                                 col.itemR(tex, "from_original")
131                         else:
132                                 col.itemL()
133                         
134                         col = split.column()
135                         row = col.row()
136                         row.itemR(tex, "x_mapping", text="")
137                         row.itemR(tex, "y_mapping", text="")
138                         row.itemR(tex, "z_mapping", text="")
139
140                 if br:
141                         layout.itemR(tex, "brush_map_mode", expand=True)
142                         
143                         row = layout.row()
144                         row.active = tex.brush_map_mode in ('FIXED', 'TILED')
145                         row.itemR(tex, "angle")
146
147                         row = layout.row()
148                         row.active = tex.brush_map_mode in ('TILED', '3D')
149                         row.column().itemR(tex, "size")
150                 else:
151                         row = layout.row()
152                         row.column().itemR(tex, "offset")
153                         row.column().itemR(tex, "size")
154
155 class TEXTURE_PT_influence(TextureButtonsPanel):
156         __label__ = "Influence"
157         
158         def poll(self, context):
159                 return (context.texture_slot and context.texture and context.texture.type != 'NONE' and (not context.brush))
160
161         def draw(self, context):
162                 layout = self.layout
163                 
164                 ma = context.material
165                 la = context.lamp
166                 wo = context.world
167                 br = context.brush
168                 textype = context.texture
169                 tex = context.texture_slot
170
171                 def factor_but(layout, active, toggle, factor, name):
172                         row = layout.row(align=True)
173                         row.itemR(tex, toggle, text="")
174                         sub = row.row()
175                         sub.active = active
176                         sub.itemR(tex, factor, text=name, slider=True)
177                 
178                 if ma:
179                         if ma.type in ['SURFACE', 'HALO', 'WIRE']:
180                                 split = layout.split()
181                                 
182                                 col = split.column()
183                                 col.itemL(text="Diffuse:")
184                                 factor_but(col, tex.map_diffuse, "map_diffuse", "diffuse_factor", "Intensity")
185                                 factor_but(col, tex.map_colordiff, "map_colordiff", "colordiff_factor", "Color")
186                                 factor_but(col, tex.map_alpha, "map_alpha", "alpha_factor", "Alpha")
187                                 factor_but(col, tex.map_translucency, "map_translucency", "translucency_factor", "Translucency")
188
189                                 col.itemL(text="Specular:")
190                                 factor_but(col, tex.map_specular, "map_specular", "specular_factor", "Intensity")
191                                 factor_but(col, tex.map_colorspec, "map_colorspec", "colorspec_factor", "Color")
192                                 factor_but(col, tex.map_hardness, "map_hardness", "hardness_factor", "Hardness")
193
194                                 col = split.column()
195                                 col.itemL(text="Shading:")
196                                 factor_but(col, tex.map_ambient, "map_ambient", "ambient_factor", "Ambient")
197                                 factor_but(col, tex.map_emit, "map_emit", "emit_factor", "Emit")
198                                 factor_but(col, tex.map_mirror, "map_mirror", "mirror_factor", "Mirror")
199                                 factor_but(col, tex.map_raymir, "map_raymir", "raymir_factor", "Ray Mirror")
200
201                                 col.itemL(text="Geometry:")
202                                 factor_but(col, tex.map_normal, "map_normal", "normal_factor", "Normal")
203                                 factor_but(col, tex.map_warp, "map_warp", "warp_factor", "Warp")
204                                 factor_but(col, tex.map_displacement, "map_displacement", "displacement_factor", "Displace")
205
206                                 #sub = col.column()
207                                 #sub.active = tex.map_translucency or tex.map_emit or tex.map_alpha or tex.map_raymir or tex.map_hardness or tex.map_ambient or tex.map_specularity or tex.map_reflection or tex.map_mirror
208                                 #sub.itemR(tex, "default_value", text="Amount", slider=True)
209                         elif ma.type == 'VOLUME':
210                                 split = layout.split()
211                                 
212                                 col = split.column()
213                                 factor_but(col, tex.map_density, "map_density", "density_factor", "Density")
214                                 factor_but(col, tex.map_emission, "map_emission", "emission_factor", "Emission")
215                                 factor_but(col, tex.map_absorption, "map_absorption", "absorption_factor", "Absorption")
216                                 factor_but(col, tex.map_scattering, "map_scattering", "scattering_factor", "Scattering")
217                                 
218                                 col = split.column()
219                                 col.itemL(text=" ")
220                                 factor_but(col, tex.map_alpha, "map_coloremission", "coloremission_factor", "Emission Color")
221                                 factor_but(col, tex.map_colorabsorption, "map_colorabsorption", "colorabsorption_factor", "Absorption Color")
222                                 
223
224                 elif la:
225                         row = layout.row()
226                         factor_but(row, tex.map_color, "map_color", "color_factor", "Color")
227                         factor_but(row, tex.map_shadow, "map_shadow", "shadow_factor", "Shadow")
228                 elif wo:
229                         split = layout.split()
230                         
231                         col = split.column()
232                         factor_but(col, tex.map_blend, "map_blend", "blend_factor", "Blend")
233                         factor_but(col, tex.map_horizon, "map_horizon", "horizon_factor", "Horizon")
234
235                         col = split.column()
236                         factor_but(col, tex.map_zenith_up, "map_zenith_up", "zenith_up_factor", "Zenith Up")
237                         factor_but(col, tex.map_zenith_down, "map_zenith_down", "zenith_down_factor", "Zenith Down")
238
239                 layout.itemS()
240                 
241                 split = layout.split()
242
243                 col = split.column()
244                 col.itemR(tex, "blend_type", text="Blend")
245                 col.itemR(tex, "rgb_to_intensity")
246                 sub = col.column()
247                 sub.active = tex.rgb_to_intensity
248                 sub.itemR(tex, "color", text="")
249
250                 col = split.column()
251                 col.itemR(tex, "negate", text="Negative")
252                 col.itemR(tex, "stencil")
253                 if ma or wo:
254                         col.itemR(tex, "default_value", text="DVar", slider=True)
255
256 class TEXTURE_PT_colors(TextureButtonsPanel):
257         __label__ = "Colors"
258         __default_closed__ = True
259
260         def draw(self, context):
261                 layout = self.layout
262                 
263                 tex = context.texture
264
265                 layout.itemR(tex, "use_color_ramp", text="Ramp")
266                 if tex.use_color_ramp:
267                         layout.template_color_ramp(tex.color_ramp, expand=True)
268
269                 split = layout.split()
270                 
271                 split.itemR(tex, "rgb_factor", text="Multiply RGB")
272
273                 col = split.column()
274                 col.itemL(text="Adjust:")
275                 col.itemR(tex, "brightness")
276                 col.itemR(tex, "contrast")
277                 
278 # Texture Type Panels #
279
280 class TEXTURE_PT_clouds(TextureButtonsPanel):
281         __label__ = "Clouds"
282         
283         def poll(self, context):
284                 tex = context.texture
285                 return (tex and tex.type == 'CLOUDS')
286
287         def draw(self, context):
288                 layout = self.layout
289                 
290                 tex = context.texture
291                 
292                 layout.itemR(tex, "stype", expand=True)
293                 layout.itemL(text="Noise:")
294                 layout.itemR(tex, "noise_type", text="Type", expand=True)
295                 layout.itemR(tex, "noise_basis", text="Basis")
296                 
297                 flow = layout.column_flow()
298                 flow.itemR(tex, "noise_size", text="Size")
299                 flow.itemR(tex, "noise_depth", text="Depth")
300                 flow.itemR(tex, "nabla", text="Nabla")
301
302 class TEXTURE_PT_wood(TextureButtonsPanel):
303         __label__ = "Wood"
304         
305         def poll(self, context):
306                 tex = context.texture
307                 return (tex and tex.type == 'WOOD')
308
309         def draw(self, context):
310                 layout = self.layout
311                 
312                 tex = context.texture
313                 
314                 layout.itemR(tex, "noisebasis2", expand=True)
315                 layout.itemR(tex, "stype", expand=True)
316                 
317                 col = layout.column()
318                 col.active = tex.stype in ('RINGNOISE', 'BANDNOISE')
319                 col.itemL(text="Noise:")
320                 col.row().itemR(tex, "noise_type", text="Type", expand=True)
321                 col.itemR(tex, "noise_basis", text="Basis")
322                 
323                 flow = layout.column_flow()
324                 flow.active = tex.stype in ('RINGNOISE', 'BANDNOISE')
325                 flow.itemR(tex, "noise_size", text="Size")
326                 flow.itemR(tex, "turbulence")
327                 flow.itemR(tex, "nabla")
328                 
329 class TEXTURE_PT_marble(TextureButtonsPanel):
330         __label__ = "Marble"
331         
332         def poll(self, context):
333                 tex = context.texture
334                 return (tex and tex.type == 'MARBLE')
335
336         def draw(self, context):
337                 layout = self.layout
338                 
339                 tex = context.texture
340                 
341                 layout.itemR(tex, "stype", expand=True)
342                 layout.itemR(tex, "noisebasis2", expand=True)
343                 layout.itemL(text="Noise:")
344                 layout.itemR(tex, "noise_type", text="Type", expand=True)
345                 layout.itemR(tex, "noise_basis", text="Basis")
346                 
347                 flow = layout.column_flow()     
348                 flow.itemR(tex, "noise_size", text="Size")
349                 flow.itemR(tex, "noise_depth", text="Depth")
350                 flow.itemR(tex, "turbulence")
351                 flow.itemR(tex, "nabla")
352
353 class TEXTURE_PT_magic(TextureButtonsPanel):
354         __label__ = "Magic"
355         
356         def poll(self, context):
357                 tex = context.texture
358                 return (tex and tex.type == 'MAGIC')
359
360         def draw(self, context):
361                 layout = self.layout
362                 
363                 tex = context.texture
364                         
365                 row = layout.row()
366                 row.itemR(tex, "noise_depth", text="Depth")
367                 row.itemR(tex, "turbulence")
368
369 class TEXTURE_PT_blend(TextureButtonsPanel):
370         __label__ = "Blend"
371         
372         def poll(self, context):
373                 tex = context.texture
374                 return (tex and tex.type == 'BLEND')
375
376         def draw(self, context):
377                 layout = self.layout
378                 
379                 tex = context.texture
380
381                 layout.itemR(tex, "progression")
382                 layout.itemR(tex, "flip_axis")
383                         
384 class TEXTURE_PT_stucci(TextureButtonsPanel):
385         __label__ = "Stucci"
386         
387         def poll(self, context):
388                 tex = context.texture
389                 return (tex and tex.type == 'STUCCI')
390
391         def draw(self, context):
392                 layout = self.layout
393                 
394                 tex = context.texture
395                 
396                 layout.itemR(tex, "stype", expand=True)
397                 layout.itemL(text="Noise:")
398                 layout.itemR(tex, "noise_type", text="Type", expand=True)
399                 layout.itemR(tex, "noise_basis", text="Basis")
400                 
401                 row = layout.row()
402                 row.itemR(tex, "noise_size", text="Size")
403                 row.itemR(tex, "turbulence")
404                 
405 class TEXTURE_PT_image(TextureButtonsPanel):
406         __label__ = "Image"
407         
408         def poll(self, context):
409                 tex = context.texture
410                 return (tex and tex.type == 'IMAGE')
411
412         def draw(self, context):
413                 layout = self.layout
414                 
415                 tex = context.texture
416
417                 layout.template_texture_image(tex)
418
419 class TEXTURE_PT_image_sampling(TextureButtonsPanel):
420         __label__ = "Image Sampling"
421         __default_closed__ = True
422         
423         def poll(self, context):
424                 tex = context.texture
425                 return (tex and tex.type == 'IMAGE')
426
427         def draw(self, context):
428                 layout = self.layout
429                 
430                 tex = context.texture
431                 slot = context.texture_slot
432                 
433                 split = layout.split()
434                 
435                 """
436                 col = split.column()            
437                 col.itemR(tex, "flip_axis")
438                 col.itemR(tex, "normal_map")
439                 if slot:
440                         row = col.row()
441                         row.active = tex.normal_map
442                         row.itemR(slot, "normal_map_space", text="")
443                 """
444
445                 col = split.column()
446                 col.itemL(text="Alpha:")
447                 col.itemR(tex, "use_alpha", text="Use")
448                 col.itemR(tex, "calculate_alpha", text="Calculate")
449                 col.itemR(tex, "invert_alpha", text="Invert")
450
451                 col.itemL(text="Flip:")
452                 col.itemR(tex, "flip_axis", text="X/Y Axis")
453
454                 col = split.column() 
455                 col.itemL(text="Filter:")
456                 col.itemR(tex, "filter", text="")
457                 col.itemR(tex, "mipmap")
458                 
459                 row = col.row()
460                 row.active = tex.mipmap
461                 row.itemR(tex, "mipmap_gauss", text="Gauss")
462                 
463                 col.itemR(tex, "interpolation")
464                 if tex.mipmap and tex.filter != 'DEFAULT':
465                         if tex.filter == 'FELINE':
466                                 col.itemR(tex, "filter_probes", text="Probes")
467                         else:
468                                 col.itemR(tex, "filter_eccentricity", text="Eccentricity")
469
470 class TEXTURE_PT_image_mapping(TextureButtonsPanel):
471         __label__ = "Image Mapping"
472         __default_closed__ = True
473         
474         def poll(self, context):
475                 tex = context.texture
476                 return (tex and tex.type == 'IMAGE')
477
478         def draw(self, context):
479                 layout = self.layout
480                 
481                 tex = context.texture
482                 
483                 layout.itemR(tex, "extension")
484                 
485                 split = layout.split()
486                 
487                 if tex.extension == 'REPEAT': 
488                         col = split.column(align=True)
489                         col.itemL(text="Repeat:")
490                         col.itemR(tex, "repeat_x", text="X")
491                         col.itemR(tex, "repeat_y", text="Y")
492                         
493                         col = split.column(align=True)
494                         col.itemL(text="Mirror:")
495                         col.itemR(tex, "mirror_x", text="X")
496                         col.itemR(tex, "mirror_y", text="Y")
497                 elif tex.extension == 'CHECKER': 
498                         col = split.column(align=True)
499                         row = col.row()
500                         row.itemR(tex, "checker_even", text="Even")
501                         row.itemR(tex, "checker_odd", text="Odd")
502
503                         split.itemR(tex, "checker_distance", text="Distance")
504
505                 layout.itemS()
506
507                 split = layout.split()
508                 
509                 col = split.column(align=True)
510                 #col.itemR(tex, "crop_rectangle")
511                 col.itemL(text="Crop Minimum:")
512                 col.itemR(tex, "crop_min_x", text="X")
513                 col.itemR(tex, "crop_min_y", text="Y")
514                 
515                 col = split.column(align=True)
516                 col.itemL(text="Crop Maximum:")
517                 col.itemR(tex, "crop_max_x", text="X")
518                 col.itemR(tex, "crop_max_y", text="Y")
519         
520 class TEXTURE_PT_plugin(TextureButtonsPanel):
521         __label__ = "Plugin"
522         
523         def poll(self, context):
524                 tex = context.texture
525                 return (tex and tex.type == 'PLUGIN')
526
527         def draw(self, context):
528                 layout = self.layout
529                 
530                 tex = context.texture
531                 
532                 layout.itemL(text="Nothing yet")
533                 
534 class TEXTURE_PT_envmap(TextureButtonsPanel):
535         __label__ = "Environment Map"
536         
537         def poll(self, context):
538                 tex = context.texture
539                 return (tex and tex.type == 'ENVIRONMENT_MAP')
540
541         def draw(self, context):
542                 layout = self.layout
543                 
544                 tex = context.texture
545                 
546                 layout.itemL(text="Nothing yet")
547                 
548 class TEXTURE_PT_musgrave(TextureButtonsPanel):
549         __label__ = "Musgrave"
550         
551         def poll(self, context):
552                 tex = context.texture
553                 return (tex and tex.type == 'MUSGRAVE')
554
555         def draw(self, context):
556                 layout = self.layout
557                 
558                 tex = context.texture
559                 
560                 layout.itemR(tex, "musgrave_type")      
561                 
562                 split = layout.split()
563                 
564                 col = split.column()
565                 col.itemR(tex, "highest_dimension", text="Dimension")
566                 col.itemR(tex, "lacunarity")
567                 col.itemR(tex, "octaves")
568                 
569                 col = split.column() 
570                 if (tex.musgrave_type in ('HETERO_TERRAIN', 'RIDGED_MULTIFRACTAL', 'HYBRID_MULTIFRACTAL')):
571                         col.itemR(tex, "offset")
572                 if (tex.musgrave_type in ('RIDGED_MULTIFRACTAL', 'HYBRID_MULTIFRACTAL')):
573                         col.itemR(tex, "gain")
574                         col.itemR(tex, "noise_intensity", text="Intensity")
575                 
576                 layout.itemL(text="Noise:")
577                 
578                 layout.itemR(tex, "noise_basis", text="Basis")
579                 
580                 row = layout.row()
581                 row.itemR(tex, "noise_size", text="Size")
582                 row.itemR(tex, "nabla")
583
584 class TEXTURE_PT_voronoi(TextureButtonsPanel):
585         __label__ = "Voronoi"
586         
587         def poll(self, context):
588                 tex = context.texture
589                 return (tex and tex.type == 'VORONOI')
590
591         def draw(self, context):
592                 layout = self.layout
593                 
594                 tex = context.texture
595                 
596                 split = layout.split()
597                 
598                 col = split.column()   
599                 col.itemL(text="Distance Metric:")
600                 col.itemR(tex, "distance_metric", text="")
601                 sub = col.column()
602                 sub.active = tex.distance_metric == 'MINKOVSKY'
603                 sub.itemR(tex, "minkovsky_exponent", text="Exponent")
604                 col.itemL(text="Coloring:")
605                 col.itemR(tex, "coloring", text="")
606                 col.itemR(tex, "noise_intensity", text="Intensity")
607                 
608                 col = split.column(align=True) 
609                 col.itemL(text="Feature Weights:")
610                 col.itemR(tex, "weight_1", text="1", slider=True)
611                 col.itemR(tex, "weight_2", text="2", slider=True)
612                 col.itemR(tex, "weight_3", text="3", slider=True)
613                 col.itemR(tex, "weight_4", text="4", slider=True)
614                 
615                 layout.itemL(text="Noise:")
616                 
617                 row = layout.row()
618                 row.itemR(tex, "noise_size", text="Size")
619                 row.itemR(tex, "nabla")
620                         
621 class TEXTURE_PT_distortednoise(TextureButtonsPanel):
622         __label__ = "Distorted Noise"
623         
624         def poll(self, context):
625                 tex = context.texture
626                 return (tex and tex.type == 'DISTORTED_NOISE')
627
628         def draw(self, context):
629                 layout = self.layout
630                 
631                 tex = context.texture
632
633                 layout.itemR(tex, "noise_distortion")
634                 layout.itemR(tex, "noise_basis", text="Basis")
635                 
636                 flow = layout.column_flow()
637                 flow.itemR(tex, "distortion_amount", text="Distortion")
638                 flow.itemR(tex, "noise_size", text="Size")
639                 flow.itemR(tex, "nabla")        
640                 
641 class TEXTURE_PT_voxeldata(TextureButtonsPanel):
642         __idname__= "TEXTURE_PT_voxeldata"
643         __label__ = "Voxel Data"
644         
645         def poll(self, context):
646                 tex = context.texture
647                 return (tex and tex.type == 'VOXEL_DATA')
648
649         def draw(self, context):
650                 layout = self.layout
651                 tex = context.texture
652                 vd = tex.voxeldata
653
654                 layout.itemR(vd, "file_format")
655                 if vd.file_format in ['BLENDER_VOXEL', 'RAW_8BIT']:
656                         layout.itemR(vd, "source_path")
657                 if vd.file_format == 'RAW_8BIT':
658                         layout.itemR(vd, "resolution")
659                 if vd.file_format == 'SMOKE':
660                         layout.itemR(vd, "domain_object")
661                 
662                 layout.itemR(vd, "still")
663                 if vd.still:
664                         layout.itemR(vd, "still_frame_number")
665                 
666                 layout.itemR(vd, "interpolation")
667                 layout.itemR(vd, "intensity")
668                 
669 class TEXTURE_PT_pointdensity(TextureButtonsPanel):
670         __idname__= "TEXTURE_PT_pointdensity"
671         __label__ = "Point Density"
672         
673         def poll(self, context):
674                 tex = context.texture
675                 return (tex and tex.type == 'POINT_DENSITY')
676
677         def draw(self, context):
678                 layout = self.layout
679                 tex = context.texture
680                 pd = tex.pointdensity
681
682                 layout.itemR(pd, "point_source")
683                 layout.itemR(pd, "object")
684                 if pd.point_source == 'PARTICLE_SYSTEM':
685                         layout.item_pointerR(pd, "particle_system", pd.object, "particle_systems", text="")
686                 layout.itemR(pd, "radius")
687                 layout.itemR(pd, "falloff")
688                 if pd.falloff == 'SOFT':
689                         layout.itemR(pd, "falloff_softness")
690                 layout.itemR(pd, "color_source")
691                 layout.itemR(pd, "turbulence")
692                 layout.itemR(pd, "turbulence_size")
693                 layout.itemR(pd, "turbulence_depth")
694                 layout.itemR(pd, "turbulence_influence")
695                 
696
697 bpy.types.register(TEXTURE_PT_context_texture)
698 bpy.types.register(TEXTURE_PT_preview)
699 bpy.types.register(TEXTURE_PT_clouds)
700 bpy.types.register(TEXTURE_PT_wood)
701 bpy.types.register(TEXTURE_PT_marble)
702 bpy.types.register(TEXTURE_PT_magic)
703 bpy.types.register(TEXTURE_PT_blend)
704 bpy.types.register(TEXTURE_PT_stucci)
705 bpy.types.register(TEXTURE_PT_image)
706 bpy.types.register(TEXTURE_PT_image_sampling)
707 bpy.types.register(TEXTURE_PT_image_mapping)
708 bpy.types.register(TEXTURE_PT_plugin)
709 bpy.types.register(TEXTURE_PT_envmap)
710 bpy.types.register(TEXTURE_PT_musgrave)
711 bpy.types.register(TEXTURE_PT_voronoi)
712 bpy.types.register(TEXTURE_PT_distortednoise)
713 bpy.types.register(TEXTURE_PT_voxeldata)
714 bpy.types.register(TEXTURE_PT_pointdensity)
715 bpy.types.register(TEXTURE_PT_colors)
716 bpy.types.register(TEXTURE_PT_mapping)
717 bpy.types.register(TEXTURE_PT_influence)