257 Commits

Author SHA1 Message Date
Sybren A. Stüvel
152adcb777 Add-on: document timeout parameter of PackThread.poll()
The timeout should be specified in seconds, which wasn't documented before.

No functional changes.
2024-06-25 12:10:28 +02:00
Sybren A. Stüvel
c41eda4a09 Add-on: refactor job submission in preparation for 'execute' support
Refactor the job submission operator, to make it easier to allow executing
the operator (that is, running in the foreground, blocking execution until
submission is done).

No functional changes.
2024-06-25 12:01:18 +02:00
Sybren A. Stüvel
d3a3178300 Bumped version to 3.6-alpha1 2024-06-25 11:26:12 +02:00
Sybren A. Stüvel
c307342f9d OAPI: regenerate code 2024-05-20 10:09:22 +02:00
Sybren A. Stüvel
c5ae2916db Add label to job settings
This gives job type authors more control over how settings are presented
in Blender's job submission GUI. If a job setting does not define a
label, its `key` is used to generate one (like Flamenco 3.5 and older).

Note that this isn't used in the web interface yet.
2024-05-07 11:58:44 +02:00
Sybren A. Stüvel
5ee4871e39 OAPI: regenerate code 2024-05-07 11:55:56 +02:00
Sybren A. Stüvel
68ac3c03e3 Add-on: compatibility with Python 3.9
Remove some Python 3.10 features to make the add-on compatible with py39.
This is the Python version that's bundled with Blender 2.93 LTS, for which
I got a request to see if it could be supported.

The Blender version still isn't officially supported, but this should make
things at least not immediately fail.
2024-04-24 17:32:01 +02:00
Sybren A. Stüvel
d279f91549 Bumped version to 3.6-alpha0 2024-04-24 17:32:01 +02:00
Sybren A. Stüvel
bb772841b7 Revert "Bumped version to 3.6-alpha0"
This reverts commit 7f14e6705d69d05e1bcae3a9ff64dbf2541c47b5. v3.5 still
needs today's date as release date in the changelog.
2024-04-16 11:12:48 +02:00
Sybren A. Stüvel
7f14e6705d Bumped version to 3.6-alpha0 2024-04-16 11:11:54 +02:00
Sybren A. Stüvel
81de246b48 Bumped version to 3.5 2024-04-16 11:03:27 +02:00
Taylor Wiebe
a0cb8735c9 Manager: add optional description to job types
This description will be shown as a tooltip in the job submission UI.
2024-04-04 11:12:42 +02:00
Taylor Wiebe
2bbb7b48d2 OAPI: regenerate code 2024-04-04 11:12:39 +02:00
Sybren A. Stüvel
cfad4e73f9 Bumped version to 3.5-beta1 2024-04-04 10:54:53 +02:00
Sybren A. Stüvel
bce84bf175 Bumped version to 3.5-beta0 2024-04-04 10:38:42 +02:00
Sybren A. Stüvel
3aec8b15ef Add-on: avoid console spam about the scene's job type property
Avoid these warnings on the console:

```
WARN (bpy.rna): source/blender/python/intern/bpy_rna.cc:1339
  pyrna_enum_to_py: current value '0' matches no enum in 'Scene', 'Scene',
  'flamenco_job_type'
```

The solution was two-fold:
- Use a non-empty string as the identifier for the 'Select a Job Type'
  choice.
- Give the property a default value.
2024-03-11 14:32:29 +01:00
Sybren A. Stüvel
3b4da656c9 Add-on: cache manager info in a JSON file
Instead of storing the cached manager info in the Blender preferences,
store the info in a JSON file. The file is located in the user prefs
folder (`~/.config/blender/{version}/config` on Linux).

This also reduces the number of 'refresh' operators to a single one, which
then fetches all necessary info from the Manager.

This fixes an issue (reported via chat) where worker tags were sometimes
not retained across file saves.
2024-03-04 13:08:53 +01:00
Sybren A. Stüvel
f9bb7afcc6 Add-on: fix mypy warnings
No functional changes.
2024-03-04 12:46:38 +01:00
Sybren A. Stüvel
8cf19876c0 OAPI: regenerate code 2024-03-01 08:36:40 +01:00
Sybren A. Stüvel
d9ffe8a1b6 OAPI: regenerate code 2024-02-29 20:38:38 +01:00
Sybren A. Stüvel
94bf65a9e3 Bumped version to 3.5-alpha1 2024-02-26 18:17:19 +01:00
Sybren A. Stüvel
fd9605583f OAPI: regenerate code 2024-02-21 22:16:23 +01:00
Sybren A. Stüvel
1ed893fa84 OAPI: regenerate code 2024-02-05 09:14:31 +01:00
Sybren A. Stüvel
aa2ad35155 Bumped version to 3.5-alpha0 2024-01-17 13:17:35 +01:00
Sybren A. Stüvel
e1306010d7 Bumped version to 3.4 2024-01-12 11:14:50 +01:00
Sybren A. Stüvel
b110f5fb51 Bumped version down to 3.4-beta1
There are a few more things I want to do before releasing 3,4.
2024-01-11 17:17:56 +01:00
Sybren A. Stüvel
0c08a5ad5d Bumped version to 3.4 2024-01-11 16:51:21 +01:00
Sybren A. Stüvel
1095caeddd OAPI: regenerate code
This creates the Python and JavaScript files for the job mass-deletion
operation.
2024-01-11 16:47:25 +01:00
Sybren A. Stüvel
ba02fa9a41 Upgrade BAT to 1.18
This fixes a long-standing issue when packing files on Windows. It also
solves some more bugs, and adds support for packing OpenVDB files.
2024-01-11 16:46:20 +01:00
Sybren A. Stüvel
e6a29e1662 Bumped version to 3.4-beta0 2024-01-05 17:01:29 +01:00
Sybren A. Stüvel
e4f5dff21c Addon: log BAT pack parameters
This can help to debug issues.

Note that these are logged at `INFO` level, and thus probably won't be
seen with Python's default logging configuration.
2024-01-05 11:25:17 +01:00
Sybren A. Stüvel
a6f6f10239 Fix #104263: Error performing BAT pack in Windows with shared storage
Replace calls to `Path.absolute()` and `Path.resolve()` with
`bpathlib.make_absolute(path)`.

The replaced functions can transform drive letters on Windows to UNC
notation. Either all of Flamenco + BAT should be using UNC notation, or
drive letters, but mixing those will cause errors.
2024-01-05 11:23:49 +01:00
Sybren A. Stüvel
b34ad8da90 Addon: fix issue where resubmission was blocked after submission error
Fix an issue where a submission error would keep the BAT status set to
`INVESTIGATING`, which hides the 'Submit to Flamenco' button. In case of
an error, it's now properly set to `ABORTED`, which does show that button.
2024-01-05 11:21:12 +01:00
Sybren A. Stüvel
1a4e0c36e4 Addon: gracefully handle disappearing job type
When refreshing the list of available job types, Blender recreates the
job type property itself, clearing out any previously chosen value. The
add-on tries to restore that previously chosen value, and now also
gracefully handles the case where this job type is no longer available.
2024-01-02 17:13:22 +01:00
Sybren A. Stüvel
a4000f1909 Bumped version to 3.3.1 2023-12-14 12:09:33 +01:00
Sybren A. Stüvel
a6db15fdfa Bump BAT from 1.16 to 1.17 2023-12-14 11:59:16 +01:00
Sybren A. Stüvel
02011f8237 Bumped version to 3.4-alpha0 2023-11-06 15:08:36 +01:00
Sybren A. Stüvel
788b6138b7 Bumped version to 3.3 2023-11-06 11:56:48 +01:00
Sybren A. Stüvel
0333fe1383 Bumped version to 3.3-beta3 2023-11-02 16:29:56 +01:00
Sybren A. Stüvel
30da72a9b7 Upgrade BAT to 1.16 2023-11-02 15:49:38 +01:00
Sybren A. Stüvel
90186d7a79 Fix mypy error
No functional changes.
2023-11-02 13:50:45 +01:00
Sybren A. Stüvel
01f2e6d558 Bumped version to 3.3-beta2 2023-10-31 14:54:20 +01:00
Sybren A. Stüvel
4134388dda Addon API client README: add missing link 2023-10-20 11:07:23 +02:00
Sybren A. Stüvel
624135f55b Bump version to v3.3-beta1 2023-10-20 11:05:47 +02:00
Sybren A. Stüvel
621f050a68 OAPI: regenerate code 2023-08-23 13:54:02 +00:00
Sybren A. Stüvel
1eb7764d00 OAPI: regenerate code 2023-08-14 16:00:06 +02:00
Sybren A. Stüvel
b24d748840 Add-on: use the 'eval' description in the 'eval now' button as well
In the tooltip of the 'evaluate now' button (the one with the Python
icon), include the description provided by the job type in its
`evalInfo.description` field. This makes it explicit what the button
will do when pressed.
2023-07-13 15:14:39 +02:00
Sybren A. Stüvel
6994413ed6 Use new property names for 'use automatic values' button
Adjustment of the job settings property names, making them more widely
usable than just the 'use automatic values' button (also known as
'eval-on-submit').
2023-07-13 15:02:00 +02:00
Sybren A. Stüvel
4b53c06467 OAPI: regenerate code 2023-07-13 15:00:34 +02:00
Sybren A. Stüvel
242ed119ab Eval-on-submit job settings: improve GUI in the add-on
Improve the usability of the 'eval-on-submit' toggle button:

- Add a placeholder text that can be shown instead of the input field. This
  can be used to describe what the evaluated Python code will do. In the
  case of the 'Simple Blender Render' job, this is set to 'Scene frame
  range'.
- Change the way in which the job type has to declare this, both for
  clarity and to add the extra placeholder string
2023-07-13 14:44:24 +02:00