<div dir="auto">Also note that it would also be possible to *not* share keys in a running scene graph, and just run a preprocessor to copy the key field from the first interpolator in a group to subsequent ones.</div><div dir="auto"><br></div><div dir="auto">Both options should be considered.</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 9, 2023 at 6:09 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Proposal to share keys between Interpolators to reduce file size.<div dir="auto"><br></div><div dir="auto">A big part of the increased file size for animations is the duplication of the key fields in Interpolators.  My proposal is to add two fields, a DEF-like field and a USE-like field to all? Interpolator definitions in the standard.</div><div dir="auto"><br></div><div dir="auto">The first interpolator in a shared key group would have a keyDEF field naming the group.  A shared key field would be specified in the first interpolator, but not subsequent interpolators.  Subsequent interpolators in the group would have a keyUSE field referring to the shared key group.  Subsequent Interpolators would not have a key field.  A keyValue which is not shared would also be specified in all the interpolators.</div><div dir="auto"><br></div><div dir="auto">Different types of interpolators could share key values this way.</div><div dir="auto"><br></div><div dir="auto">This is already basically done for HAnimMotion, but HAnim lacks the nonlinear aspect of interpolator keys, which could be added to HAnimMotion if not there.</div><div dir="auto"><br></div><div dir="auto">This could be done with CSS class in HTML.</div><div dir="auto"><br></div><div dir="auto">John</div>
</blockquote></div></div>