public static object Query(string command, QueryType qType, params object[] args) { string formatCommand = MaxscriptSDK.AssembleScript(command, args); //string formatCommand = String.Format(command, args); if (qType == QueryType.Integer) { return(MaxscriptSDK.ExecuteIntMaxscriptQuery(formatCommand)); } else if (qType == QueryType.Float) { return(MaxscriptSDK.ExecuteFloatMaxscriptQuery(formatCommand)); } else if (qType == QueryType.String) { return(MaxscriptSDK.ExecuteStringMaxscriptQuery(formatCommand)); } else if (qType == QueryType.Boolean) { return(MaxscriptSDK.ExecuteBooleanMaxscriptQuery(formatCommand)); } else { return(MaxscriptSDK.ExecuteColorMaxscriptQuery(formatCommand)); } }
public static string Command(string command, params object[] args) { string formatCommand = MaxscriptSDK.AssembleScript(command, args); if (Execute) { MaxscriptSDK.ExecuteMaxscriptCommand(formatCommand); } if (OutputCommands) { output.Add(formatCommand); } return(formatCommand); }
public static string Point3Literal(Vector3 v) { return(MaxscriptSDK.AssembleScript("[{0}, {1}, {2}]", v.X, v.Y, v.Z)); }
public static string Point3Literal <T>(T X, T Y, T Z) { return(MaxscriptSDK.AssembleScript("[{0}, {1}, {2}]", X, Y, Z)); }
public static string QuatLiteral(Quaternion q) { return(MaxscriptSDK.AssembleScript("quat {0} {1} {2} {3}", q.X, q.Y, q.Z, q.W)); }
public static string NewMeshLiteral(string name, string vertArray, string faceArray, string faceMatIdArray, string texVertArray) { return(MaxscriptSDK.AssembleScript("mesh name:\"{0}\" vertices:{1} faces:{2} materialIDs:{3} tverts:{4}", name, vertArray, faceArray, faceMatIdArray, texVertArray)); }