Image saved as "r"
![Hurdy3D](https://secure.gravatar.com/avatar/b625b3da85ecd98300f46ea6e3c1fdbf?&r=pg&s=100&d=https%3A%2F%2Fvanillicon.com%2Fb625b3da85ecd98300f46ea6e3c1fdbf_100.png)
Hey,
does somebody know why this script saves the image in my temp dir with the name "r" instead of "mytest.png"?
(function(){ var renderManager = App.getRenderMgr(); var renderOptions = renderManager.getRenderOptions(); renderOptions.RenderImgTarget = renderOptions.DirectToFile; renderOptions.renderImgFilename = "mytest.png"; renderOptions.applyChanges(); renderManager.doRender() })();
Comments
I seem to recall that the temporary file saved by DS is called r.png, so until you actually do a 'save as' your save name wil lnot be applied.
RenderImgTarget is an number with three possible values.
Hey nice, this did the trick....
so everything which is under Enumerations is a number.
renderOptions.RenderImgTarget = 3;
worked and
renderOptions.renderImgToId = renderOptions.DirectToFile;
worked, too.
Thank you for your help.
But the scripts complains now about:
Can I ignore this error?
No error or warning should be ignored, something might be missing, maybe if you post a streamlined version of the code could give us an idea.
The complete code is
It is not very complex, this are my first steps in daz scripting![wink wink](https://www.daz3d.com/forums/plugins/ckeditor/js/ckeditor/plugins/smiley/images/wink_smile.png)