Use a .Net button instead: ( rollout RO_TEST “” ( dotnetcontrol bt_test “Button” height:24 fn GetButton args = ( case args.Button of …
denisT: if (c.g == 0 and c.b == 0) or (c.g == c.b) return c I didn’t want to use “if” since it is a little more expensive in MXS. But in other le…
Yes. I mean no, it’s there because it has secret powers. Well, I didn’t want to use int() or “if”. Do we have other options? I know, it looks horrible…
That looks pretty good to me. It may not be numerically correct but visually it looks as good as it can be. Here my last code, now optimized. fn Swa…
Nice Although it produces different results than the iterative version. Not sure which one is better, but you have some options to choose from now. …
How about solvig all the variants with a LUT? That should be a lot faster than any other approach. EDIT: Confirmed, a LUT version is around 200 times…
If you need to perform many operations, then this iterative approach isn’t any good. As usual, the first step was to get the algorithm working, so no…
I agree, they may look a bit better, specially for some colors.
I modified the original CIELAB equations.
( try destroydialog ::RO_SWAP_CHANNELS catch() rollout RO_SWAP_CHANNELS “” width:216 height:234 ( groupBox grp1 “Master Color” pos:[8, …
Perhaps there are other ways, but try: on btn_test pressed do ( ro_Test.gv_Test.EndEdit() messageBox (“row1:” + (gv_Test.rows.item[0].cells.item[1]…
To me it all depends on the action. Certain actions will require control over the limits while for others the limits may not be so relevant. For exam…
Keep in mind that shooting rays from vertices to camera won’t work for all cases. ( delete objects p1 = plane length:100 width:100 lengthsegs:1 w…
In Max 2014 Run the script Keep the Esc key pressed for 2 seconds Minimize Max I get an error dialog and this: — Error occurred in isChecked(); fi…
The code is a bit buggy. Make sure all your objects have a material (and that every face has a valid mat id) and try exporting them.