franMarz / TexTools-Blender

TexTools is a UV and Texture toolset created several years ago for Blender and Max by @renderhjs. In this open repository, originally created by @SavMartin, we develop the current version of this popular Blender add-on.
Other
2.02k stars 138 forks source link

Unable to bake diffuse textures #17

Closed milanbt closed 4 years ago

milanbt commented 4 years ago

To replicate:

Make 2 cubes with 2 different materials. Select both cubes and UV unwrap. Make new texture to save diffuse bake to. Upon pressing bake, I get this:

Traceback (most recent call last):
  File "C:\Users\noname\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\TexTools-Blender-master\op_bake.py", line 73, in execute
    ray_distance = bpy.context.scene.texToolsSettings.bake_ray_distance
  File "C:\Users\noname\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\TexTools-Blender-master\op_bake.py", line 159, in bake
    image = setup_image(mode, name_texture, render_width, render_height, path, is_clear)
  File "C:\Users\noname\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\TexTools-Blender-master\op_bake.py", line 345, in setup_image
    is_float_32 = bpy.context.preferences.addons["textools"].preferences.bake_32bit_float == '32'
KeyError: 'bpy_prop_collection[key]: key "textools" not found'

location: <unknown location>:-1

`

SavMartin commented 4 years ago

Hi, uninstall textools and install this one : https://github.com/SavMartin/TexTools-Blender/releases/download/TexTools_2.80/textools.zip