From 358f3ed8c44bbe45d8f4546afeeb0afaae85ea8b Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 30 Aug 2023 17:13:19 -0700 Subject: Continue work on in-game audio, revert steamvr.py We now play arpeggiated *chords* of vowels instead of one, allowing for a denser audio feedback mechanism. --- Scripts/libunity.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Scripts/libunity.py') diff --git a/Scripts/libunity.py b/Scripts/libunity.py index cd8174d..f79cd6f 100644 --- a/Scripts/libunity.py +++ b/Scripts/libunity.py @@ -745,7 +745,7 @@ class UnityAnimator(): node.class_id = "1101" node.anchor = str(new_id) state = node.mapping['AnimatorStateTransition'] - state.mapping['m_DstState'].mapping['fileID'] = dst_state.anchor + state.mapping['m_DstState'].mapping['fileID'] = copy.copy(dst_state.anchor) state.mapping['m_TransitionDuration'] = dur_s self.nodes.append(node) @@ -908,7 +908,7 @@ class UnityAnimator(): # Register the transition with the `from_state`. if from_state: from_state_trans = from_state.mapping['AnimatorState'].mapping['m_Transitions'].addChildMapping() - from_state_trans.mapping['fileID'] = trans.anchor + from_state_trans.mapping['fileID'] = copy.copy(trans.anchor) def addTransitionIntegerEqualityCondition(self, from_state, trans, param, param_val): # Populate the transition's condition logic. @@ -994,7 +994,8 @@ class UnityAnimator(): motion.mapping["guid"] = noop_anim_meta.guid motion.mapping["type"] = "2" else: - print(f"Skipping state {anchor} / {name}") + #print(f"Skipping state {anchor} / {name}") + pass def unityYamlToString(nodes): lines = [] -- cgit v1.2.3