public void SFB_BS_ToggleRange(int value) { for (int i = 0; i < inspectorObjects.Count; i++) { SFB_InspectorObject inspectorObject = inspectorObjects [i]; SFB_BlendShape blendShape = blendShapeObjects [inspectorObject.objectID].blendShapes [inspectorObject.shapeID]; if (value == 0) { blendShape.minValue = value; blendShape.maxValue = value; } else { if (blendShape.isPlus) { blendShape.minValue = -value; blendShape.maxValue = value; } else { blendShape.minValue = 0; blendShape.maxValue = value; } } } }
public int AddToInspectorObjects(int newObjectID, int newShapeID, int newBlendShapeID) { int currentCount = inspectorObjects.Count; SFB_InspectorObject newObject = new SFB_InspectorObject();; inspectorObjects.Add(newObject); inspectorObjects [currentCount] = new SFB_InspectorObject(); inspectorObjects [currentCount].objectID = newObjectID; inspectorObjects [currentCount].shapeID = newShapeID; inspectorObjects [currentCount].blendShapeID = newBlendShapeID; return(currentCount); }
public void SFB_BS_TogglePresetsValue(int objectID, int value) { for (int i = 0; i < inspectorObjects.Count; i++) { SFB_InspectorObject inspectorObject = inspectorObjects [i]; if (inspectorObject.objectID == objectID || objectID == 999999) { SFB_BlendShape blendShape = blendShapeObjects[inspectorObject.objectID].blendShapes[inspectorObject.shapeID]; blendShape.presetExportValue = value; } } }