Sybren A. Stüvel
815337a7da
Anim: add ensure parameter to KeyframeStrip.channels(...) RNA function
...
Add `ensure` boolean parameter to the `ActionKeyframeStrip.channels()` RNA
function. Passing `ensure=True` will ensure the channelbag for the given
action slot handle exists. This makes it more straight-forward to create
F-Curves for a slot regardless of whether there already was a channelbag
for those F-Cuves:
```python
strip = action.layers[0].strips[0]
slot = action.slots[0]
# Old:
channelbag = strip.channels(slot.handle)
if not channelbag:
channelbag = strip.channelbags.new(action_slot)
ob_loc_x = channelbag.fcurves.new('location', index=0)
# New:
channelbag = strip.channels(slot.handle, ensure=True)
ob_loc_x = channelbag.fcurves.new('location', index=0)
```
Pull Request: https://projects.blender.org/blender/blender/pulls/133678
2025-01-31 15:16:10 +01:00
..
2024-04-12 10:04:07 +10:00
2025-01-30 05:44:20 +01:00
2024-12-24 11:55:29 +01:00
2024-02-05 17:08:17 +01:00
2024-12-02 11:23:47 +11:00
2024-11-03 22:04:44 +11:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2024-02-22 14:36:13 +01:00
2025-01-31 15:16:10 +01:00
2024-02-19 15:59:59 +01:00
2025-01-06 16:45:36 +11:00
2024-10-23 12:48:09 +11:00
2025-01-02 16:39:21 +01:00
2025-01-20 15:24:08 +01:00
2025-01-17 21:05:39 +01:00
2025-01-17 21:05:39 +01:00
2025-01-17 21:05:39 +01:00
2025-01-20 17:39:25 +01:00
2025-01-17 21:05:39 +01:00
2025-01-06 16:45:36 +11:00
2024-07-03 14:46:33 +02:00
2024-12-02 17:04:37 +01:00
2024-10-30 16:33:37 +11:00
2025-01-06 16:45:36 +11:00
2024-10-16 21:09:25 +11:00
2025-01-06 16:45:36 +11:00
2023-08-16 00:20:26 +10:00
2024-11-02 23:18:59 +11:00
2025-01-06 16:45:36 +11:00
2024-05-16 16:02:25 +10:00
2024-09-05 13:07:03 +10:00
2025-01-06 16:45:36 +11:00
2024-04-19 16:09:30 +10:00
2024-06-24 16:28:33 +02:00
2025-01-06 10:09:26 +01:00
2024-10-01 13:18:46 +10:00
2024-02-19 15:59:59 +01:00
2025-01-06 16:45:36 +11:00
2024-11-22 14:19:20 +01:00
2024-10-11 18:19:55 +02:00
2024-09-05 13:07:03 +10:00
2024-02-19 15:59:59 +01:00
2024-11-03 21:50:33 +11:00
2024-02-19 15:59:59 +01:00
2024-11-26 12:11:06 +01:00
2025-01-27 14:51:22 +01:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2025-01-09 16:46:37 +01:00
2024-02-19 15:59:59 +01:00
2025-01-04 22:26:18 +11:00
2025-01-29 20:03:36 +01:00
2025-01-29 23:15:39 +01:00
2023-08-16 00:20:26 +10:00
2025-01-30 18:44:23 +01:00
2024-12-19 15:12:38 +02:00
2024-02-22 14:25:54 +01:00
2024-11-02 15:43:26 +11:00
2025-01-30 04:15:27 +01:00
2023-08-16 00:20:26 +10:00
2025-01-30 04:15:27 +01:00
2025-01-21 11:30:20 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2024-03-26 20:16:02 +01:00
2025-01-15 05:52:15 +01:00
2025-01-15 05:52:15 +01:00
2025-01-15 05:52:15 +01:00
2025-01-15 05:52:15 +01:00
2024-03-29 10:11:22 -04:00
2025-01-14 08:28:52 +01:00
2025-01-29 16:26:46 -05:00
2024-11-06 10:49:53 +11:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2024-02-19 15:59:59 +01:00
2023-08-16 00:20:26 +10:00
2024-12-10 14:52:34 +01:00
2025-01-19 00:52:22 +01:00
2025-01-30 18:44:23 +01:00
2025-01-30 04:15:27 +01:00