Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

setCustomAttrNiceNameResource(string $nodeType, string $attrShortName, string $str)

Convenience routine to define localizable string resource values for niceNames of user-defined/custom/dynamic attributes.

Return value

None

Related

loadPluginLanguageResources, setAttrEnumResource, setAttrNiceNameResource, setCustomAttrEnumResource, setNodeNiceNameResource

Arguments

Variable Name Variable Type Description
$nodeTypestringthe node type
$attrLongNamestringthe attribute's long name
$strstringdisplayable nice name string to be associated with this attribute

MEL examples

  // Set the custom attribute's nice name string associated with 
  // attribute "startPosition" on node type "myNode".  This example shows an
  // English resource name, however this routine would more often
  // be called in practice to provide localized string values. 
  // 
  setCustomAttrNiceNameResource( "myNode", "spos", "Start Position");