Edit curve control

3 votes
Version: 
0.01a
Author Name: 
Vojtech Cada

Edit curve controls in bigger, resizable window:

Curve edit

Additional Info: 

Installation: Copy the .ms file inside the stdscripts folder (evaluate once if this is your first time using it), that way it will be available for scripts in the script folder and macroscripts. FileIn approach is another alternative. To try it out, run in once. After that, you can call the editCurve function, passing the curve you want to edit.

Usage: The script exposes an editCurve function. Pass the curve you want to edit as an argument. For example, if you want to edit the mono output curve of a map currently selected in compact material editor (provided that it's enabled), you'd use

    editCurve (mEdit.getCurMtl()).Output.Mono_Color_Map.Curve_1

Attached is also an example macro that opens the dialog for active output curve in Slate or classic material editor. If you want to use it, run the .mcr file once via Scripting -> Run Script. It creates an item in the Shortcuts category under Customize UI, which you can then add to a quadmenu or assign a shortcut to it.

You might want to disable and re-enable the color map to force update.

AttachmentSize
curveEdit.ms1.26 KB
editOutputMonoCurve.mcr741 bytes

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Swordslayer's picture

Output is an example macro...

For other curve controls, you can make your own or ask someone with basic scripting knowledge to do that for you. It should work with any curve you pass to it, the Output curve is an example on how to do it. For falloff, you'd edit the example to use MixCurve.Curve_1 instead of Output.Mono_Color_Map.Curve_1, and edit the safeguards accordingly (see attachement).

For RGB Color map, you either edit the whole thing to show and replace more curves at once, or pass one of the three curves only and edit one at a time.

AttachmentSize
editFalloffCurve.mcr 604 bytes
bronius's picture

Doesn't work with Falloff map

With Falloff map always get "A map that supports output has to be active in the material editor" message. And what about RGB color map mode? Works only in Mono mode?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.