Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ObjectNames.SetNameSmart

static function SetNameSmart(obj: Object, name: string): void;
static void SetNameSmart(Object obj, string name);
static def SetNameSmart(obj as Object, name as string) as void

Description

Sets the name of an Object.

If the object is an Asset, renames the asset and file names to match the object.