Maybe someone can point out my mistake. I am trying to create a layer and project onto that layer. Everything looks like it worked after the script is done running, but as soon as I try to toggle the layer it loses the projection data for some reason.
So this is what I had to do to fix the issue. Not sure if this is a bug in r7 or what…
[IPress,Tool:MorphTarget:DelMT]
[IPress,Tool:MorphTarget:StoreMT]
[IPress,Tool:Layers:Delete]
[IPress,Tool:Layers:New]
[IPress,Tool:MorphTarget:Switch]