You could assign textures and change shaders, here how to copy a shader between materials.
dim HomeLogo, HomeColor1, HomeColor2 as xpBaseObject
dim HomeLogoMat, HomeColor1Mat, HomeColor2Mat as xpMaterial
dim HomeLogoSha, HomeColor1Sha, HomeColor2Sha as xpBaseShader
dim HomeLogoFile, HomeColor1File, HomeColor2File as String
HomeLogoFile = Engine.ProjectPath & "\Images\Logos\" & text & ".png"
HomeColor1File = Engine.ProjectPath & "\Images\Logos\" & text & "_color1.png"
HomeColor2File = Engine.ProjectPath & "\Images\Logos\" & text & "_color2.png"
Scene.GetObjectByName("HomeLogo", HomeLogo)
HomeLogo.GetMaterial(0, HomeLogoMat)
HomeLogoMat.GetShader(0, HomeLogoSha)
HomeLogoSha.SetFileName(HomeLogoFile)
Scene.GetObjectByName("HomeColor1", HomeColor1)
HomeColor1.GetMaterial(0, HomeColor1Mat)
HomeColor1Mat.GetShader(0, HomeColor1Sha)
HomeColor1Sha.SetFileName(HomeColor1File)
Scene.GetObjectByName("HomeColor2", HomeColor2)
HomeColor2.GetMaterial(0, HomeColor2Mat)
HomeColor2Mat.GetShader(0, HomeColor2Sha)
HomeColor2Sha.SetFileName(HomeColor2File)
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
------------------------------
Original Message:
Sent: 06-13-2023 15:52
From: Dan
Subject: Scripting to adjust parameters of an .obj file in XPression
We are trying to animate 3D object logos that were created in Adobe Dimension and exported as .obj files. We would like to be able to assign layer colors via script so that we can color each logo to match the team's official swatch. We would also like to be able to reference these logos across scenes, the way you would reference a material. Is that something we can do in XPression?
------------------------------
Dan Enders
Director of GameDay Graphics
GoHeels Productions at UNC
------------------------------