public static FBXElem FBXPropertyElement(FBXPropertyType PropertyType, string Name, string A, string B, string C) { return new FBXElem { ID = "P", Properties = { new FBXProperty { Type = 83, Value = Name }, new FBXProperty { Type = 83, Value = A }, new FBXProperty { Type = 83, Value = B }, new FBXProperty { Type = 83, Value = C } } }; }
public static FBXElem FBXPropertyElement(FBXPropertyType PropertyType, string Name, string A, string B, string C, object PropertyValue) { return new FBXElem { ID = "P", Properties = { new FBXProperty { Type = 83, Value = Name }, new FBXProperty { Type = 83, Value = A }, new FBXProperty { Type = 83, Value = B }, new FBXProperty { Type = 83, Value = C }, new FBXProperty { Type = (byte)PropertyType, Value = PropertyValue } } }; }
public static FBXElem FBXConnection(string parentType, long parent, string childType, long child, FBXPropertyType propertyType, string propertyName) { Console.WriteLine("Connecting {0} {1} to {2}.{4} {3}", childType, child, parentType, parent, propertyName); return new FBXElem { ID = "C", Properties = { new FBXProperty { Type = 83, Value = "OP" }, new FBXProperty { Type = 76, Value = child }, new FBXProperty { Type = 76, Value = parent }, new FBXProperty { Type = (byte)propertyType, Value = propertyName }, } }; }
public FBXProperty(string stringProperty) { propertyType = FBXPropertyType.STRING; this.stringProperty = stringProperty; }
public FBXProperty(byte[] rawBytesProperty) { propertyType = FBXPropertyType.RAW_BYTES; this.rawBytesProperty = rawBytesProperty; }
public FBXProperty(float[] singleArrayProperty) { propertyType = FBXPropertyType.SINGLE_ARRAY; this.singleArrayProperty = singleArrayProperty; }
public FBXProperty(double[] doubleArrayProperty) { propertyType = FBXPropertyType.DOUBLE_ARRAY; this.doubleArrayProperty = doubleArrayProperty; }
public FBXProperty(int[] int32ArrayProperty) { propertyType = FBXPropertyType.INT32_ARRAY; this.int32ArrayProperty = int32ArrayProperty; }
public FBXProperty(long[] int64ArrayProperty) { propertyType = FBXPropertyType.INT64_ARRAY; this.int64ArrayProperty = int64ArrayProperty; }
public FBXProperty(double doubleProperty) { propertyType = FBXPropertyType.DOUBLE; this.doubleProperty = doubleProperty; }
public FBXProperty(bool[] boolArrayProperty) { propertyType = FBXPropertyType.BOOL_ARRAY; this.boolArrayProperty = boolArrayProperty; }
public FBXProperty(float singleProperty) { propertyType = FBXPropertyType.SINGLE; this.singleProperty = singleProperty; }
public FBXProperty(long int64Property) { propertyType = FBXPropertyType.INT64; this.int64Property = int64Property; }
public FBXProperty(int int32Property) { propertyType = FBXPropertyType.INT32; this.int32Property = int32Property; }
public FBXProperty(short int16Property) { propertyType = FBXPropertyType.INT16; this.int16Property = int16Property; }
public FBXProperty(bool boolProperty) { propertyType = FBXPropertyType.BOOL; this.boolProperty = boolProperty; }