Skip to main content

All Questions

Tagged with
0 votes
1 answer
226 views

'Scene' object has no attribute my_tool after changing import method from classes to modules in __init__.py

Everything worked until I reworked my import methods to import modules instead of every single class. Now, however, my my_tool call does not work anymore because I can't simply use type=...
caddev20's user avatar
1 vote
1 answer
150 views

How to remove unused material slots in all objects if the objects are not selected? [duplicate]

Please tell me. How to remove unused materials in all objects if the objects are not selected? I tried this code but didn't get what I wanted. This code does not remove unused materials in unselected ...
Ruslan's user avatar
  • 11
3 votes
2 answers
5k views

Append python script for Blender 2.8 [duplicate]

I'm trying to write a script to append an Object or a Collection from a blend file to a new file. Can someone please point what I'm doing wrong? ...
Lucas Falcão's user avatar
5 votes
1 answer
852 views

Linking an armature to a scene

In my script I tried the following: import bpy arm = bpy.data.armatures.new('SomeName') bpy.context.scene.objects.link(arm) and I get the error: ...
WorldSEnder's user avatar
  • 1,626