$begingroup$
there seems to be no answers for the error «Traceback (most recent calls last)» in blender 2.8. Reinstalling blender doesnt fix the problem. this error occurs by just left clicking in the viewport or when importing images into textures and backgrounds. It ruins blender. I have no idea how this has happened.
this is the error:
I do not want to install a new version of blender at the moment so that is out of the option. Please help. This error is really annoying. This must have something to do with a file directory but i am not sure. Thanks in advance.
asked Aug 16, 2020 at 6:10
objectobject
3142 silver badges9 bronze badges
$endgroup$
4
$begingroup$
Revert to Factory settings.
Set File > Defaults to «Factory Settings»
answered Aug 18, 2020 at 5:21
susususu
13.9k3 gold badges24 silver badges46 bronze badges
$endgroup$
$begingroup$
Usually it will go away by itself.
answered Aug 18, 2020 at 1:30
M4GN3TIC _M4GN3TIC _
3991 gold badge3 silver badges9 bronze badges
$endgroup$
Not the answer you’re looking for? Browse other questions tagged
.
Not the answer you’re looking for? Browse other questions tagged
.
Loading
Last things first.
It is the correct version, I took the text from Blender as I’ve too many Betas to count. Would you check the version displayed in Blender Preferences, please?
As for installing it in the latest version of Blender. I still have problems and I have had to do 3 System Restores.
I’ve stopped for the moment while I think. I did not un-install Ver 2.8 so both were in the registry.
What I did see was that the folders:
Stop- motion-OBJ;
Stop- motion-OBJ -0.2.79.2;
Stop- motion-OBJ -2.0.0 in
AppData > Roaming > BlenderFoundation > Blender > 2.83 > scripts > addons
The last time I tried to install Stop_motion in 2.83 it seemed to install but when I tried to activate it. I got the errors:
Traceback (most recent call last):
File «C:Proglam FilesBlender FoundationBlender 2.832.83Scriptsmodulesaddon_utils.py», line 351, in enable
mod = import(module_name)
ModuleNotFoundError: No module named ‘Stop-motion-OBJ-2’
—python-console
enter the blender command line with:
blender --background --python-console
From the command prompt this will bring you into the python command line where you can test python script one line at a time.
Always to start we must import the bpy module, this gives us access to blender functions so we can generate elements like: grease pencil objects, 3d meshes, animation, metaballs and more.
import bpy bpy.data.objects[10]
bpy.data.objects[N]
Traceback (most recent call last): File "", line 1, in KeyError: 'bpy_prop_collection[key]: key "10" not found'
Above is a very common error when writing bpy scripts. This error is similar to an index out of range error from a standard python list. When you encounter this error it means that you have requested an item by number index, and the number is greater than the number of items in the collection.
bpy.data.objects[«N»]
KeyError: 'bpy_prop_collection[key]: key "N" not found'
Above is another common error that looks similar to a python dictionary lookup error. This error means that the requested object name is not in the current blender scene.
bpy_prop_collection
bpy_prop_collection is the standard collection type that blender provides in the python interface.
It is a collection type that has features of both a python list and python dictionary. In other words, you can get objects by name or index. This has some major pros and cons, getting an object by name is not always consistent, because blender enforces unique names for each object, and when the user renames and object, if if the requested name already exists, blender will append .001 to the name. This complicates game logic that is depending on objects and getting them by name.
for object in bpy.data.objects
for ob in bpy.data.objects: print(ob.name) print(ob.location)
Above will loop thru all the objects in the current blender scene and print their name and location (position).
I try write a game with GoranM/bdx plugin. When i create plate with texture and try export to code I get fatal error.
Traceback (most recent call last):
File «C:UsersMyuserAppDataRoamingBlender FoundationBlender2.79scriptsaddonsbdxopsexprun.py», line 225, in execute
export(self, context, bpy.context.scene.bdx.multi_blend_export, bpy.context.scene.bdx.diff_export)
File «C:UsersMyuserAppDataRoamingBlender FoundationBlender2.79scriptsaddonsbdxopsexprun.py», line 123, in export
bpy.ops.export_scene.bdx(filepath=file_path, scene_name=scene.name, exprun=True)
File «C:Program FilesBlender FoundationBlender2.79scriptsmodulesbpyops.py», line 189, in call
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
File «C:UsersMyuserAppDataRoamingBlender FoundationBlender2.79scriptsaddonsbdxexporter.py», line 903, in execute
return export(context, self.filepath, self.scene_name, self.exprun, self.apply_modifier)
File «C:UsersMyuserAppDataRoamingBlender FoundationBlender2.79scriptsaddonsbdxexporter.py», line 829, in export
«models»: srl_models(objects, apply_modifier),
File «C:UsersMyuserAppDataRoamingBlender FoundationBlender2.79scriptsaddonsbdxexporter.py», line 117, in srl_models
verts = vertices(mesh)
File «C:UsersMyuserAppDataRoamingBlender FoundationBlender2.79scriptsaddonsbdxexporter.py», line 53, in vertices
vert_uv = list(uv_layer[li].uv)
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0location: C:Program FilesBlender FoundationBlender2.79scriptsmodulesbpyops.py:189
location: :-1
Maybe someone had same problem and you know how to fix it?