Commit Graph

85 Commits

Author SHA1 Message Date
Sybren A. Stüvel 14778e5c08 Remove code to support Blender 2.79 and older 2021-02-16 11:48:43 +01:00
Sybren A. Stüvel 8b49c5505e Reformat with Black
No functional changes.
2021-02-16 11:48:43 +01:00
Sybren A. Stüvel d77acfb9c8 Reduce logging noise
- No longer list Attract's RNA classes, these haven't changed in a long
  time and it's not interesting to see.
- Reduced log level when updating internal state. The result of the update
  is already logged at INFO level.
2020-11-12 12:31:17 +01:00
Sybren A. Stüvel 23b1f7de7d Convert property definitions from assignment to annotations on Blender 2.80+
The properties are still declared in the Python 3.5 compatible assignment
notation, and a class decorator that converts those to class annotations
as preferred by Blender 2.80.
2019-10-10 10:29:36 +02:00
Sybren A. Stüvel 2142e9e7fc Attract fix for Blender 2.80 panel change
Commit 1e7c3a159fd2ca42fd5688be067008ef0d2c03df removed the 'Info' panel
(which is good), so we have to attach the metadata subpanel somewhere else.
2019-06-21 14:29:49 +02:00
Sybren A. Stüvel 1dea802932 Attract doesn't have to be active to use ATTRACT_OT_open_meta_blendfile
It is pretty much independent of Attract.
2019-06-21 14:29:07 +02:00
Sybren A. Stüvel cf810de41b Another Blender 2.8 compatibility fix 2019-06-04 12:29:37 +02:00
Sybren A. Stüvel 985b3f6a7d Attract: draw strip metadata as its own panel
The panel is a subpanel in Blender 2.80, and a top-level panel in 2.79.
2019-05-24 14:12:36 +02:00
Sybren A. Stüvel dd83d3ee60 Blender 2.80 compatibility for Attract panel in sequence editor 2019-05-17 11:15:34 +02:00
Sybren A. Stüvel 649542daad Prevent crashing Blender when running in the background 2018-11-12 15:02:51 +01:00
Sybren A. Stüvel 69028e0cfd Fixed Python 3.6 / 2.79b incompatibilities introduced in 1.9.3 2018-11-01 18:39:06 +01:00
Sybren A. Stüvel 3f2479067c Fixed incompatibility with Python 3.6 (used in Blender 2.79b) 2018-11-01 18:30:10 +01:00
Sybren A. Stüvel 62c1c966f6 Attract: draw using the GPU module
The drawing is rather primitive, but it works.
2018-10-30 14:14:33 +01:00
Sybren A. Stüvel 57aadc1817 Attract: added 'open project in browser' button
The button was added to the video sequence editor panel.
2018-10-30 14:14:33 +01:00
Sybren A. Stüvel 7204d4a24c Added bl_category for Attract panel 2018-10-30 14:14:33 +01:00
Sybren A. Stüvel 641b51496a Some drawing code simplification 2018-10-30 14:14:33 +01:00
Sybren A. Stüvel 0562d57513 Attract: fixed class naming and registration 2018-10-30 14:14:33 +01:00
Sybren A. Stüvel 2f5f82b1a8 Blender 2.80-compatible unregistration 2018-09-04 14:56:10 +02:00
Sybren A. Stüvel b35d7bc5f3 Made the add-on more compatible with 2.80 and 2.79 2018-09-04 13:48:44 +02:00
Sybren A. Stüvel 2fce27f8cb Made the add-on not immediately crash on Blender 2.8 2018-06-01 17:22:49 +02:00
Sybren A. Stüvel 4aae107396 Support colour strips as Attract shots 2018-03-22 16:25:35 +01:00
Sybren A. Stüvel 014a36d24e Fix T52621: class name collision upon add-on registration
This is checked since Blender 2.79.
2017-09-05 11:07:33 +02:00
Sybren A. Stüvel c24501661e Fix T50954: Improve Blender Cloud add-on project selector
Attract and Flamenco features are (de)activated based on the extensions
enabled on the selected project. As a result, anyone can use the add-on
again, without seeing Attract or Flamenco things they can't use.
2017-03-17 15:08:09 +01:00
Sybren A. Stüvel cb20d6ee03 Fixed icon, the MOVE_UP_VEC icon was removed
This happened in Blender commit rBb2159b94bcd6c4e30c47b9970601e6f2ca2a0750
2017-01-06 17:01:06 +01:00
Dalai Felinto 645bdd950f Attract: prevent ui/console errors when no strip exists 2016-12-06 22:00:58 +01:00
Sybren A. Stüvel 9c3098cc0d Attract: Added some poll methods 2016-11-11 09:26:52 +01:00
Sybren A. Stüvel 98beaf7fb7 Unlinking a single shot copies the shot ID to the clipboard.
This allows you to easily unlink one strip, and relink another. This cannot
be done for multiple shots simultaneously.
2016-11-11 09:23:39 +01:00
Sybren A. Stüvel 3364371ac6 Use '{nr of shots} Shots' instead of 'Selected Shots'
This is a bit shorter, and more concrete.
2016-11-11 09:22:59 +01:00
Sybren A. Stüvel 2723b07fa2 Nicer button layout for unlink & delete
This makes 'delete' harder to hit accidentally.
2016-11-11 09:17:25 +01:00
Sybren A. Stüvel c2a037ca89 Added button to copy a shot ID to the clipboard 2016-11-11 09:15:04 +01:00
Sybren A. Stüvel d3451d4de3 Icon tweaks 2016-11-11 09:14:51 +01:00
Sybren A. Stüvel 5094977614 Attract: "delete shots" now works on all selected Attract strips 2016-11-11 09:06:59 +01:00
Dalai Felinto a11a55be22 Implement attract "Trim End" 2016-11-10 18:49:13 +01:00
Sybren A. Stüvel 68d2fc8e42 Fixed scene update post handler disappearing. 2016-11-08 15:11:27 +01:00
Sybren A. Stüvel 56353d4177 More captialisation of button labels. 2016-11-07 13:39:33 +01:00
Sybren A. Stüvel 469a9318af Also allow meta strips to be considered "shots" in Attract. 2016-11-07 13:39:14 +01:00
Sybren A. Stüvel 115eea82c6 Prevent errors when there is no sequencer in the current scene 2016-11-04 17:47:27 +01:00
Sybren A. Stüvel 900068a6f5 Slight improvements to Attract shot delete operator 2016-11-04 17:47:13 +01:00
Sybren A. Stüvel c8229500d1 Bugfix 2016-11-04 16:42:26 +01:00
Sybren A. Stüvel 65ff9da428 Attract: Draw conflicts more subtly 2016-11-04 16:12:13 +01:00
Sybren A. Stüvel fcba8a2e0f Attract: Compute strip conflicts in scene update handler 2016-11-04 16:11:59 +01:00
Sybren A. Stüvel 7ef5e522f8 Attract thumbs: only use middle frame when current frame not on shot
This now also applies when rendering multiple shot thumbnails.
2016-11-04 15:45:23 +01:00
Sybren A. Stüvel ae570e5907 Allow undeletion of shots by relinking to the edit. 2016-11-04 13:44:12 +01:00
Sybren A. Stüvel cbfc75a89c Attract: added operator to send all shots to Attract at once. 2016-11-04 12:32:21 +01:00
Sybren A. Stüvel 54e676b36f Only send 'unlink' cmd to Attract if ObjectID no longer used in edit.
Previously it would always send 'unlink', even when a duplicate strip was
removed.
2016-11-04 12:05:21 +01:00
Sybren A. Stüvel c94b0f5f2d Slightly nicer wording of delete warning. 2016-11-04 12:04:53 +01:00
Sybren A. Stüvel a58bfe9a76 Be more explicit in strip ObjectID conflicts.
Shows more warnings in the UI, and the conflict status is now saved on
an RNA property atc_object_id_conflict.
2016-11-04 12:04:38 +01:00
Sybren A. Stüvel d332e1e50a Attract: Draw conflicts (two strips linked to the same shot) in red outline 2016-11-04 11:36:40 +01:00
Dalai Felinto dd66d5ce93 UI elements should be capitalized in Blender 2016-11-04 10:20:54 +01:00
Sybren A. Stüvel 965b02cec4 Attract: Send relink/unlink shots as PATCH 2016-11-03 18:44:31 +01:00