0
$\begingroup$

I'm trying to get a list of scenes in my .blend file.

bpy.ops.logic.getSceneList()

works once, but the second call throws an error that I don't understand.

    scenes = {sc.name: sc for sc in bpy.ops.logic.getSceneList()}


  File "/Applications/Blender/blender.app/Contents/Resources/2.79/scripts/modules/bpy/ops.py", line 189, in __call__
    ret = op_call(self.idname_py(), None, kw)
AttributeError: Calling operator "bpy.ops.logic.getSceneList" error, could not be found

Can anyone jump in and help me out? Thanks in advance!

$\endgroup$
  • $\begingroup$ Is this for the game engine? $\endgroup$ – batFINGER Jul 5 at 2:45
0
$\begingroup$

I misunderstood how blender python works. Should have used BGE (Blender game engine)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.