close

From PPT

  使用軟體:maya
  版本:2011 for windows
  附加使用軟體: no
  問題描述:no
  已嘗試過方式:

  各位大大好
  最近又碰到一個問題是小弟寫了一個helloValue.mel
  內容是
  global proc string helloValue( int $value ,string $person)
  {
    string $greeting;
    $greeting = “Hello “ + $person+” , number “ + $value;
    return $greeting;
  }

  這個例子是文件裡面的
  但是當我在另一各mel呼叫他時helloValue (1, “Jake”);
  卻顯示 cannot find procedure "helloValue"
  想請問大大,如何正確的能呼叫他呢
  是否需要修改路徑或存放在某個預設工作路徑呢

爬文(Google)?N/Y

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.96.77.109
推 david429:你要先執行這個mel後,他才會知道有這個proc              03/29 13:37
→ david429:可以先 source "C:\\helloValue.mel"; 再執行             03/29 13:38
→ david429:helloValue(1,"Jake");

arrow
arrow
    全站熱搜

    chunyuan 發表在 痞客邦 留言(0) 人氣()