boxMesh_ = Mesh.Box(device_, 2, 2, 2, out GStream_); clone_ = boxMesh_.Clone(boxMesh_.Options.Value, CustomVertex.PositionTextured.Format, device_); |
CustomVertex.PositionTextured[] verts = (CustomVertex.PositionTextured[])clone_.LockVertexBuffer(typeof(CustomVertex.PositionTextured), 0, clone_.NumberVertices); |
【メッセージを送る側】 //デリゲートを作る //こいつはクラスの外側で宣言 public delegate void Hogehoge(Point e); //デリゲートのインスタンスを作る。いわゆるメンバ変数。 public event Hogehoge myHoge; //メッセージ内容の定義 protect virtual void OnHoging(Point e); { if(myHoge != null) { myHoge(e); } } //実際にメッセージを投げる this.OnHoging(modifiedPos); |
・MELでできなくてpythonでできることは? ・MAYAに後付けモジュールをインポートする方法は? |
set fs = WScript.CreateObject("Scripting.FileSystemObject") dataBaseFolder = "D:\dataBase_zero"'希望のパスに書き換えれ! If Not fs.FolderExists(dataBaseFolder) Then fs.CreateFolder(dataBaseFolder) End If for each objName in WScript.Arguments If fs.FileExists(objName) Then exName = fs.GetExtensionName(objName) dataFolder = exName & "_data\" dataPath = fs.BuildPath(dataBaseFolder, dataFolder) filePath = fs.GetAbsolutePathName(objName) If Not fs.FolderExists(dataPath) Then fs.CreateFolder(dataPath) End If fs.CopyFile objName, dataPath MsgBox("ファイル " & objName & VBCR & "コピー先 " & dataFolder)'メッセージがうざかったらこの行を消す End If Next |
有楽町丸井 カテゴリ:脱キモオタ 2007/09/15 15:55:54 |
|
Elastic カテゴリ:脱キモオタ 2007/02/13 00:55:22 |
|
スタイルコネクション カテゴリ:脱キモオタ 2007/02/13 00:33:58 |