myEnv is custom environment variable read/write/delete class that can be used for Photoshop.
<Example> myEnv = new MyEnv() alert(myEnv.read("LIGHTMAPFOLDER")) alert(myEnv.write("myname","hakjoon")) alert(myEnv.del("myname")) alert(myEnv.read()) alert(myEnv.write("test","aaa"))
I needed to store some variables like opened folder location in open dialog for photoshop script.
Currently I couldn’t find good native photoshop environment variable storing method yet so I decided to make my own.
readMyEnv(key) : reads key's value and return it. writeMyEnv(key,value) : write key and value in myVar.env removeMyEnv(key) : remove key and its value from myVar.env
readMyEnv(property) - returns value of property (if not available, return false)
writeMyEnv(property,value) - write property and its value (if not available, return false)
removeMyEnv(property) - remove property and its value from env file (if not available, return false)
In my previous work, lightmap passes were created from Maya mental-ray render. The results(ambient lightmap, Ambient Occlusion, shadowmap and full lightmap pass) were composited by certain rule.
* Update Description
writer : Hakjoon Lee
date : August 7, 2012
Script title : Render Image Manager
> Added Preset and Flipbook function.
>>>>> Download Script (right click and ‘save as’)
* Script Description :It helps recording any desired attributes (e.g. final gathering Accuracy, camera F Stop, light intensity…) as caption texts on the rendered image in renderView window so you can compare the rendered images with changed attribute values. It is useful when you do series of test rendering.
- You can save node's preset with its render image so it can be restored later. (it is useful when you simply want to return all your attributes to the point when you rendered it.) - You can flipbook between only selected images in the renderView window. (it is useful there are many images in the slot so difficult to compare two non-adjacent images instantly)
1. Caption 2. Preset 3. Flipbook 4. Save and Load Images
- Write *selected attributes and their values as caption on the 'Render View' *(you can add attributes to the selection group in the UI) - Read attributes and their values in the 'Render View' caption and apply the values to the current scene attributes.
- Save *selected nodes' presets and write preset number as caption in the 'Render View' *(you can add nodes to the selection group in the UI) - Load saved preset if you can see a [preset_number] caption in the 'Render View'
- in case you have many images in the 'Render View' slot and you want to compare some of them, sometimes it would be not easy because you have many images in between. - You can choose maximum 4 images from 'Render View', slide only them directly in the 'render image manager' window.
4. Save and Load images
- *Save images in the 'Render View' with caption. *(filenames and caption text will be stored in filename.set file) - *Load saved images and caption. *(it will open filename.set file)