-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace OSCTools.OSCmooth.Types | ||
{ | ||
[Serializable] | ||
public class OSCmoothLayer : ScriptableObject | ||
{ | ||
public List<OSCmoothParameter> parameters; | ||
public OSCmoothParameter configuration; | ||
|
||
public OSCmoothLayer() | ||
{ | ||
parameters = new List<OSCmoothParameter>(); | ||
configuration = new OSCmoothParameter(); | ||
} | ||
public OSCmoothLayer(List<OSCmoothParameter> parameters, OSCmoothParameter configuration) | ||
{ | ||
this.parameters = parameters; | ||
this.configuration = configuration; | ||
} | ||
} | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
} |