Hi all,
Having trouble getting a certain graphic to work in the ENPS plugin. It works just fine in Designer/Studio versions. The script is very simple and is applied to a text field called "FS COLOR." By changing the background material and a few quads, I change the color of the fullscreen graphic between several options. On the ENPS plugin, however, it doesn't apply the material. It just shows as if each object has no material applied. Here is the script:
dim flagbkg as xpBaseObject
dim hedmainbkg as xpBaseObject
dim redBKG, blueBKG, bothBKG, redGRAD, blueGRAD, grayGRAD as xpMaterial
scene.GetObjectByName("FLAG BKG", flagbkg)
scene.GetObjectByName("MAIN HEAD BKG", hedmainbkg)
engine.GetMaterialByName("FLAG_BKG_BLUE_Video", blueBKG)
engine.GetMaterialByName("FLAG_BKG_RED_Video", redBKG)
engine.GetMaterialByName("FLAG_BKG_BOTH_Video", bothBKG)
engine.GetMaterialByName("DEM GRADIENT", blueGRAD)
engine.GetMaterialByName("GOP GRADIENT", redGRAD)
engine.GetMaterialByName("NEUTRAL GRADIENT", grayGRAD)
if trim(text) = "RED" then
flagbkg.setMaterial(0, redBKG)
hedmainbkg.setMaterial(0, redGRAD)
else if trim(text) = "BLUE" then
flagbkg.setMaterial(0, blueBKG)
hedmainbkg.setMaterial(0, blueGRAD)
else if trim(text) = "RED/BLUE" then
flagbkg.setMaterial(0, bothBKG)
hedmainbkg.setMaterial(0, grayGRAD)
end if
Any help that can be provided would be greatly appreciated! The materials are all correctly part of the project server package. It worked on my Designer system and I even pulled it down from the Project Server onto an XPression studio box where it also worked, so it's either something in the plugin or the BlueBox render engine.