PolyTools3D
@polytools3d
New Member
Joined: Feb 14, 2024
Topics: 17 / Replies: 1674
Reply
RE: Start-Stop move object

Use a .Net button instead: ( rollout RO_TEST “” ( dotnetcontrol bt_test “Button” height:24 fn GetButton args = ( case args.Button of …

4 years ago
Forum
Reply
RE: Swap green for blue wisely

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…

4 years ago
Forum
Reply
RE: Swap green for blue wisely

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…

4 years ago
Forum
Reply
RE: Swap green for blue wisely

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…

4 years ago
Forum
Reply
RE: Swap green for blue wisely

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. …

4 years ago
Forum
Reply
RE: Swap green for blue wisely

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…

4 years ago
Forum
Reply
RE: Swap green for blue wisely

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…

4 years ago
Forum
Reply
RE: Swap green for blue wisely

I agree, they may look a bit better, specially for some colors.

4 years ago
Forum
Reply
RE: Swap green for blue wisely

I modified the original CIELAB equations.

4 years ago
Forum
Reply
RE: Swap green for blue wisely

( try destroydialog ::RO_SWAP_CHANNELS catch() rollout RO_SWAP_CHANNELS “” width:216 height:234 ( groupBox grp1 “Master Color” pos:[8, …

4 years ago
Forum
Reply
RE: DataGridView and ComboBoxes

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]…

4 years ago
Forum
Reply
RE: When dealing with randomness which do you prefer?

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…

5 years ago
Forum
Reply
RE: How to find if certain objects are visible from camera that may be behind other scene objects

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…

5 years ago
Forum
Reply
RE: System.Windows.Forms.Timer Unhandled Exception and escapeEnable = true

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…

5 years ago
Forum
Reply
RE: Old Max Script for Exporting to ass files no longer working

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.

5 years ago
Forum
Page 10 / 113