~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to release/scripts/addons/object_cloud_gen.py

  • Committer: Bazaar Package Importer
  • Author(s): Kevin Roy
  • Date: 2011-06-24 11:13:28 UTC
  • mto: (14.1.6 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20110624111328-27ribg6l36edf2ay
Tags: upstream-2.58-svn37702
ImportĀ upstreamĀ versionĀ 2.58-svn37702

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
    obj.select = True
174
174
    scene.objects.active = obj
175
175
 
176
 
    bpy.ops.object.rotation_apply()
177
 
    bpy.ops.object.location_apply()
178
 
    bpy.ops.object.scale_apply()
 
176
    bpy.ops.object.transform_apply(location=True, rotation=True, scale=True)
179
177
   
180
178
def totallyDeleteObject(scene, obj):
181
179
    scene.objects.unlink(obj)
516
514
            #Don't subdivide object or smooth if smoothing box not checked.
517
515
            if scene.cloudsmoothing:            
518
516
                bpy.ops.mesh.subdivide(number_cuts=2, fractal=0, smoothness=1)
519
 
 #               bpy.ops.object.location_apply()
 
517
 #               bpy.ops.object.transform_apply(location=True)
520
518
                bpy.ops.mesh.vertices_smooth(repeat=20)
521
519
            bpy.ops.mesh.tris_convert_to_quads()
522
520
            bpy.ops.mesh.faces_shade_smooth()
657
655
                cldPntsModifiers[0].name = "CloudPnts"
658
656
                cldPntsModifiers[0].texture = cloudtex
659
657
                cldPntsModifiers[0].texture_coords = 'OBJECT'
660
 
                cldPntsModifiers[0].texture_coordinate_object = cloud
 
658
                cldPntsModifiers[0].texture_coords_object = cloud
661
659
                cldPntsModifiers[0].strength = -1.4
662
660
 
663
661
                # Apply modifier