Im ultra new to blender and am using v2.81 to create some poses for a game mod.
Can someone please correct this script below so that it will compile in v2.81 as it wont compile based on the format..and i have no clue after reading up for hours about the known script error in v2.8 i just cant get my head around the issue. i do not understand scripting or coding very well despite trying to fix this all night. Also i cannot understand the blender versions below 2.8 for creating poses seem so clunky compared to the newer version,no camera navigation without pain!!!no easy way of moving bones without a nightmare .. otherwise my script would compile in earlier versions but i just cant create the poses anywhere near as accurately or as fast as in v2.81
This is where the compile error is in the log:
SelectedObject = bpy.context.scene.objects.active
Armatura = SelectedObject.data
Appreciate any help Thanks

AttributeError: 'bpy_prop_collection' object has no attribute 'active'in the System or Python Console running that code, you should post the error message if you ask about it and other details. People will be nicer to you if you form questions well. – Martynas Žiemys Dec 04 '19 at 12:57scene.objects.activewithview_layer.objects.activewill solve the issue in 2.8x. Or usecontext.objectas answered below. – batFINGER Dec 04 '19 at 14:25