Skip to content

Commit

Permalink
change padding
Browse files Browse the repository at this point in the history
  • Loading branch information
rpopovici committed Feb 12, 2019
1 parent 173d83a commit b1de2d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesh_select_interior.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def select_interior_faces(context, obj, resolution):

# quick face unwrap
bpy.ops.mesh.select_all(action='SELECT')
bpy.ops.uv.smart_project(angle_limit=1.0, island_margin=0.05, user_area_weight=0.0, use_aspect=True, stretch_to_bounds=True)
bpy.ops.uv.smart_project(angle_limit=1.0, island_margin=0.1, user_area_weight=0.0, use_aspect=True, stretch_to_bounds=True)
bpy.ops.mesh.select_all(action='DESELECT')

# creating a new material and add a new image texture node to it
Expand Down Expand Up @@ -73,7 +73,7 @@ def select_interior_faces(context, obj, resolution):
# obj.hide_render = True

# start baking
bpy.ops.object.bake(type = 'AO', width = resolution, height = resolution, margin = 1) #, uv_layer = uv_layer.name)
bpy.ops.object.bake(type = 'AO', width = resolution, height = resolution, margin = 4) #, uv_layer = uv_layer.name)

# select "black" faces from AO
me = obj.data
Expand Down

0 comments on commit b1de2d5

Please sign in to comment.