MaxCustomControls アセンブリ

このアセンブリは 3ds Max 2010 以降で使用でき、3ds Max 特有の DotNet オブジェクト、クラス、およびコントロールにアクセスするために使用できます。これらのオブジェクト、クラス、およびコントロールを使用すると、MAXScript と DotNet との統合が向上します。

"MaxCustomControls.dll" アセンブリ ファイルは 3ds Max ルート フォルダにあります。

アセンブリにより公開されるいくつかのタイプを次に示します。

ユーザ インタフェース コントロール

MaxForm

MaxTextBox

MaxToolStripComboBox

MaxToolStripTextBox

MaxUserControl

ProgressDialog

3ds Max コンポーネント

ExplorerControl

SceneExplorerControls

ManageSceneExplorerForm

MaterialExplorerControls

BaseMaterialControls

RenameInstanceDialog

AdvancedSearch

Win32

Win32API

次のスクリプトでは、アセンブリの公開タイプを、それらのコンストラクタ、プロパティ、メソッド、イベントとともに示します。

    MCC_path = getdir #maxroot + "MaxCustomControls.dll"
    theMCC = dotnet.loadAssembly MCC_path
    format "ASSEMBLY PROPERTIES:\n"
    showProperties theMCC
    format "ASSEMBLY METHODS:\n"
    showMethods theMCC
    theTypes = theMCC.GetExportedTypes()
    for t in theTypes do
    (
    format "TYPE: \"%\"\n" t.fullname
    theObj = try(dotNetObject t.FullName)catch(dotNetClass t.fullname)
    format "CONSTRUCTORS:\n"
    dotNet.showConstructors theObj
    format "PROPERTIES:\n"
    showProperties theObj
    format "METHODS:\n"
    showMethods theObj
    format "EVENTS:\n"
    showEvents theObj
    format "\n\n"
    )