- Timestamp:
- May 8, 2013, 11:52:38 PM (12 years ago)
- Location:
- xmlTools/trunk/posUpdate
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
xmlTools/trunk/posUpdate/ParametersParser.cs
r750 r861 51 51 [Parameter(Required = true, Description = "The new first value of the chain. All the chain will be updated based on this value")] string newValue, 52 52 [Parameter(Description = "Value which have some kind of relation with -newVal \n Together with -newVal updates all the values based on the" + 53 "-new Val and another position specified on -valRelation parameter (basically starts with (newVal-valRelation) ) Is especially useful when" +53 "-newvalue and another position specified on -valrelation parameter (basically starts with (newvalue-valrelation) ) Is especially useful when" + 54 54 "updating multiple related chains (on different files), like multiple objects from one position to another. Don't use with -filename, because" + 55 "it will only update one file. \nExample: xmlTools.exe -newVal \"1 1 1\" -valRelation \"4 4 4\" -valElement Translation -valParentElement" +55 "it will only update one file. \nExample: xmlTools.exe updatechainvalues -filename:OBANheli_body_center.xml -newvalue:\"1 1 1\" -valrelation:\"4 4 4\" -element:Translation -parelement:" + 56 56 "OBANKeyFrame")] string valRelation, 57 [Parameter(Description = "Only update specific positions. Positions starts with 0, separted multiple positions with space. Example: val Positions=0 1 4")] [MoreThan(-1)] string valPositions57 [Parameter(Description = "Only update specific positions. Positions starts with 0, separted multiple positions with space. Example: valpositions=\"0 1 4\"")] [MoreThan(-1)] string valPositions 58 58 ) 59 59 { -
xmlTools/trunk/posUpdate/Program.cs
r750 r861 11 11 class Program 12 12 { 13 public static readonly string toolsVersion = "0.8 d";13 public static readonly string toolsVersion = "0.8e"; 14 14 private static appErrors lastError = appErrors.NO_ERROR; 15 15 -
xmlTools/trunk/posUpdate/XmlTools.cs
r742 r861 230 230 Util.getAllSpecificElements(xdoc.DocumentElement, ref myElements, this.posElement, this.posParentElement); //Returns all after "Oni" element 231 231 232 if (valuePositions == "")232 if (valuePositions == null) 233 233 { 234 234 newXmlLastPos = new XmlNumberValue(newValue); … … 239 239 } 240 240 241 if (valuePositions != "")241 if (valuePositions != null) 242 242 { 243 243 checkValidSpecificPositions(valuePositions, newValue, myElements[0].InnerText); … … 258 258 else 259 259 { // first time just assign to last value 260 if (valueRelation != "")260 if (valueRelation != null) 261 261 { 262 262 newXmlLastPos = XmlNumberValue.difference(newXmlLastPos, XmlNumberValue.difference(new XmlNumberValue(valueRelation), xmlCurrValue)); -
xmlTools/trunk/posUpdate/xmlTools.csproj.user
r750 r861 2 2 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 4 <StartArguments>versions</StartArguments> 4 <StartArguments>updatechainvalues -filename:OBANheli_body_center.xml -newvalue:"20 10 30" -element:Translation -parelement:OBANKeyFrameversions</StartArguments> 5 <StartWorkingDirectory>C:\games\Oni\AE\Tools</StartWorkingDirectory> 5 6 </PropertyGroup> 6 7 <PropertyGroup> … … 15 16 </PropertyGroup> 16 17 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 17 <StartArguments>replacealsl -element:FirstLevel -value:0 -nobackups -filename:"C:\Users\home\Documents\Visual Studio 2012\Projects\posUpdate\posUpdate\bin\Debug\%2a.xml"</StartArguments> 18 <StartArguments>updatechainvalues -filename:OBANheli_body_center.xml -newvalue:"20 10 30" -element:Translation -parelement:OBANKeyFrame</StartArguments> 19 <StartWorkingDirectory>C:\games\Oni\AE\Tools</StartWorkingDirectory> 18 20 </PropertyGroup> 19 21 </Project>
Note:
See TracChangeset
for help on using the changeset viewer.