ジャンプ先: 概要. 戻り値. キーワード. 関連. フラグ. MEL 例.
deleteExtension [-attribute string] [-forceDelete boolean] [-nodeType string]
deleteExtension は、取り消し不可能、照会不可能、および編集不可能です。
このコマンドは、ノード タイプから拡張子アトリビュートを削除するのに使用されます。アトリビュートは、ロング ネームかショート ネームのどちらかを使用して指定できます。一度に削除できる拡張子アトリビュートは 1 つだけです。複合アトリビュートの子は削除できません。その場合、複合アトリビュート全体を削除する必要があります。このコマンドには元に戻す機能、編集機能、照会機能はありません。
attribute, dependency, graph, delete, extension
addAttr, addExtension, aliasAttr, attributeInfo, connectAttr, deleteAttr, disconnectAttr, getAttr, getClassification, nodeType, objExists, objectType, renameAttr, setAttr
attribute, forceDelete, nodeType
| ロング ネーム(ショート ネーム) |
引数タイプ |
プロパティ |
-attribute(-at)
|
string
|
|
|
アトリビュートのロング ネームかショート ネームを指定します。
|
|
-forceDelete(-fd)
|
boolean
|
|
|
このフラグを設定してオンにすると、拡張子アトリビュートのすべてのデータ値が確認なしで削除されます。設定してオフにすると、ノードの既定以外の値を設定した拡張子アトリビュートはそのまま保持されます。このフラグを設定しない場合、拡張子アトリビュートの既定以外の値を保持するかどうかが確認されます。
|
|
-nodeType(-nt)
|
string
|
|
|
|
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
コマンド内でフラグを複数回使用できます。
|
addExtension -nt planet -ln martians -sn mr -at double;
createNode planet -n jupiter;
createNode planet -n mars;
setAttr mars.mr 35;
// Delete an extension attribute named mr/martians.
// Only returns 1 since the planet node 'jupiter'
// does not have a non-default value on the extension.
deleteExtension -nt planet -forceDelete on -at mr;
// Return: 1 //
// The attribute is gone since it was forced out
attributeQuery -type planet -at mr -q -exists;
// Return: 0 //
// Re-add and delete the extension again, forcing the
// attribute to remain if non-default values exist.
addExtension -nt planet -ln martians -sn mr -at double;
setAttr mars.mr 35;
deleteExtension -nt planet -forceDelete off -at mr;
// Return: 0 //
// The attribute still exists since it had some non-default values
attributeQuery -type planet -at mr -q -exists;
// Return: 1 //
attributeQuery -n jupiter -at mr -q -exists;
// Return: 1 //