diff --git a/.gitignore b/.gitignore index fc9ac58..b60f12c 100644 --- a/.gitignore +++ b/.gitignore @@ -393,8 +393,8 @@ VRC.Enums* /Assets/Scenes/SampleScene.unity /Assets/Scenes /Assets/OSCmooth/Generated/Anims/Animator_354a5319244b7d64ca734626cd690e47 -/Assets /Assembly-CSharp.csproj /Assembly-CSharp-Editor.csproj /Packages -*.csproj \ No newline at end of file +*.csproj +.history \ No newline at end of file diff --git a/Assets/OSCmooth/Editor/OSCmoothLayer.cs b/Assets/OSCmooth/Editor/OSCmoothLayer.cs new file mode 100644 index 0000000..80b969f --- /dev/null +++ b/Assets/OSCmooth/Editor/OSCmoothLayer.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +namespace OSCTools.OSCmooth.Types +{ + [Serializable] + public class OSCmoothLayer : ScriptableObject + { + public List parameters; + public OSCmoothParameter configuration; + + public OSCmoothLayer() + { + parameters = new List(); + configuration = new OSCmoothParameter(); + } + public OSCmoothLayer(List parameters, OSCmoothParameter configuration) + { + this.parameters = parameters; + this.configuration = configuration; + } + } +} + diff --git a/Assets/OSCmooth/Editor/OSCmoothParameter.cs b/Assets/OSCmooth/Editor/OSCmoothParameter.cs new file mode 100644 index 0000000..e040519 --- /dev/null +++ b/Assets/OSCmooth/Editor/OSCmoothParameter.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +namespace OSCTools.OSCmooth.Types +{ + [Serializable] + public class OSCmoothParameter + { + + // for Animation creation purposes: + public float localSmoothness = 0.1f; + public float remoteSmoothness = 0.7f; + public string paramName = "NewParam"; + + // This setting sets the output to controll the + // base parameter. This is useful if an OSC app + // doesn't need to directly control the base parameter, + // such as VRCFaceTracking binary parameters. + public bool flipInputOutput = false; + + // This will convert all instances of the base parameter to the proxy in every blend tree. + // WARNING. Please be considerate with this setting. + public bool convertToProxy = true; + + // Resolution of parameters for binaries and disable binary + public int binarySizeSelection = 0; + // Combined parameter for positive and negative + public bool combinedParameter = false; + + // for Editor window visibility + public bool isVisible; + + public OSCmoothParameter() { } + public OSCmoothParameter(string paramName) + { + this.paramName = paramName; + } + public OSCmoothParameter(string paramName, float localSmoothness, float remoteSmoothness, bool convertToProxy, bool flipInputOutput, int binarySizeSelection, bool combinedParameter) + { + this.paramName = paramName; + this.localSmoothness = localSmoothness; + this.remoteSmoothness = remoteSmoothness; + this.convertToProxy = convertToProxy; + this.flipInputOutput = flipInputOutput; + this.binarySizeSelection = binarySizeSelection; + this.combinedParameter = combinedParameter; + } + } +} \ No newline at end of file