Things not working in 2.8 Animation Nodes

This code does not work inside Animation Nodes:


Same for this:


But they both work in the Python Console. grrrrrrr What a bugger, does anyone know a workaround for getting selected bones?

Workaround for objects is this:

[i for i in if i.select_get()]

But I cannot find a workaround for getting selected bones…

Can anyone help here?

Cheers, Clock. :cocktail:


Here is the error message from my terminal

  File "/Users/mac/Library/Application Support/Blender/2.80/scripts/addons/animation_nodes/nodes/zc_audio_midi/", line 158, in execute
    boneList = bpy.context.selected_pose_bones
AttributeError: 'Context' object has no attribute 'selected_pose_bones'

And this from the Python Console:

>>> bpy.context.selected_pose_bones

Never mind, accredit myself.