New theme added have fun on this forum gr Wizart :)

How To: Default Models and Filters

Post Reply
)p( Verified
Site Admin
Posts: 5714
Joined: 01 Jan 1970, 02:00
Local time: 13 Mar 2026 06:12
Location: The Netherlands
Contact:

How To: Default Models and Filters

Post by )p( Verified »

Default Models and Filters

When 3DArcade can’t find a model it will fall back on the list of defaultModelFilters from the models emulator configuration. If no match match is made it will look for the defaultModelFilters in the general configuration. If still no match is made it will pick a defaultModel.

For each DefaultModelFilter it will match DefaultModelFilter.model if all DefaultModelFilter.modelFilters are true. A ModelFilter can match any modelProperty with a modelPropertyValue using a ModelFilterOperator.

Code: Select all

public enum ModelFilterOperator
    {
        Equals, NotEquals, Contains, NotContains, Starts, NotStarts, Larger, Smaller
    }

public class ModelFilter
    {
        public string modelProperty; // References any property from ModelProperties
        public string modelPropertyValue;
        public string ModelFilterOperator;
    }

public class DefaultModelFilter
    {
        public List<ModelFilter> modelFilters;
        public string model;
    }

public class GeneralConfiguration
    {
        public List<DefaultModelFilter> defaultModelFilters;
    }

public class EmulatorProperties
    {
        …
        public List<DefaultModelFilter> defaultModelFilters;
        …
    }

Example

Image
Post Reply