# Won't render to png, please help!

**URL:** https://forum.highend3d.com/t/wont-render-to-png-please-help/3963
**Category:** Maya
**Tags:** mel
**Created:** [January 17, 2005, 11:59am UTC](https://forum.highend3d.com/t/wont-render-to-png-please-help/3963 "2005-01-17T11:59:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![niber](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/43a26b/32.png) [@niber](https://forum.highend3d.com/u/niber)
#### Post date: [January 17, 2005, 11:59am UTC](https://forum.highend3d.com/t/wont-render-to-png-please-help/3963/1 "2005-01-17T11:59:18Z")

</div>

Why is it that:  
renderWindowSaveImageCallback "renderView" ("C:/nib/3d/Skol-Projekt/ProjectIkaros/images/Ocean.png") "PNG";  
works (saves to png), but:   
renderWindowSaveImageCallback "renderView" ("C:/nib/3d/Skol-Projekt/ProjectIkaros/images/Ocean/" + $XKordinat + "\*" + $YKordinat + ".png") "PNG"; tries to render to .png.iff?

Thanks very much if you know the answer to this one, I'm a newbie at MEL.

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [January 17, 2005, 1:03pm UTC](https://forum.highend3d.com/t/wont-render-to-png-please-help/3963/2 "2005-01-17T13:03:22Z")

</div>

ran as a test

{  
$test = "hey";  
renderWindowSaveImageCallback "renderView" ("C:/Temp/test/out/"+$test) "PNG";  
}

And it worked perfectly!

but firstof "\*" is a illegal filename character atleast in windows, in general not a good idea to have wildcharacter in filenames. use "x" instead

Note this actualy does not render but rather just the resaving of the temporary test render file to another format. Why not use bath render?

---

<div class="post-metadata">

### Author: ![niber](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/43a26b/32.png) [@niber](https://forum.highend3d.com/u/niber)
#### Post date: [January 17, 2005, 4:59pm UTC](https://forum.highend3d.com/t/wont-render-to-png-please-help/3963/3 "2005-01-17T16:59:22Z")

</div>

thanks, dude. that \* thing was the big problem
