aframe_blender_exporter icon indicating copy to clipboard operation
aframe_blender_exporter copied to clipboard

On Export Error - Blender/plugin is looking for mesh that doesn't exist and export fails.

Open kitaedesigns opened this issue 3 years ago • 8 comments

Python: Traceback (most recent call last): File "C:\Users\Kitae\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\aframe_blender_exporter-master_init_.py", line 579, in execute obj.select_set(state=True) RuntimeError: Error: Object 'Cube.004' can't be selected because it is not in View Layer 'View Layer'!

location: :-1

There is no "Cube.004" in my scene and there are no other View Layers. Yet export fails because it's looking for this mesh.

image

kitaedesigns avatar May 14 '21 20:05 kitaedesigns

Also nothing is hidden, tried alt+h and there's nothing there.

kitaedesigns avatar May 14 '21 20:05 kitaedesigns

Solved by copying and pasting everything into a new project.

kitaedesigns avatar May 15 '21 12:05 kitaedesigns

Issue is still persisting "line 521, in execute obj.select_set(state=True) RuntimeError: Error: Object 'Object' can't be selected because it is not in View Layer 'View Layer'!

location: :-1"

kitaedesigns avatar Aug 13 '21 14:08 kitaedesigns

Something happens in the file that makes export impossible. Even after deleting all the objects that error appears and the only solution is to copy everything and export to a new file and start over which of course is not ideal.

kitaedesigns avatar Aug 13 '21 14:08 kitaedesigns

image

kitaedesigns avatar Aug 13 '21 14:08 kitaedesigns

related to #9 ?!

have you tried to use the Fileclean up functions? and close and reopen blender after deletion of objects? internally blender only removes the links to objects - the object data itself will only be cleaned up / deleted on close / reopen or with the mentioned command..

s-light avatar Aug 16 '21 12:08 s-light

I ran into this problem today while testing and ran all cleanups. Make sure all the objects in your scene are good to go, because a cleanup could easily ruin a project.

octu8re avatar May 07 '23 04:05 octu8re

In my case, the object was in another scene. Linking it to the export scene caused export to work but I'm puzzled because that object didn't appear to be linked in any way with the scene I was exporting from.

Also worth noting is I was using the Capsule addon which writes a hidden object to the scene, visible in the Blender File data view (Outliner), that halted export due to the > character in the object name.

garyritchie avatar Apr 03 '24 16:04 garyritchie