Age | Commit message (Collapse) | Author |
|
Add-ons are no API, and are not expected to be used outside of
themselves (i.e. add-ons whall not depend on other add-ons). So no
reason to keep compatibility with previous behavior of import image a
splanes operator (especially since name had to be changed anyway).
Also simplified register/unregister code, exceptions are only to be used
to detect and handle errors, not to handle some valid cases.
|
|
- Contexts already return copy of themselves as dict with their copy() method.
- Do not store a vector in Enum id to then parse it into real vector,
just use sensible enum ids and a mapping to matching vectors...
- Since we don't use cutom handling of extensions anymore (did we really
want to get rid of this btw? :/ ), at least let's also get rid of hack
they needed, and just use standard 'batch' handling of file types.
There are probably more to cleanup, also not that happy with some
changes here (like the removal of filtering by exact extension/image
type), but this will do for now.
|
|
|
|
engines.
This script has to generate shaders for imported images' planes, so it can only work
with known engines. 'Fix' is only adding an explicit error message when an unknown
render engine is found, instead of failing silently.
|
|
material nodes system
when enabling "Use Alpha", for Cycles.
- Removed two options from Cycles Materal settings during import
("Diffuse & Transparent", "Emission & Transparent").
- Nodetree creation stays the same, but transparent BSDF (along the other needed nodes)
is now added when Import Option "Use Alpha" is checked.
Reviewers: testscreenings, mont29
Reviewed By: mont29
Projects: #addons
Differential Revision: https://developer.blender.org/D1437
|
|
importing.
There is now an option to force reloading existing images.
But main bug was elsewhere - that addon would always create new image datablocks, and yet
use same (already existing) texture afterwards, that was rather bad, fixed using new
'check_existing' option of load_image helper just added to master.
|
|
at once.
Also, name meshes from image names too.
|
|
|
|
with Cycles engine.
UseAlpha & co are image settings, they are not bound to any specific render engine.
To be backported to final 2.74.
|
|
* Fix setting frame_duration of image users (using op here is overkill, too).
* Cycles is now perfectly able to use videos as textures!
* Fix Cycles texures/images not getting fully set from op parameters.
|
|
|
|
minor other edits
|
|
materials).
|
|
Note: import gimp image also would need it, but it would anyway need a good cleanup (handling of paths is ugly), so did not bothered with it for now.
|
|
|
|
|
|
*Use absolute as default size mode (dpi with BU is not that nice).
*Use default plane primitive instead of creating our own square (this way we can be sure things like verts order will always match those of default plane!), request from Christopher Barrett in tracker.
|
|
Iggy B [rexxxus] for reporting the bug).
|
|
blender code (thanks to meta-androcto for the report on IRC).
|
|
Never use a generator as enum's "items" value!
|
|
make addons blender versions consistent
|
|
(absolute, to directly specify the result height, and dpi or dpbu [dots per Blender Unit], to use image definition). Based on an idea and code from mat ali, thanks!
Also fixed correct use of overriden context (not really a bug, but printed annoying warning messages in the console).
|
|
"import.image_to_plane" to "import_image.to_plane" (import is a keyword in python...). Thanks to P. Staples in tracker!
|
|
|
|
*Mostly, makes much more intensive use of Blender's FileSelector, to only show relevant files, and allow any pict/video files when "all" is selected (previously e.g. importing mkv's was impossible!).
*Style cleaning/refactoring (esp. do not use 'self' for anythin else than a method's object, so made most func member of op class)...
|
|
finished
|
|
|
|
|
|
|
|
Remove module add_utils.py which fully duplicates functions
from trunk's object_utils.py module and switch all dependent
addons to use module from trunk.
|
|
expanding, normalizing first, 2) non-utf8 paths made the script error out, 3) paths were exported with absolute paths by default, had to remember to make them relative which was annoying.
|
|
|
|
|
|
|
|
(reported by Nathan Letwory over IRC)
|
|
|
|
Plus a few styling enhancements.
[[Split portion of a mixed commit.]]
|
|
* You only have to do layout.prop if you want 1 property, no need for row then!
* Use col, row, sub as variable names, not colsub, rowsub, row2 etc please.
* Povray Addon: Still used a lot of splits, you need no split when you only have 1 column!
|
|
|
|
|
|
to FBX.
|
|
|
|
addon next).
|
|
update_tag() tags for depsgraph update only, update() executes normal recalculation and creates edge data.
|
|
|
|
|
|
|
|
READ THIS TO AVOID A LOT OF WORK!
New way of linking to tracker pages: just use the parameter "aid" (artifact ID),
to avoid a lot of manual updates later in wiki and svn.
Example:
=========
OLD WAY TO LINK TO TRACKER
-----------------------------
Complete url of a script in Upload
http://projects.blender.org/tracker/index.php?func=detail&aid=25349&group_id=153&atid=467
If we move this in contrib this url will become
http://projects.blender.org/tracker/index.php?func=detail&aid=25349&group_id=153&atid=468
467 becomes 468, so we have to update this in wiki page.
Later on, when this moves into Trunk, the url will become
http://projects.blender.org/tracker/index.php?func=detail&aid=25349&group_id=153&atid=469
468 becomes 469, so we have to update the url in wiki page and svn.
Annoying!
NEW WAY TO LINK TO TRACKER
-----------------------------
Best way to link to tracker page is using:
http://projects.blender.org/tracker/index.php?func=detail&aid=25349
Use "func=detail"
Use "aid" (which is the "artifact ID")
DON'T use "group_id" (which is the project ID, bf-extensions is project 153)
DON'T use "atid" (which is the "artifacts tracker ID")
Like this, the url is unique, and we will avoid to update wiki pages and svn after moving pages
[[Split portion of a mixed commit.]]
|
|
- in wiki page urls: "File_I-O/" -> "Import-Export/"
- in categories: "Import/Export" -> "Import-Export"
- 1 tab to 4 spaces
- some tuple formatting, just to be very picky :P
|
|
the rest of the thing is recoded. Since this was like my first script this new version is much more readable and easier to debug. As a bonus there is also a new option to align the planes in a row on import to justify a version bumb. I think i tested everything and it should be bug free. Hopefully :)
|