Page MenuHomeFeedback Tracker

Commands to return default hidden selection textures and materials
New, NormalPublic

Description

getObjectTextures and getObjectMaterials only return engine or script set textures and materials on hidden selection and there is no easy way to know which textures or materials hidden selections had originally on the model. I'd like to request new scripting commands to return that:

ARRAY = getObjectTexturesOriginal ENTITY
ARRAY = getObjectMaterialsOriginal ENTITY

Same as existing commands except returning original model textures and materials for all hidden selections.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting
Additional Information

I'd even go further and also introduced more universal commands:

ARRAY = ENTITY/STRING getModelTextures [LODindex, selectionName] and same for materials: getModelMaterials.

Details:
ENTITY/STRING - entity or model string name, same as allLODs operand.
LODindex - index returned by allLODs command.
selectionName - selection
ARRAY - All unique textures/materials used for this selection on this LOD. Maybe sort them by number of faces they appear in (return mode option?)

Maybe have it all as right array operand similar to Alt Syntax 3. of selectionPosition for simplicity, but I like binary version more.

Event Timeline

SaMatra created this task.Apr 2 2023, 9:32 AM
_SLIN_ added a subscriber: _SLIN_.May 1 2023, 5:58 PM

Still very much needed.