-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Default MM Renderer to "MM Renderer Basic"
- Loading branch information
1 parent
1d04c4b
commit f624629
Showing
20 changed files
with
1,909 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
// Copyright (C) 2023 David Cattermole. | ||
// | ||
// This file is part of mmSolver. | ||
// | ||
// mmSolver is free software: you can redistribute it and/or modify it | ||
// under the terms of the GNU Lesser General Public License as | ||
// published by the Free Software Foundation, either version 3 of the | ||
// License, or (at your option) any later version. | ||
// | ||
// mmSolver is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with mmSolver. If not, see <https://www.gnu.org/licenses/>. | ||
// --------------------------------------------------------------------- | ||
// | ||
// mmRenderer Render Globals AE Template | ||
// | ||
|
||
global proc AEmmRenderGlobalsSilhouetteTemplate(string $name) { | ||
string $parent = `setParent -q`; | ||
|
||
editorTemplate -beginScrollLayout; | ||
|
||
editorTemplate -beginNoOptimize; | ||
|
||
editorTemplate | ||
-beginLayout "Attributes" | ||
-collapse false; | ||
|
||
editorTemplate | ||
-label "Enable" | ||
-addControl "enable"; | ||
|
||
editorTemplate | ||
-label "Depth Offset" | ||
-addControl "depthOffset"; | ||
|
||
editorTemplate | ||
-label "Width" | ||
-addControl "width"; | ||
|
||
editorTemplate | ||
-label "Color" | ||
-addControl "color"; | ||
|
||
editorTemplate | ||
-label "Alpha" | ||
-addControl "alpha"; | ||
|
||
editorTemplate -endLayout; | ||
|
||
editorTemplate -endNoOptimize; | ||
|
||
editorTemplate -addExtraControls; | ||
|
||
// include/call base class/node attributes | ||
AEabstractBaseCreateTemplate $name; | ||
|
||
editorTemplate -endScrollLayout; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// Copyright (C) 2023 David Cattermole. | ||
// | ||
// This file is part of mmSolver. | ||
// | ||
// mmSolver is free software: you can redistribute it and/or modify it | ||
// under the terms of the GNU Lesser General Public License as | ||
// published by the Free Software Foundation, either version 3 of the | ||
// License, or (at your option) any later version. | ||
// | ||
// mmSolver is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with mmSolver. If not, see <https://www.gnu.org/licenses/>. | ||
// --------------------------------------------------------------------- | ||
// | ||
// mmRenderer Render Globals AE Template | ||
// | ||
|
||
global proc AEmmRenderGlobalsTemplate(string $name) { | ||
string $parent = `setParent -q`; | ||
|
||
editorTemplate -beginScrollLayout; | ||
|
||
editorTemplate -beginNoOptimize; | ||
|
||
editorTemplate | ||
-beginLayout "Attributes" | ||
-collapse false; | ||
|
||
editorTemplate -endLayout; | ||
|
||
editorTemplate -endNoOptimize; | ||
|
||
editorTemplate -addExtraControls; | ||
|
||
// include/call base class/node attributes | ||
AEabstractBaseCreateTemplate $name; | ||
|
||
editorTemplate -endScrollLayout; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// Copyright (C) 2021 David Cattermole. | ||
// | ||
// This file is part of mmSolver. | ||
// | ||
// mmSolver is free software: you can redistribute it and/or modify it | ||
// under the terms of the GNU Lesser General Public License as | ||
// published by the Free Software Foundation, either version 3 of the | ||
// License, or (at your option) any later version. | ||
// | ||
// mmSolver is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with mmSolver. If not, see <https://www.gnu.org/licenses/>. | ||
// --------------------------------------------------------------------- | ||
// | ||
// When creating an MRenderOverride plug-in, you can do the following | ||
// to add an option box to open a dialog that supports UI configurable | ||
// user options: | ||
// | ||
// If your MRenderOverride's name is FooRenderer, then provide a | ||
// global MEL procedure named FooRendererOptionBox (ensure that | ||
// OptionBox is added as a postfix ), and the option box icon will | ||
// appear beside the viewport menu item automatically. | ||
// | ||
// You can manage the UI layout of the option dialog box in the | ||
// FooRendererOptionBox procedure. | ||
// | ||
// | ||
|
||
global proc mmRendererSilhouetteOptionBox() { | ||
print("mmRendererSilhouetteOptionBox"); | ||
if (!`objExists "mmRenderGlobalsSilhouette"`) { | ||
string $node = `createNode "mmRenderGlobalsSilhouette" | ||
-name "mmRenderGlobalsSilhouette" | ||
-shared -skipSelect`; | ||
lockNode -lock on $node; | ||
} | ||
select -r "mmRenderGlobalsSilhouette"; | ||
return; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.