I need help.
I have a 3D map of the US, with each state as an individual model. I need to assign the color of each through the Xpression plugin in ENPS. I have .3ds models named by state name (with a few that are shortened) and so far one text field AlabamaColor as a Radio Buttons with RedState, BlueState, PurpleState, WhiteState as the choices. The only thing I could find in the SDK help that might apply to 3D models was xpTexturedObject.
I explored the possibility of making this happen through Visual Logic, but didn't think I could make it work.
Am I even close to success?
I have the following in OnOnline:
dim matRedState as xpMaterial
dim matBlueState as xpMaterial
dim matWhiteState as xpMaterial
dim matPurpleState as xpMaterial
dim AlabamaColor as xpTextObject
dim Alabama as xpTexturedObject
Engine.getMaterialByName("RedState", matRedState)
Engine.getMaterialByName("BlueState", matBlueState)
Engine.getMaterialByName("PurpleState", matPurpleState)
Engine.getMaterialByName("WhiteState", matWhiteState)
Self.getObjectByName("AlabamaColor", AlabamaColor)
Alabama.setMaterial(0,matRedState)