Itoo Software Forum

Author Topic: "Mod" expression function crashes 3DS Max  (Read 1011 times)

nubo

  • Jr. Member
  • **
  • Posts: 61
"Mod" expression function crashes 3DS Max
« on: October 07, 2022, 09:44:35 PM »
Hi,

I have a problem with the "mod" expression.
Every time I try to use it I get an application crash.
I've tested it even in a most simple scene: one segment with transform operator attached to 1S generator, and an expression connected to whatever parameter.
The expression is simple as well:
Code: [Select]
return mod(8,5); The result is always the same - crash.
It crashes the moment I click "Evaluate" or "OK" button.

Is it a bug or is there some workaround to make it work?

Best regards,
Przemek
« Last Edit: October 07, 2022, 09:46:07 PM by nubo »

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: "Mod" expression function crashes 3DS Max
« Reply #1 on: October 08, 2022, 10:33:32 AM »
Hi, i remember this happened to me as well, but now i cannot reproduce it. We'll check it thoroughly.

Meanwhile, please try using the '%' operator:

Code: [Select]
return 8 % 5;
Carlos Quintero
iToo Software

nubo

  • Jr. Member
  • **
  • Posts: 61
Re: "Mod" expression function crashes 3DS Max
« Reply #2 on: October 12, 2022, 03:58:51 PM »
Thank you Carlos!