Page 1 of 1

I have a question about a material count(on layers) and matched material and elements.

Posted: Mon Mar 11, 2019 8:29 am
by jinsu421
I want to sort by material. (pre, post mode)

What is the maximum number of materials that can be represented in a layer?

Our model has material property about 2000+ (and more).

Re: I have a question about a material count(on layers) and matched material and elements.

Posted: Mon Mar 11, 2019 12:53 pm
by escolano
In preprocess the material if of an entity is stored as a signed integer of 4 Bytes (the maximum id the is 2^31=2.147.483.648)
and material is not related with Layers, a geometry/mesh entity has a Layer pointer and a material index.


In postprocess there are not materials, but depending on the variable PropertyToPost, when changing from pre to post is possible to try to have in post the same 'sets' as layers of pre (PropertyToPost=Layer, that is the default value), or try to have the same 'sets' as materials (PropertyToPost=Material)
The maximum amount of sets is also 2^31

But if there are o very big amount of materials or sets and you try to open its GUI windows,
these windows show a list widget and are not prepared to show thousands of items, it could be very very slow.