[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [932] trunk/py/scripts/addons: update for changes in rna
Campbell Barton
ideasman42 at gmail.com
Sat Aug 21 07:27:52 CEST 2010
Revision: 932
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=932
Author: campbellbarton
Date: 2010-08-21 07:27:49 +0200 (Sat, 21 Aug 2010)
Log Message:
-----------
update for changes in rna
Modified Paths:
--------------
trunk/py/scripts/addons/io_import_images_as_planes.py
trunk/py/scripts/addons/io_import_scene_mhx.py
trunk/py/scripts/addons/object_add_chain.py
trunk/py/scripts/addons/object_cloud_gen.py
trunk/py/scripts/addons/render_povray/render.py
trunk/py/scripts/addons/space_view3d_materials_utils.py
Modified: trunk/py/scripts/addons/io_import_images_as_planes.py
===================================================================
--- trunk/py/scripts/addons/io_import_images_as_planes.py 2010-08-20 17:26:11 UTC (rev 931)
+++ trunk/py/scripts/addons/io_import_images_as_planes.py 2010-08-21 05:27:49 UTC (rev 932)
@@ -262,8 +262,8 @@
def mapget(self):
"""Custom property of the images_as_planes addon."""
mapping = []
- mapping.append(self.shadeless)
- mapping.append(self.transparency)
+ mapping.append(self.use_shadeless)
+ mapping.append(self.use_transparency)
mapping.append(self.alpha)
mapping.append(self.specular_alpha)
mapping.append(self.transparency_method)
@@ -271,7 +271,7 @@
if (self.texture_slots[0]
and self.texture_slots[0].texture.type == 'IMAGE'
and self.texture_slots[0].texture.image):
- mapping.append(self.texture_slots[0].texture.image.premultiply)
+ mapping.append(self.texture_slots[0].texture.image.use_premultiply)
else:
mapping.append("no image")
@@ -281,8 +281,8 @@
# Custom material property - set
def mapset(self, value):
- self.shadeless = value[0]
- self.transparency = value[1]
+ self.use_shadeless = value[0]
+ self.use_transparency = value[1]
self.alpha = float(value[2])
self.specular_alpha = float(value[3])
self.transparency_method = value[4]
@@ -290,9 +290,9 @@
if (self.texture_slots[0]
and self.texture_slots[0].texture.type == 'IMAGE'
and self.texture_slots[0].texture.image):
- self.texture_slots[0].texture.image.premultiply = value[5]
+ self.texture_slots[0].texture.image.use_premultiply = value[5]
if self.alpha:
- self.texture_slots[0].map_alpha=True
+ self.texture_slots[0].use_map_alpha=True
bpy.types.Material.mapping = property(mapget, mapset)
@@ -330,8 +330,8 @@
# Put Image into UVTextureLayer
plane.data.uv_textures[0].data[0].image = img
- plane.data.uv_textures[0].data[0].use_texture = True
- plane.data.uv_textures[0].data[0].blend_mode = 'ALPHA'
+ plane.data.uv_textures[0].data[0].use_image = True
+ plane.data.uv_textures[0].data[0].blend_type = 'ALPHA'
plane.data.uv_textures[0].data[0].use_twoside = True
plane.select = True
@@ -359,8 +359,8 @@
# Put image into UVTextureLayer
plane.data.uv_textures[0].data[0].image = img
- plane.data.uv_textures[0].data[0].use_texture = True
- plane.data.uv_textures[0].data[0].blend_mode = 'ALPHA'
+ plane.data.uv_textures[0].data[0].use_image = True
+ plane.data.uv_textures[0].data[0].blend_type = 'ALPHA'
plane.data.uv_textures[0].data[0].use_twoside = True
plane.select = True
@@ -448,9 +448,9 @@
box.prop(props, 'extension', icon='FILE_IMAGE')
box = layout.box()
box.label('Material mappings:', icon='MATERIAL')
- box.prop(props, 'shadeless')
+ box.prop(props, 'use_shadeless')
box.prop(props, 'transp')
- box.prop(props, 'premultiply')
+ box.prop(props, 'use_premultiply')
box.prop(props, 'transp_method', expand=True)
box = layout.box()
box.label('Plane dimensions:', icon='ARROW_LEFTRIGHT')
@@ -475,9 +475,9 @@
if transp:
alphavalue = 0
- shadeless = self.properties.shadeless
+ shadeless = self.properties.use_shadeless
transp_method = self.properties.transp_method
- premultiply = self.properties.premultiply
+ premultiply = self.properties.use_premultiply
mapping = ([shadeless,
transp,
Modified: trunk/py/scripts/addons/io_import_scene_mhx.py
===================================================================
--- trunk/py/scripts/addons/io_import_scene_mhx.py 2010-08-20 17:26:11 UTC (rev 931)
+++ trunk/py/scripts/addons/io_import_scene_mhx.py 2010-08-21 05:27:49 UTC (rev 932)
@@ -608,7 +608,7 @@
if key == 'kp':
try:
pt = fcu.keyframe_points[n]
- pt.interpolation = 'LINEAR'
+ pt.use_interpolation = 'LINEAR'
pt = parseKeyFramePoint(pt, val, sub)
n += 1
except:
@@ -759,7 +759,7 @@
elif key == 'Strand':
parseStrand(mat, val, sub)
else:
- exclude = ['specular_intensity', 'tangent_shading']
+ exclude = ['specular_intensity', 'use_tangent_shading']
defaultKey(key, val, sub, 'mat', [], globals(), locals())
#print("Done ", mat)
@@ -1549,9 +1549,9 @@
exec(expr)
print("show_alive")
elif key == 'ik_dof':
- parseArray(pb, ["ik_dof_x", "ik_dof_y", "ik_dof_z"], val)
+ parseArray(pb, ["lock_ik_x", "lock_ik_y", "lock_ik_z"], val)
elif key == 'ik_limit':
- parseArray(pb, ["ik_limit_x", "ik_limit_y", "ik_limit_z"], val)
+ parseArray(pb, ["use_ik_limit_x", "use_ik_limit_y", "use_ik_limit_z"], val)
elif key == 'ik_max':
parseArray(pb, ["ik_max_x", "ik_max_y", "ik_max_z"], val)
elif key == 'ik_min':
@@ -1591,9 +1591,9 @@
elif key == 'use':
parseArray(cns, ["use_x", "use_y", "use_z"], val)
elif key == 'pos_lock':
- parseArray(cns, ["pos_lock_x", "pos_lock_y", "pos_lock_z"], val)
+ parseArray(cns, ["lock_location_x", "lock_location_y", "lock_location_z"], val)
elif key == 'rot_lock':
- parseArray(cns, ["rot_lock_x", "rot_lock_y", "rot_lock_z"], val)
+ parseArray(cns, ["lock_rotation_x", "lock_rotation_y", "lock_rotation_z"], val)
else:
defaultKey(key, val, sub, "cns", [], globals(), locals())
#print("cns %s done" % cns.name)
Modified: trunk/py/scripts/addons/object_add_chain.py
===================================================================
--- trunk/py/scripts/addons/object_add_chain.py 2010-08-20 17:26:11 UTC (rev 931)
+++ trunk/py/scripts/addons/object_add_chain.py 2010-08-21 05:27:49 UTC (rev 932)
@@ -104,8 +104,8 @@
array.fit_type = ('FIT_CURVE')
array.curve = curv
array.offset_object = emp
- array.add_offset_object = True
- array.relative_offset_displacement = [ 0.549, 0, 0 ]
+ array.use_object_offset = True
+ array.relative_offset_displace = [ 0.549, 0, 0 ]
##Add curve modifier
bpy.ops.object.modifier_add(type='CURVE')
Modified: trunk/py/scripts/addons/object_cloud_gen.py
===================================================================
--- trunk/py/scripts/addons/object_cloud_gen.py 2010-08-20 17:26:11 UTC (rev 931)
+++ trunk/py/scripts/addons/object_cloud_gen.py 2010-08-21 05:27:49 UTC (rev 932)
@@ -376,7 +376,7 @@
# Select all of the left over boxes so people can immediately
# press generate again if they want.
for eachMember in definitionObjects:
- eachMember.max_draw_type = 'SOLID'
+ eachMember.draw_type = 'SOLID'
eachMember.select = True
#scene.objects.active = eachMember
@@ -397,7 +397,7 @@
"CloudBounds",
selectedObjects[0])
- bounds.max_draw_type = 'BOUNDS'
+ bounds.draw_type = 'BOUNDS'
bounds.hide_render = False
# Just add a Definition Property designating this
@@ -421,14 +421,14 @@
for selObj in selectedObjects:
selObj["CloudMember"] = "DefinitioinObj"
selObj.name = "DefinitioinObj"
- selObj.max_draw_type = 'WIRE'
+ selObj.draw_type = 'WIRE'
selObj.hide_render = True
makeParent(bounds, selObj, scene)
# Do the same to the 1. object since it is no longer in list.
firstObject["CloudMember"] = "DefinitioinObj"
firstObject.name = "DefinitioinObj"
- firstObject.max_draw_type = 'WIRE'
+ firstObject.draw_type = 'WIRE'
firstObject.hide_render = True
makeParent(bounds, firstObject, scene)
@@ -436,7 +436,7 @@
# Create a new object cloud.
cloud = addNewObject(scene, "CloudMesh", bounds)
cloud["CloudMember"] = "CreatedObj"
- cloud.max_draw_type = 'WIRE'
+ cloud.draw_type = 'WIRE'
cloud.hide_render = True
makeParent(bounds, cloud, scene)
@@ -466,8 +466,8 @@
cloudParticles.settings.frame_start = 0
cloudParticles.settings.frame_end = 0
cloudParticles.settings.emit_from = 'VOLUME'
- cloudParticles.settings.draw_as = 'DOT'
- cloudParticles.settings.ren_as = 'NONE'
+ cloudParticles.settings.draw_method = 'DOT'
+ cloudParticles.settings.render_type = 'NONE'
cloudParticles.settings.normal_factor = 0
cloudParticles.settings.distribution = 'RAND'
cloudParticles.settings.physics_type = 'NO'
@@ -502,7 +502,7 @@
mVolume.density_scale = densityScale
mVolume.transmission_color = [3, 3, 3]
mVolume.step_size = 0.1
- mVolume.light_cache = True
+ mVolume.use_light_cache = True
mVolume.cache_resolution = 75
# Add a texture
@@ -511,7 +511,7 @@
cloudMaterial.add_texture(cloudtex, 'ORCO')
cloudtex.type = 'CLOUDS'
cloudtex.noise_type = 'HARD_NOISE'
- cloudtex.noise_size = 2
+ cloudtex.noise_scale = 2
# Add a force field to the points.
cloudField = bounds.field
@@ -532,17 +532,17 @@
cloudPointDensity.type = 'POINT_DENSITY'
cloudMaterial.add_texture(cloudPointDensity, 'ORCO')
pDensity = vMaterialTextureSlots[1].texture
- vMaterialTextureSlots[1].map_density = True
- vMaterialTextureSlots[1].rgb_to_intensity = True
- vMaterialTextureSlots[1].texture_coordinates = 'GLOBAL'
- pDensity.point_density.vertices_cache = 'WORLD_SPACE'
- pDensity.point_density.turbulence = True
+ vMaterialTextureSlots[1].use_map_density = True
+ vMaterialTextureSlots[1].use_rgb_to_intensity = True
+ vMaterialTextureSlots[1].texture_coords = 'GLOBAL'
+ pDensity.point_density.vertex_cache_space = 'WORLD_SPACE'
+ pDensity.point_density.use_turbulence = True
pDensity.point_density.noise_basis = 'VORONOI_F2'
pDensity.point_density.turbulence_depth = 3
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list