Timeline: LightningBunnyWorkshop

Plugins + Scripts Timeline: LightningBunnyWorkshop

Download [<1 MB]
It’s very simple to use: just select the control you want to move, switch to the Rotation or Position page, adjust the offset and the time range it applies to (a preview sphere shows up), then click Bake.

As for the order of operations, sorry, there’s no such thing. You can bake whenever you like. I do it after swapping the character: I set the offset based on the new character’s body proportions, using the preview sphere to check it. And even if you mess it up, you can always undo. :cool:
Thanks! Sphere preview is what i needed for this to click! :)
 
Hey Great mod, just to let you know I'm getting a lot more Chinese text in version 17 than previous versions
 
LightningBunny updated Timeline: LightningBunnyWorkshop with a new update entry:

Attempted to fix some bugs and added new playback features.

  1. Attempted to fix a number of bugs.
  2. Added the Non-linear Noise bake tool. A walkthrough has been added to the Baking Help.
  3. Added Sections on top of Groups, together with the related operations.
  4. Overhauled the Clip Sequencer UI: added a tag paging system that makes clips much easier to manage, double-click to bake directly, and a rich set of right-click menus. (Right-click a tag group or a clip name to open its menu.)
  5. Added two experimental playback features to each...

Read the rest of this update entry...
 
Hi. Is it possible to import a scene's entire Timeline setup into Workshop? I have a studio posing scene (not mine) with some 50+ poses/animations. I wanted to suck all the animations into Workshop and then learn how to animate by modding these individual poses. I tried to export from Timeline, but that only successfuly exported one of the 50 animations. Do I need to do this 50 times?
 
Hi. Is it possible to import a scene's entire Timeline setup into Workshop? I have a studio posing scene (not mine) with some 50+ poses/animations. I wanted to suck all the animations into Workshop and then learn how to animate by modding these individual poses. I tried to export from Timeline, but that only successfuly exported one of the 50 animations. Do I need to do this 50 times?
check the dropdown on the export page. it defaults to single animation but u can also export entire segments with many animations as well :)
 
check the dropdown on the export page. it defaults to single animation but u can also export entire segments with many animations as well :)
In my case, the Export options defaults to "All animations" which is what I used. But the result save only contained one animation. :-(

NVM. You're right. I tried it again. This second time, the saved animations contains all the animations. Thanks
 
Last edited:
Hi! I'd like to report a problem: my scene files are getting abnormally large.
After digging into it, the problem seems to be this plugin of yours. For PHFingerSliders compatibility, saving a pose writes a full copy of every plugin's data on the person into the pose. So clicking "Use current pose" adds one copy of each plugin's save data to that clip.
BTW, this scene has 27 saved poses, and it went from the usual 30–40 MB to 120 MB.
 
When I reorder rows with Drag to reorder and save the scene, the order comes back sorted alphabetically the next time I load it. I had AI look at the code: the order is already saved in the JSON — it's the order of the Controllers array — but on load it gets overwritten by list.Sort(comparer) inside Add(). Groups have a GroupOrder field for this, controller rows have no equivalent.

I'm not much of a coder, but I got AI to fix it and it might be useful to you: no new JSON fields — record each target in array order while deserializing, then reorder once after RestoreMissingTargets() has returned all the deferred controllers.

Diff:
--- a/src/AtomAnimations/Serialization/AtomAnimationSerializer.cs
+++ b/src/AtomAnimations/Serialization/AtomAnimationSerializer.cs
@@ -43,2 +43,7 @@
         private readonly List<PendingFloatParamTarget> _pendingFloatParams = new List<PendingFloatParamTarget>();
+
+        // Controller row order: remember the order of the Controllers array while loading, then
+        // re-apply it once loading finishes. Add() calls list.Sort(comparer) on every insert, which
+        // otherwise throws away the order produced by "Drag to reorder".
+        private readonly Dictionary<AtomAnimationClip, List<FreeControllerV3AnimationTarget>> _controllerOrder = new Dictionary<AtomAnimationClip, List<FreeControllerV3AnimationTarget>>();
 
@@ -399,2 +404,6 @@
             clip.ResolveReactiveMembers();
+
+            // Controller row order: on the non-scene-loading path (import/restore) all controllers
+            // are already added, so restore the saved order here.
+            if (!SuperController.singleton.isLoading) ApplyControllerOrder(clip);
         }
@@ -518,2 +527,4 @@
             }
+
+            RecordControllerOrder(clip, target);
 
@@ -671,2 +682,56 @@
             }
+
+            // Controller row order: every controller (including the deferred ones) is in place now,
+            // so re-apply the order saved in the scene.
+            if (_controllerOrder.Count > 0)
+            {
+                var orderedClips = _controllerOrder.Keys.ToArray();
+                for (var i = 0; i < orderedClips.Length; i++) ApplyControllerOrder(orderedClips[i]);
+            }
+        }
+
+        private void RecordControllerOrder(AtomAnimationClip clip, FreeControllerV3AnimationTarget target)
+        {
+            if (clip == null || target == null) return;
+            List<FreeControllerV3AnimationTarget> order;
+            if (!_controllerOrder.TryGetValue(clip, out order))
+            {
+                order = new List<FreeControllerV3AnimationTarget>();
+                _controllerOrder[clip] = order;
+            }
+            order.Add(target);
+        }
+
+        // Restores the controller order saved in the scene (Add()'s Sort would otherwise win).
+        private void ApplyControllerOrder(AtomAnimationClip clip)
+        {
+            if (clip == null) return;
+            List<FreeControllerV3AnimationTarget> order;
+            if (!_controllerOrder.TryGetValue(clip, out order)) return;
+            _controllerOrder.Remove(clip);
+            if (order.Count == 0) return;
+
+            var list = clip.targetControllers;
+            if (list.Count <= 1) return;
+
+            var reordered = list.OrderBy(t =>
+            {
+                var index = order.IndexOf(t);
+                return index < 0 ? int.MaxValue : index;
+            }).ToList();
+
+            var changed = false;
+            for (var i = 0; i < reordered.Count; i++)
+            {
+                if (!ReferenceEquals(reordered[i], list[i]))
+                {
+                    changed = true;
+                    break;
+                }
+            }
+            if (!changed) return;
+
+            list.Clear();
+            list.AddRange(reordered);
+            clip.NotifyTargetsListChanged();
         }
 
Last edited:
Back
Top Bottom