All Questions
4
questions
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=...
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 ...
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?
...
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:
...