Diffeomorphic How to import via script?
huntergeen
Posts: 38
I'm going to make it automatically import blender after it detects an export from daz.
Post edited by Richard Haseltine on
Comments
Sorry I have no idea I don't use the script api.
I don't script the plugin either, but there are some examples in this repo:
https://bitbucket.org/Diffeomorphic/daz-importer-scripts
In particular, the file easy_import.py contains an example on how to use easy import from a script. It works in Blender versions up to 4.1, presumably also in Blender 4.2 if the addon is a legacy addon. However, if you installed the addon from a downloaded zip file, it becomes an extension, which is a new (mis-)feature of Blender 4.2. The script doesn't work then, because the import_daz module is not located in one of the python paths,. I'm not sure what to do with this.
Anyway, here is the easy_import script that works in Blender 4.1.:
The import_daz operators and functions are documented here:
These documents were generated some months ago, so there might be a slight difference with the current development version. But this is very minor.
@ThomasLarsson thanks Dev
It turned out that the combination of scripting and the newly introduced Blender extensions led to new challenges, but finally I think I figured out how to deal with it.
http://diffeomorphic.blogspot.com/2024/10/addon-scripting-and-blender-extensions.html
Is it still installed the same way in Blender 4.2?
No, in 4.2 it installs as extension.