Render buffer Comparator

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
neonZorglub
OctaneRender Team
Posts: 1005
Joined: Sun Jul 31, 2016 10:08 pm

Render buffer Comparator
(from version 2023.1.2-14.11 and 2024.1 Alpha 3 - 15.05)

The Octane viewport has a new button (A|B) for the rendered image comparator.
The first time it is clicked, this will store the current rendered image in memory (history slot 1), and start the comparator mode.
This displays both the stored image and the current render side by side.
You can adjust the screen division by sliding the separator line.
When the comparator is active, a click on the 'A|B' button with stop the comparator mode.
CompareAB_1.png
For settings and use of more slots, use the context menu on this button.

-Store render to Image History (slot xx)
-Compare to Image History (slot xx)
-Stop Compare
-Clear History
-Left Right
-Up Down
-Swap A B
CompareAB.png

The 2 options Comparator type (left right / up down) and Swap AB are stored in the max scene file.
The default values (for new scenes and loading old scenes) can be set in the Preferences / Viewport tab.
CompareAB_upDown.png
Actions
There are several 'Actions' added to the Octane Actions.
You can use those actions to customize 3dsMax menus, keyboard shortcuts, etc..

new actions:
Store Render To History1
Store Render To History2
Store Render To History3
Store Render To History4
Compare Render To History1
Compare Render To History2
Compare Render To History3
Compare Render To History4
Compare: Stop
Compare: Left Right
Compare: Up Down
Compare: A B
Compare: B A

Maxscript

Note: you can get a list of all Octane Actions in Preferences / Info menu / List Octane Actions
The new actions can also be called by maxscript with the following syntax:
actionMan.executeAction 982383860 "6578" -- Octane: Store Render To History1
actionMan.executeAction 982383860 "6579" -- Octane: Store Render To History2
actionMan.executeAction 982383860 "6580" -- Octane: Store Render To History3
actionMan.executeAction 982383860 "6581" -- Octane: Store Render To History4
actionMan.executeAction 982383860 "6582" -- Octane: Compare Render To History1
actionMan.executeAction 982383860 "6583" -- Octane: Compare Render To History2
actionMan.executeAction 982383860 "6584" -- Octane: Compare Render To History3
actionMan.executeAction 982383860 "6585" -- Octane: Compare Render To History4
actionMan.executeAction 982383860 "6586" -- Octane: Compare: Stop
actionMan.executeAction 982383860 "6587" -- Octane: Compare: Left Right
actionMan.executeAction 982383860 "6588" -- Octane: Compare: Up Down
actionMan.executeAction 982383860 "6589" -- Octane: Compare: A B
actionMan.executeAction 982383860 "6590" -- Octane: Compare: B A

There are also new maxScript functions, that allow access to the 10 history slots:
<integer>CmpABStore <integer>iSlot
<integer>CmpABSetCompare <integer>iSlot
<integer>CmpABGetCompare()
<integer>CmpABClearHistory()

Usage sample:
OctaneMaxFPI.CmpABStore(1) -- store in one of the history slot (1 to 10)

renderers.current.viewcam_whiteBalance = color 255 0 0 -- change something..

OctaneMaxFPI.CmpABSetCompare(1) -- start comparing with history slot 1 to 10, (or -1 to stop compare mode)
i = OctaneMaxFPI.CmpABGetCompare() -- get current history slot displayed in compare mode (-1 if compare mode is stopped)
OctaneMaxFPI.CmpABClearHistory() -- clear the 10 history slots

The 2 new comparaison settings stored in the scene can be accessed as follow:
renderers.current.VPCompareType = 1 --1 for Left Right, 2 for Up Down
renderers.current.VPCompareSwapAB = true --true in Left Right mode means live image is on the Left

OctaneMaxFPI.CmpABSetCompare(-1) -- stop the compare mode
remKa
Licensed Customer
Posts: 232
Joined: Fri Jan 24, 2014 6:23 pm
Location: Paris
Contact:

Super useful, thanks :)
AMD 9950x3D / RTX 4090 / RTX 3090 / 192 Go DDR5 / Win 11
http://www.remy-kerbiquet.com
ramone163
Licensed Customer
Posts: 253
Joined: Tue Aug 28, 2012 5:12 pm

Thank you. Very useful update.
GPU: 980+1080+1080Ti; 3ds max;
Behance portfolio; Handmadefont.com;
Post Reply

Return to “Autodesk 3Ds Max”