ジャンプ先: 概要. 戻り値. キーワード. 関連. フラグ. Python 例. 
      
       affects(string, [by=boolean], [type=string])  
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
      affects は、取り消し不可能、照会不可能、および編集不可能です。
      このコマンドは、指定されたアトリビュートに作用するノードまたはノード タイプに関するアトリビュートのリストを返します。
	  
      
      | string | 作用される/作用するアトリビュートのリスト | 
      attribute, node, class, dg
      affectedNet, listConnections
      
    
      by, type
      
        
          | ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | 
        
    
      | by() | boolean |   | 
    
      | 
          
        |  | 指定したアトリビュートに作用するアトリビュートではなく、指定したアトリビュートの作用を受けるアトリビュートを表示します。 |  | 
    
      | type(t) | string |   | 
    
      | 
          
        |  | 「作用対象」情報を取得するスタティック ノード タイプ |  | 
      
      
        
          
            |  フラグはコマンドの作成モードで表示できます |  フラグはコマンドの編集モードで表示できます | 
          
            |  フラグはコマンドの照会モードで表示できます |  フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。 | 
        
import maya.cmds as cmds
# List the attributes on node "sphere" that affect the "tx" attribute
cmds.sphere( n='sphere' )
cmds.affects( 'tx', 'sphere' )
# List the attributes on nodes of type "transform" that are affected by
# the "ty" attribute
cmds.affects( 'ty', by=True, t='transform' )
# List the attributes on nodes of type "revolve" that affect the
# "outputSurface" attribute
cmds.affects( 'outputSurface', t='revolve' )