0
我已經構建了獲取特定窗口的腳本,窗口的字符串是'gradientAttributeEditor',我想訪問編輯器以通過腳本創建一些點。但我不知道如何。Maya Python:在漸變屬性編輯器中編輯點
import maya.cmds as cmds
def rampEditor():
windows = cmds.lsUI(windows = True)
for x in windows:
if not x == "gradientAttributeEditor":
windows.remove(x)
else:
editor = x
print(windows)
rampEditor()
這將gradientAttributeEditor放入x中。但現在得到名稱設置點,對我來說有點困難:/
如果有人不知道如何打開gradientAttributeEditor: 創建一個對象基元,選擇它並在FX標籤下,轉到nParticle下拉列表並單擊填充對象。如果你現在選擇particleShape並得到了ParticleSize和lcik的小箭頭
This is the gradientAttributeEditor
我不清楚你在問什麼;你想在漸變編輯器中創建控制點嗎?還是你想創建「粒子」,就像從@ Achayan的回答中看到的一樣? – mapofemergence
我想要一個腳本,正在尋找一個打開的梯度編輯器,並通過按鈕單擊它使指數曲線。問題是我不知道如何訪問編輯器。 該腳本應該保持儘可能通用,所以不僅適用於particleSize或wahtever,更適用於現在打開的gradientEditor。我希望它清除一些事情。 –