为什么没有关于 `cmds.shaderfx` 命令的 Python 文档?

Why is there no Python documentation about `cmds.shaderfx` command?

没有关于shaderfx相关的python操作的官方文档。我进入 MAYA python 命令参考页面,并搜索关键字“shaderfx”。然后,在 MAYA“python 命令引用”中没有结果,在 MAYA“节点和属性引用”中也没有结果。但我发现 MAYA 脚本编辑器将方法“cmds.shaderfx”突出显示为常规方法。我在 Google.

上找到了类似的方法调用

那么,我在哪里可以找到有关 shaderfx 的 python 方法的详细信息?很奇怪。

你说得对,并非所有 Maya Python 命令都在线记录。

如果您输入以下内容,您将看到空的文档页面:

cmds.help('shaderfx', doc=True)

但是,如果您删除 doc 标志然后再次执行我们之前的命令,您将获得脚本编辑器的离线帮助。

cmds.help('shaderfx')

虽然简短但很有帮助。这是:

  -ag -addGroup                   String
 -amt -acquireMTextureFromSwatch  UnsignedInt UnsignedInt Float String
  -an -addNode                    UnsignedInt
 -ang -moveNodeInGroup            UnsignedInt UnsignedInt
   -b -buildInfo                 
  -bc -breakConnection            UnsignedInt UnsignedInt UnsignedInt UnsignedInt
 -cgn -createGroupNode           
 -cgp -changeGroup                UnsignedInt
  -dn -deleteNode                 UnsignedInt
  -ea -edit_action                UnsignedInt String
  -eb -edit_bool                  UnsignedInt String on|off
 -eeg -edit_exposeGrp             UnsignedInt String Int
  -ef -edit_float                 UnsignedInt String Float
 -ef2 -edit_float2                UnsignedInt String Float
 -ef3 -edit_float3                UnsignedInt String Float Float Float
 -ef4 -edit_float4                UnsignedInt String Float Float Float Float
  -ei -edit_int                   UnsignedInt String Int
  -es -edit_string                UnsignedInt String String
 -esl -edit_stringlist            UnsignedInt String Int
 -esp -edit_stringPath            UnsignedInt String String
  -ga -getAttributeNodeID         String
  -gc -getCode                   
 -gcc -getConnectedSocketCount    UnsignedInt UnsignedInt UnsignedInt
 -gci -getConnectedSocketIndex    UnsignedInt UnsignedInt UnsignedInt UnsignedInt on|off
 -gcn -getNodeClassName           UnsignedInt
 -gge -getGroupEndUID             UnsignedInt
 -ggi -getGroupUID                UnsignedInt
 -gid -getConnectedNodeID         UnsignedInt UnsignedInt UnsignedInt UnsignedInt on|off
 -gnc -getNodeCount              
 -gni -getNodeUIDFromIndex        Int
 -gnn -getNodeIDByName            String
 -gpt -getPropertyType            UnsignedInt String
 -gpv -getPropertyValue           UnsignedInt String
  -gs -getSettingNodeID           String
 -gsc -getSocketCount             UnsignedInt UnsignedInt
 -gsi -getSocketIndexByName       UnsignedInt String UnsignedInt UnsignedInt
 -gsn -getSocketName              UnsignedInt UnsignedInt UnsignedInt
 -gst -getSocketType              UnsignedInt UnsignedInt UnsignedInt
 -gtc -getNodeTypeByClassName     String
 -gtr -getTextureResolution       UnsignedInt
   -h -help                      
 -igd -isGroupFromDisk            UnsignedInt
 -ige -isGroupEnd                 UnsignedInt
 -igs -isGroupStart               UnsignedInt
 -isa -initShaderAttributes      
  -lg -loadGraph                  String
  -lp -listProperties             UnsignedInt
 -lsm -loadSjsonMaterial          String
  -mc -makeConnection             UnsignedInt UnsignedInt UnsignedInt UnsignedInt
  -mu -manualUpdate               on|off
   -n -sfxnode                    String
 -nui -nodeUI                    
   -r -redraw                    
 -rhg -getHwShaderNodeRootGrpID  
 -rhw -getHwShaderNodeID         
 -rsd -renderSwatchToDisk         UnsignedInt UnsignedInt Float String
 -rui -replaceUI                 
 -ruv -renderSwatchToDiskUV       UnsignedInt UnsignedInt Float String
   -s -start                     
 -sam -setAdvancedMode            on|off
 -sel -selectNode                 UnsignedInt
 -sgn -saveGroupNode              UnsignedInt
 -sup -setUserPath                String
 -swc -swatchCamera               String
 -swg -swatchGeom                 String
   -u -update                    
  -us -undoStack                 
 -wfx -write_float2_x            
 -wfy -write_float2_y