ジャンプ先: 概要. 戻り値. MEL 例.

概要

attributeExists (string $attr, string $node)

指定したアトリビュートが特定のノードに存在するかどうかを確認します。

戻り値

なし

引数

変数名 変数型 説明
$attr string 検索するアトリビュートの名前です。
$node string 検索するノードの名前です。

MEL 例

  string $shapeName[] = `cone`;
  if (`attributeExists "scaleX" $shapeName[0]`) {
      print "Attribute exists\n";
  } else {
      print "Attribute does not exist\n";
  }