Hello there Quixel community,
I'm currently developing a calibration and pre-set profile for Total war: Attila and everything works fine except the gloss map. The shader in TW:A works a little bit differently but I found a way how fix it. I still like to create preview images from 3DO, since they look awesome, but I need to alter the gloss map when it exports using the TW:A calibration profile. The process that needs to be done to the gloss map is simple level adjusting and so I ask if anyone could tell me how could I write this:
![leveltojsx.jpg](https://trello-attachments.s3.amazonaws.com/556097b906bf9aed8250fd8a/435x412/4ce554c3ee2f345b6332f6e698d47ff1/leveltojsx.jpg)
as .jsx action so I can implement it into the calibration profile.
Thank you a lot,
Enpremi
PS: Here is some of my current work for the mod
![dale_armour_by_enpremi-d8ulzz4.jpg](http://orig07.deviantart.net/a447/f/2015/144/d/b/dale_armour_by_enpremi-d8ulzz4.jpg)
![dale_armour_by_enpremi-d8tyleh.jpg](http://orig06.deviantart.net/945d/f/2015/139/0/5/dale_armour_by_enpremi-d8tyleh.jpg)
Replies
The function looks like this:
activeDocument.activeLayer.adjustLevels(0, 255, 1.0, 0, 255);
Does that help?
Please post some ingame shots of this when its done!!
I added the line you wrote to my script, but I get this error: