ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.

概要

showHidden( [objects...] , [above=boolean], [allObjects=boolean], [below=boolean])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

showHidden は、取り消し可能、照会不可能、および 編集不可能 です。

showHidden コマンドは、非表示オブジェクトを可視にするために使用します。フラグが指定されていない場合、コマンドに指定したオブジェクトだけが可視状態になります。オブジェクトの親が不可視の場合、当該オブジェクトも不可視のままです。不可視性は継承されます。オブジェクトを確実に可視にするには、-a/above フラグを使用します。このフラグを使用すると、オブジェクト(1 つまたは複数)の不可視の祖先がすべて可視になります。-b/below フラグを使用すると、オブジェクトの下のすべての不可視オブジェクトが可視になります。すべてのオブジェクトを可視にするには、-all/allObjects フラグを使用します。

関連項目: hide

戻り値

なし

関連

currentUnit, displayAffected, displayColor, displayCull, displayLevelOfDetail, displayPref, displayRGBColor, displaySmoothness, displayStats, displaySurface, hide, refresh, toggle

フラグ

above, allObjects, below
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
allObjects(all) boolean create
すべての不可視オブジェクトを可視にします。
above(a) boolean create
オブジェクトと、そのオブジェクトのすべての不可視の祖先を可視にします。
below(b) boolean create
オブジェクトと、そのオブジェクトのすべての不可視の子孫を可視にします。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

import maya.cmds as cmds

# create a sphere and group it, then hide the sphere and the group.
cmds.sphere( n='sphere1' )
cmds.group( n='group1' )
cmds.hide( 'group1', 'sphere1' )
# make the sphere visible. Note that you still can't see it
# because the group is invisible.
cmds.showHidden( 'sphere1' )
# make the sphere and the group visible.
cmds.showHidden( 'sphere1', above=True )
# make everything visible. This will make the cameras (which are
# normally invisible) visible as well.
cmds.showHidden( all=True )