ScriptSpot home

Edit curve control

Downloads

Release history (1)
  • Version 0.02aListed version

    No download linked to this version

Other files (3)
3ds Max compatibility
Unknown
Community compatibilityNo compatibility reports yet

No reports yet for the available releases.

Community reviewsNo reviews yet.

Listing details

Version
0.02a
Legacy votes
6
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

Posted by

Swordslayer

Vojtech Cada

More by this author

Edit curve controls in bigger, resizable window:

Curve edit

Setup & notes

Installation:
If you just want to use it on maps:
Drag&drop the editMapCurve.mcr file in the viewport, open Customize UI dialog and find "Edit Map Curve" item in the "Shortcuts" category. Put it in a quadmenu, menu, toolbar or assign keyboard shortcut to it to use it.
If you want to install just the function to use in a customized tool:
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 editOutputMonoCurve.mcr macro that opens the dialog for active output curve in Slate or classic material editor and shows how to target a specific curve directly. If you want to use it, run the .mcr file once via Scripting -> Run Script or by drag&dropping it to the viewport. 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 or switch to a different material/panel and back to force update. The material preview should be updated automatically but not the curve displayed in the UI.

Comments (2)
bronius

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?

Reply to bronius
Vojtech Cada

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.

Attachments