User:Coriniumite

Custom Camera Shortcuts
Add the following to hotkey.txt for shortcuts to immediately load and save cameras. It defines one set of shortcuts on the number keys at the top of the keyboard using:

'cam slot 0 | cam load'			: { '0' 'shift' } 'cam slot 1 | cam load'			: { '1' 'shift' } 'cam slot 2 | cam load'			: { '2' 'shift' } 'cam slot 3 | cam load'			: { '3' 'shift' } 'cam slot 4 | cam load'			: { '4' 'shift' } 'cam slot 5 | cam load'			: { '5' 'shift' } 'cam slot 6 | cam load'			: { '6' 'shift' } 'cam slot 7 | cam load'			: { '7' 'shift' } 'cam slot 8 | cam load'			: { '8' 'shift' } 'cam slot 9 | cam load'			: { '9' 'shift' }

'cam slot 0 | cam save'			: { '0' 'shift'	'ctrl' } 'cam slot 1 | cam save'			: { '1' 'shift'	'ctrl' } 'cam slot 2 | cam save'			: { '2' 'shift'	'ctrl' } 'cam slot 3 | cam save'			: { '3' 'shift'	'ctrl' } 'cam slot 4 | cam save'			: { '4' 'shift'	'ctrl' } 'cam slot 5 | cam save'			: { '5' 'shift'	'ctrl' } 'cam slot 6 | cam save'			: { '6' 'shift'	'ctrl' } 'cam slot 7 | cam save'			: { '7' 'shift'	'ctrl' } 'cam slot 8 | cam save'			: { '8' 'shift'	'ctrl' } 'cam slot 9 | cam save'			: { '9' 'shift'	'ctrl' }

'cam slot 0 | cam load'			: { 'NUMPAD0' } 'cam slot 1 | cam load'			: { 'NUMPAD1' } 'cam slot 2 | cam load'			: { 'NUMPAD2' } 'cam slot 3 | cam load'			: { 'NUMPAD3' } 'cam slot 4 | cam load'			: { 'NUMPAD4' } 'cam slot 5 | cam load'			: { 'NUMPAD5' } 'cam slot 6 | cam load'			: { 'NUMPAD6' } 'cam slot 7 | cam load'			: { 'NUMPAD7' } 'cam slot 8 | cam load'			: { 'NUMPAD8' } 'cam slot 9 | cam load'			: { 'NUMPAD9' }

'cam slot 0 | cam save'			: { 'NUMPAD0'	'ctrl' } 'cam slot 1 | cam save'			: { 'NUMPAD1'	'ctrl' } 'cam slot 2 | cam save'			: { 'NUMPAD2'	'ctrl' } 'cam slot 3 | cam save'			: { 'NUMPAD3'	'ctrl' } 'cam slot 4 | cam save'			: { 'NUMPAD4'	'ctrl' } 'cam slot 5 | cam save'			: { 'NUMPAD5'	'ctrl' } 'cam slot 6 | cam save'			: { 'NUMPAD6'	'ctrl' } 'cam slot 7 | cam save'			: { 'NUMPAD7'	'ctrl' } 'cam slot 8 | cam save'			: { 'NUMPAD8'	'ctrl' } 'cam slot 9 | cam save'			: { 'NUMPAD9'	'ctrl' }

Custom Camera Buttons
If you prefer to have buttons to switch camera, find the following line in 		hint( flex = '1')(hint = 'Hint : [HotKey]') (it's line 57 in MV 0.99.3)

And add this below it: hbox(id = 'cams_s' hidden = '1') :: {			switch(class = 'view')(def = 'sw-title' text = '^9' textsize = '12 12' textFont = '2' view = 'cams' 'cams_s')(size = '25') }

hbox(id = 'cams' hidden = '0') :: {			switch(class = 'view')(def = 'sw-title' text = '^9' textsize = '12 12' textFont = '2' view = 'cams' 'cams_s')(size = '25') hbox(next = '3'):: {				button(def = 'bn-grey' onClick = 'cam slot 0 | cam load' text = '0' delayed = '0')(size = '22' next = '1')(hint = 'Load Cam 0 ') button(def = 'bn-grey' onClick = 'cam slot 1 | cam load' text = '1' delayed = '0')(size = '22' next = '1')(hint = 'Load Cam 1') button(def = 'bn-grey' onClick = 'cam slot 2 | cam load' text = '2' delayed = '0')(size = '22' next = '1')(hint = 'Load Cam 2') button(def = 'bn-grey' onClick = 'cam slot 3 | cam load' text = '3' delayed = '0')(size = '22' next = '1')(hint = 'Load Cam 3') button(def = 'bn-grey' onClick = 'cam slot 4 | cam load' text = '4' delayed = '0')(size = '22' next = '1')(hint = 'Load Cam 4') button(def = 'bn-grey' onClick = 'cam slot 5 | cam load' text = '5' delayed = '0')(size = '22' next = '1')(hint = 'Load Cam 5') button(def = 'bn-grey' onClick = 'cam slot 6 | cam load' text = '6' delayed = '0')(size = '22' next = '1')(hint = 'Load Cam 6') button(def = 'bn-grey' onClick = 'cam slot 7 | cam load' text = '7' delayed = '0')(size = '22' next = '1')(hint = 'Load Cam 7') button(def = 'bn-grey' onClick = 'cam slot 8 | cam load' text = '8' delayed = '0')(size = '22' next = '1')(hint = 'Load Cam 8') button(def = 'bn-grey' onClick = 'cam slot 9 | cam load' text = '9' delayed = '0')(size = '22' next = '1')(hint = 'Load Cam 9') }		}

Add an extra palette and mask palette button
in  change this line: button(def = 'bn-grey' onClick = 'ipal pal3.png' text = '3')(flex = '1' next = '1')(hint = 'Default Palette 3')

to these lines: button(def = 'bn-grey' onClick = 'ipal pal3.png' text = '3')(flex = '1' next = '1')(hint = 'Default Palette 3') button(def = 'bn-grey' onClick = 'ipal pal4.png' text = '4')(flex = '1' next = '1')(hint = 'Default Palette 4') button(def = 'bn-grey' onClick = 'pal mask' text = 'M')(flex = '1' next = '1')(corner = '8')(hint = 'Mask out unused colors') and create  with your new palette in it.

Cycle transparency of colors
You can create buttons in the config to set the glass values for several colors at once. The same method could be used for other material properties like emission. This could be useful for rendering animations of e.g. lighting changes.

button(def = 'bn-grey' text = '0'  onClick = 'index 107|set pt_mtl_t glass 0|index 108|set pt_mtl_t glass 0|index 109|set pt_mtl_t glass 0|index 110|set pt_mtl_t glass 0|index 111|set pt_mtl_t glass 0' delayed = '1' textSize = '8 8')(flex = '1')(hint = 'Colors 107 - 111 to Glass 0') button(def = 'bn-grey' text = '25' onClick = 'index 107|set pt_mtl_t glass 25|index 108|set pt_mtl_t glass 25|index 109|set pt_mtl_t glass 25|index 110|set pt_mtl_t glass 25|index 111|set pt_mtl_t glass 25' delayed = '1' textSize = '8 8')(flex = '1')(hint = 'Colors 107 - 111 to Glass 25') button(def = 'bn-grey' text = '50' onClick = 'index 107|set pt_mtl_t glass 50|index 108|set pt_mtl_t glass 50|index 109|set pt_mtl_t glass 50|index 110|set pt_mtl_t glass 50|index 111|set pt_mtl_t glass 50' delayed = '1' textSize = '8 8')(flex = '1')(hint = 'Colors 107 - 111 to Glass 50') button(def = 'bn-grey' text = '75' onClick = 'index 107|set pt_mtl_t glass 75|index 108|set pt_mtl_t glass 75|index 109|set pt_mtl_t glass 75|index 110|set pt_mtl_t glass 75|index 111|set pt_mtl_t glass 75' delayed = '1' textSize = '8 8')(flex = '1')(hint = 'Colors 107 - 111 to Glass 75') button(def = 'bn-grey' text = '100' onClick = 'index 107|set pt_mtl_t glass 100|index 108|set pt_mtl_t glass 100|index 109|set pt_mtl_t glass 100|index 110|set pt_mtl_t glass 100|index 111|set pt_mtl_t glass 100' delayed = '1' textSize = '8 8')(flex = '1')(hint = 'Colors 107 - 111 to Glass 100')