Esempio n. 1
0
        public MaxBridgeUtility()
        {
            Global = Autodesk.Max.GlobalInterface.Instance;
            Log.MaxLogger = Global.COREInterface.Log;
            Log.LogLevel = LogLevel.All;
            Log.EnableLog = true;
            Log.Add("Starting DazMaxBridge.", LogLevel.Information);

            Plugin = new MaxPlugin(Global);

            Log.Add("Starting UI.", LogLevel.Debug);

            GUI = new UtilityMainForm(this);
        }
Esempio n. 2
0
        public UtilityMainForm(MaxBridgeUtility parent)
        {
            InitializeComponent();

            Plugin = parent.Plugin;

            FormClosing += new FormClosingEventHandler(UtilityMainForm_FormClosing);

            rebuildMaterialsCheckbox.DataBindings.Add(new Binding("Checked", Plugin, "RebuildMaterials"));
            removeTransparentFacesCheckbox.DataBindings.Add(new Binding("Checked", Plugin, "RemoveTransparentFaces"));

            Plugin.ProgressCallback = Bridge_ProgressChanged;

            Click += new EventHandler(UtilityMainForm_Click);
            sceneListbox.SelectedValueChanged += new EventHandler(sceneListbox_SelectedValueChanged);
            sceneListbox.DisplayMember = "Label";

            materialSelectDropDown.Items.AddRange(Plugin.AvailableMaterialCreators);
            materialSelectDropDown.DisplayMember = "MaterialName";

            materialSelectDropDown.SelectedIndex = 0;

            animationTypeCombo.DataSource = Enum.GetValues(typeof(AnimationType));
        }