My.ambient DOES work, i use it all the time. Just include materials.wdl in your scripts, and it should be fine.