Auto Reload is a Blender addon designed to automatically refresh external files when modified (images, movie clips, libraries, sound and cache files).
A timer will look every n seconds for modified external files, if there is some, they will be reloaded inside Blender.
This extension requests the following permission:
Checking/Reloading external files from current blend
error_prone_builtins:
Calls to potentially insecure functions exec()
& eval()
.
Besides security implications if this comes from an untrusted source. This often hints at poor code.
getattr(data, attr)
& setattr(data, attr, value)
can be an alternative.ast.parse(...)
then ast.literal_eval(node)
.output\auto_reload\source\reload.py:273:9:
exec(function)
output\auto_reload\source\reload_operator.py:29:13:
exec(function)
What exactly does "auto" mean in this context? Description says reload when modified, but it's not technically true, right? It's based on timer. I think more honest description here would be better.
But in preferences I only see timer for Image reload frequency. Does that property only work for images, or all data I have enabled in AR popover? If that same timer is used for everything, better rename it to generic name, so it doesn't cause confusions. If not, you should provide properties for timers for other data-blocks as well.
Files permission is also missing for this one.
Hi thanks for your feedback, I corrected the 'exec()' part and didn't know about security issues of this function, my bad !
Regarding the "auto" term, this is, indeed, a timer which check for modified external files used in the blend file. I corrected this in the readme and extension page.
I changed the wording in the preferences, Image timer frequency is now Check timer frequency, and this is the "all data types" timer, as you guessed. This was an old naming (the former version only did images with this timer).
I changed file permissions to Read/Reload, sorry about that.
Thanks for your time !
Thanks
Sign in to comment.
Ready for review