This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| // https://gery.casiez.net/1euro/ | |
| public sealed class OneEuroFilterVector3 | |
| { | |
| readonly float dCutoff; | |
| readonly LowPassFilterVector3 xFilt = new(); | |
| readonly LowPassFilterVector3 dxFilt = new(); | |
| // micCutoff を減らすとゆっくり動いているときの jitter が減る | |
| float minCutoff; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| schedule: | |
| - cron: '0 3 * * *' | |
| jobs: | |
| message: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| geminiResult: ${{ steps.set_output.outputs.value }} | |
| steps: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bpy | |
| def apply_modifiers(obj): | |
| ctx = bpy.context.copy() | |
| modifiers = [m for _, m in enumerate(obj.modifiers) if m.type != 'ARMATURE'] | |
| for m in modifiers: | |
| try: | |
| ctx['modifier'] = m | |
| bpy.ops.object.modifier_apply(ctx, modifier=m.name) | |
| except RuntimeError: |