################################## # # Reveal figure and material # # script created by Basil Gass, aka semidieu # For support: http:\\www.runtimedna,com # # Free to use. As long as I'm still in the Poser world, # please do not redistribute. And do not say that # you did it... # ################################## # # This scipt simply increase the distance between the # figure popup and actor popup in the scene palette # And it also increase the distance between the # figure\actor popup and the material popup in the # material room. # ################################## # # The "IncreaseSize" value give the amount of pixel the # popup will be moved\resized. The recommanded value is 50. # # pose = 1 indicate you wish to apply the revealer to the pose room # pose = 0 indicate that you don't want to change the pose room # # mat = 1 indicate you wish to apply the revealer to the material room # mat = 0 indicate that you don't want to change the material room # # To go back to the original valuer browse to \ runtime\ui\ # Both edited file has been renamed to: # "matNodeFrame.old" # "scenePalette.old" ################################## import poser, os, re IncreaseSize = 50 pose = 1 mat = 1 def RevealMaterial(size): ui = os.path.join(os.path.dirname(poser.AppLocation()), "runtime", "ui") material = os.path.join(ui,"matNodeFrame.xml") materialOLD = os.path.join(ui,"matNodeFrame.old") if os.path.exists(material): #make a copy of the file if not os.path.exists(materialOLD): os.rename(material, materialOLD) #open the old file to read #open the current file to write out = open(materialOLD,"r") inp = open(material, "w") for line in out.readlines(): if re.search('