I think you need to have someone help you ask your question better then you have. As it stands its not understandable. But then I failed every English course I had to take in school.
Thank you for your opinion.
I want to receive the concrete answer - as from jsx to create a new layer. As it became in old panels - I perfectly know, wrote that I had a panel with tools.I don't ask to tell anything more, only one question
This works for me in a JSX file and should work in your panel. Tell us more about your panel code. Is it a Flash based panel? If so, it will not work in Photoshop CC 2015. You will need to convert it to HTML. Is it using node? If so, you will need to edit it according to this web page: HTML Panel Tips #19: CC2015.1 (CEP6.1) Node.js Fixes | Photoshop, etc.
var doc = documents.length ? activeDocument : documents.add();
var newLayer = doc.artLayers.add();
I apologize that long did not respond to a message. Earlier I wrote I know how to work with elements of the Photoshop document CS6 version.
The question is - how do I from script file (main.js or hostscript.js) create a new layer, to create a selection etc in CC2015 version ?
I found an example for creating a new document through eval(). How to deal with a large number of commands ? Each team to do in eval() ?
A new document may be create with a statement like this
var doc = app.documents.add((width+whitespace)*cols-whitespace+2*borderspace, (height+whitespace)*rows-whitespace+2*borderspace, res);
A new text layer added like this:
text_layer = doc.artLayers.add();
text_layer.name = "Stamp";
text_layer.kind = LayerKind.TEXT;
var selectedRegion = Array(Array(x,y), Array(x+width,y), Array(x+width,y+height), Array(x,y+height));