如何使用python脚本激活集合中的Blender对象?

问题描述 投票:0回答:1

我要选择一个位于集合中的对象

显然,以下命令不起作用:

    bpy.data.objects[plankname].select_set(True)

这是因为对象不是主场景的一部分

python blender
1个回答
0
投票
bpy.data.collections["CollectionName"].objects["ObjectName"].select_set(True)
© www.soinside.com 2019 - 2024. All rights reserved.