Go to: Synopsis. Return value. Related. MEL examples.
string formValidObjectName(string $name)
None
Variable Name | Variable Type | Description |
---|---|---|
$name | string | The original name string for generating the valid object name. |
formValidObjectName("FBX Export"); // It will return "FBX_Export" formValidObjectName("2FBX Export"); // It will return "a2FBX_Export" formValidObjectName("_FBX Export"); // It will return "a_FBX_Export" formValidObjectName("FBX2 Export"); // It will return "FBX2_Export" formValidObjectName("F_BX Ex_port"); // It will return "F_BX_Ex_port" formValidObjectName("F!BX Ex#$port"); // It will return "F_BX_Ex__port" formValidObjectName(""); // It will return "defaultObject" formValidObjectName("_"); // It will return "a_" formValidObjectName("!"); // It will return "a_" formValidObjectName("b"); // It will return "b"