I founded BlenderNation in 2006 and have been editing it every single day since then;-) I also run the Blender Artists forum and Im Head of Community at Sketchfab.CoordiKnight Addon: Send Multiple Assets LocationRotationScale To Unreal.Previously you link could existing objects to a scene (if not already there) by running.
![]() Blender 2.8 Add Ons List Code For BlenderThus, you are facing the daunting task of updating your code for Blender 2.8. Blender 2.8 Add Ons List How To Support BlenderLearn how to support Blender 2.8 addons and scripts without ditching your 2.7 users. Blender will show this warning if a lower version is displayed (such as this wrong notation of (2,8,0) ). Blender 2.8 Add Ons List Zip File For 2To use the same pythonzip file for 2.8 and 2.7 installs, you force 2.7 users to see a may not work warning. My personal take is yes, you should plan to distribute two versions of any addon; One with blinfo set for 2.8, and the other for 2.7. Beyond this, do your best to ensure this is the only difference between your 2.7 and 2.8 code Keep reading on how to make this possible. This applies to properties parameters of operators or within property groups; this does not apply to properties directly registered e.g. I was able to confirm that at least as of Jan 3rd 2019, the Blender Foundation has no timeline for converting these warnings into errors again( source ) (earlier versions of blender 2.8 raised errors). ![]() That means to make code work with both 2.7x and 2.8x, you might think you need to accept the warnings (and pray they turn into errors a long time from now). But, a workaround exists Take a look at this function below, a sort of anti-pattern solution to this problem (credit to Darkblader24 ). You can continue to use the normal syntax with instead of:, while preventing blender warnings. In the long term, it may be a good idea to just embrace the new way but this is a viable workaround in the meantime. This is definitely a move for the better I have seen many addons that have had weird behaviors or even fail on enable due to issues of using this shortcut and classes registering in a random order. Explicit keyword arguments are now required for optional or positional function arguments. One example that very well may be the first error you see when enabling your 2.7x code is. The console is your friend, as it will tell you the specific line and updates needed. View the console window via Window Toggle Console (if on Windows; on OSX or Linux, start blender from a command line terminal window). At a first glance, most code can very simply be updated from bpy.data.groups to bpy.data.collections, but there are a few more nuances to understand. Check out this page for more details, noting also the 2.8 concept of View Layers. Removing an object from all collections is the equivalent to removing it from the scene itself, much like in blender 2.7x we have context.scene.objects.unlink(). In Blender 2.8, these functions translate this list of booleans into dynamically generated collections with names like 0, 1, 2 etc. ![]() Below is an example using these two functions in both Blender 2.7 and 2.8. Rather, aim to explicitly manage the collectionslayers your addon cares about through functional collection names, and avoid generating unnecessary or unused collections.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |