ジャンプ先: 概要. 戻り値. キーワード. フラグ. Python 例.
profilerTool([categoryView=boolean], [collapseSelectedEvents=boolean], [collapseSelectedEventsRepetition=boolean], [cpuView=boolean], [destroy=boolean], [exists=boolean], [expandSelectedEvents=boolean], [expandSelectedEventsRepetition=boolean], [findNext=boolean], [findPrevious=boolean], [frameAll=boolean], [frameSelected=boolean], [isolateSegment=int], [make=boolean], [matchWholeWord=boolean], [searchEvent=string], [segmentCount=boolean], [showAllEvent=boolean], [showCriticalPath=boolean], [showSelectedEvents=boolean], [showSelectedEventsRepetition=boolean], [threadView=boolean], [unisolateSegment=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
profilerTool は、取り消し不可能、照会可能、および編集可能です。
このスクリプトは、プロファイラ ツールのビュー(描画領域)と対話する profilerPanel によって使用されます。これは プロファイラ ツールの一部の動作をコントロールするために使用できます。
なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
profiler, tool, profilerTool, timing, performance, profiling
categoryView, collapseSelectedEvents, collapseSelectedEventsRepetition, cpuView, destroy, exists, expandSelectedEvents, expandSelectedEventsRepetition, findNext, findPrevious, frameAll, frameSelected, isolateSegment, make, matchWholeWord, searchEvent, segmentCount, showAllEvent, showCriticalPath, showSelectedEvents, showSelectedEventsRepetition, threadView, unisolateSegment
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
#First record/load a profile
#Frame the tool's view on all recorded events.
cmds.profilerTool( edit = True, frameAll = True )
#Frame selected events
cmds.profilerTool( edit = True, frameSelected = True )
#Change to cpu view
cmds.profilerTool( edit = True, cpuView = True )
#Show only selected events
cmds.profilerTool( edit = True, showSelectedEvents = True )
#Show all events
cmds.profilerTool( edit = True, showAllEvent = True )
#Hide all events that have same comment as selected events
cmds.profilerTool( edit = True, showSelectedEventsRepetition = False )
#Find all events whose name contains "abc"
cmds.profilerTool( query = True, searchEvent = "abc" )
#Find the first event, whose name exactly matches with "def", next to current selected event
cmds.profilerTool( edit = True, matchWholeWord = True )
cmds.profilerTool( query = True, searchEvent = "def", findNext = True )
#Query segment count in buffer
cmds.profilerTool( query = True, segmentCount = True )
#Isolate the first segment
cmds.profilerTool( edit = True, isolateSegment = 0 )
#Unisolate segment
cmds.profilerTool( edit = True, unisolateSegment = True )