This simple script below does work for blender 2.79 but simply won't show the properties in blender 2.8 (it does draw the panel but it is empty inside)
import bpy class SomeOtherClass: someMember = 100 class MyNewPanel(bpy.types.Panel): bl_label = "myNewPanel" bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' bl_context = "object" def draw(self, context): cubee = bpy.data.objects['Cube'] somethingElse = SomeOtherClass() self.layout.label("Hey there") self.layout.prop(cubee, "location") self.layout.prop(cubee, "name") self.layout.prop(somethingElse, "someMember") bpy.utils.register_class(MyNewPanel)
Did something change in blender 2.8 which causes it not to work or is it a bug that will be fixed in future? Hence, the second question: if I learn blender api in for 2.79, to what extent can I then use it for 2.8? Also, would it be difficult to bring my add-ons from blender 2.79 to blender 2.8?