Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How Can I to know what is more Compatible with more Max version?

alexandre_bisewski
Enthusiast

How Can I to know what is more Compatible with more Max version?

alexandre_bisewski
Enthusiast
Enthusiast

Hello!

 

I want to implement a Dictionary.

We have two options:

The Dictionary Maxscript builtin that is compatible with 3ds Max 2017.1 Update and higher.

Or we can use     d = dotnetclass "System.Collections.Generic.Dictionary`2"

 

Ok, we know that one way is compatible with 2017 version but the other way?

 

Can I get this information in  some place? 

 

Thank you

0 Likes
Reply
Accepted solutions (1)
722 Views
5 Replies
Replies (5)

denisT.MaxDoctor
Advisor
Advisor
Accepted solution

@alexandre_bisewski wrote:

I want to implement a Dictionary.

We have two options:

The Dictionary Maxscript builtin that is compatible with 3ds Max 2017.1 Update and higher.

Or we can use     d = dotnetclass "System.Collections.Generic.Dictionary`2"

 


no doubt about it... use the built-in MXS dictionary. Unlike the .NET dictionary, the MXS dictionary can be stored in a max scene (file) (because it has Save/Load mechanism). This is a very big benefit.

 

alexandre_bisewski
Enthusiast
Enthusiast

Hi Denis. 

 

But strictly based on version, the built-in is better? Because for my implementation I dont need to save. Its is only for temp variables.

0 Likes

denisT.MaxDoctor
Advisor
Advisor

 

For some current tasks, Python dictionaries can be used to temporarily organize data. In general, they are slower than MXS.

I use my own dictionary class, which is very close to the MXS built-in, but mine was implemented eight years earlier.

denisT.MaxDoctor
Advisor
Advisor

The built-in MXS dictionary has some limitation that I don't like - you have to define the key type in advance, and you can't mix them later. While this is not a major problem in general, I have encountered situations where it is a bit annoying.

alexandre_bisewski
Enthusiast
Enthusiast

Your answers give us a light in the right direction. Thank you so much for your attention and sorry my english. I now, is bad...😁

0 Likes