Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baking with cage issue/fix (3.1) #16

Open
FenyxInvincible opened this issue Mar 20, 2022 · 2 comments
Open

Baking with cage issue/fix (3.1) #16

FenyxInvincible opened this issue Mar 20, 2022 · 2 comments

Comments

@FenyxInvincible
Copy link

FenyxInvincible commented Mar 20, 2022

When I try to bake with cage I got error
`Python: Traceback (most recent call last):
, line 469, in execute
TypeError: bpy_prop_collection[key]: invalid key, must be a string or an int, not Object

location: :-1
`
This simple fix solved the issue
image

@Ch-301
Copy link

Ch-301 commented Mar 21, 2022

Hey there, can you help with this one

Python: Traceback (most recent call last):
File "C:\Users*****\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\EasyBake.py", line 377, in execute
if context.scene.lowpoly is None and not context.scene.lowpoly in bpy.data.collections:
TypeError: bpy_prop_collection.contains: expected a string or a tuple of strings

location: :-1

@FenyxInvincible
Copy link
Author

Hey there, can you help with this one

Python: Traceback (most recent call last): File "C:\Users*****\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\EasyBake.py", line 377, in execute if context.scene.lowpoly is None and not context.scene.lowpoly in bpy.data.collections: TypeError: bpy_prop_collection.contains: expected a string or a tuple of strings

location: :-1

I know python very bad (don't like it :) ) but seems you are doing something wrong. There is not any sence to fix that error because next execution will be warrning and stop execution anyway
if context.scene.lowpoly is None and not context.scene.lowpoly in bpy.data.collections: self.report({'WARNING'}, "Select a valid lowpoly object or collection!") return {'FINISHED'}

You could check your objects structure. Seems like script can not find lowpoly model. If lowpoly is picked for sure, you could try to play with blender versions. At least for 3.1 addod works fine in case lowpoly -> high poly -> cage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants