Ошибка 1302 нет такого элемента

I am getting an error with a script i have used before without any problems.

The script updates the only image at the bottom of a single page PDF and saves the changed PDF in another folder.

It asks me to locate the folder of PDFs to be modified.
It asks me to locate the folder where the modified PDFs will be saved.
It asks me to select the new image that will be used.
It will then update the image and resizes it and save the PDF in the specified folder.

I don’t get this error on all PDFs but i get it at least once every 10 PDFs  (and there are over a 1,000 PDFs).

The error i get is this:

Error 1302:No such element
Line:27
->      rip=
doc.rasterItems[0].position;

I get this error regardless of whether the script is run in CS3 or CS5.

Additional info.
I ran this script in CS3 and it worked. At a later date i ran another script on the folder of modified PDFs in CS5 that deleted any

unnessesary elements outside the artboard, it selected All on the Artboard — then inversed the selection — and deleted any selected items

followed by save and close.
I have tried making sure the «new» image has the same name as the image being replaced but this made no difference.

I am using Illustrator on Vista.

The script is below:

#target illustrator

function replaceImage() {

          var i, doc, fileList, inFolder, outFolder, opts, pic, rep, rip, saveFile, uIL;

          inFolder = Folder.selectDialog( ‘Please choose your Folder of AI PDFs…’ );

          outFolder = Folder.selectDialog( ‘Please choose a Folder to save AI PDFs in…’ );

          pic = File.openDialog( ‘Please choose your replacement Image…’ );

          if ( inFolder != null && outFolder  != null && pic != null ) {

                    fileList = inFolder.getFiles( /\.pdf$/i );

                    if ( fileList.length > 0 ) {

                              uIL = app.userInteractionLevel;

                              app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

                              for ( i = 0; i < fileList.length; i++ ) {

                                        doc = app.open( fileList );

                                        rip = doc.rasterItems[0].position;

                                        rep = doc.placedItems.add();

                                        rep.file = pic;

                                        rep.move( doc.rasterItems[0], ElementPlacement.PLACEBEFORE )

                                        rep.position = rip;

                                        rep.resize( 31.414, 31.414, true, true, true, true, 100, Transformation.TOPLEFT );

                                        doc.rasterItems[0].remove();

                                        rep.embed();

                                        opts = new PDFSaveOptions();

                                        opts.pDFPreset = ‘[Illustrator Default]’;

                                        saveFile = File( outFolder + ‘/’ + doc.name );

                                        doc.saveAs( saveFile, opts );

                                        doc.close( SaveOptions.DONOTSAVECHANGES );

                              };

                              app.userInteractionLevel = uIL;

                    } else {

                              alert( ‘This Folder contained NO Illustrator PDF files?’ );

                    };

          };

};

replaceImage();

This script renames layers but in Photoshop 2020 I get the above error for line 20:

Error 1302: No such element
Line: 20
-> if (layernames[currentLayer.name]) {

The layers are definitely in the document so I’m struggling to identify what the problem is. Here is the script below:

// JavaScript Document
var doc = app.activeDocument;

// name indexed object
var layernames = {
 'Products':'Working',
 'Product':'Working',
 'Notes':'Note',
 'Background color':'Background Colour',
 'White background':'White Background'
};

// loop through all layers
for (var i = 0; i < doc.layers.length; i++)
{

 //Set up Variable to access layer name
 var currentLayer = app.activeDocument.layers;

 if (layernames[currentLayer.name]) {
     currentLayer.name = layernames[currentLayer.name];
 }
}

Содержание

  1. Error 1302 no such element
  2. ERROR 1302 with Setup Script.
  3. ERROR 1302 with Setup Script.
  4. ERROR 1302 with Setup Script. [SOLVED!]
  5. PS-SCRIPTS.COM
  6. Error 1302 : No such element
  7. Error 1302 : No such element
  8. Error 1302 : No such element
  9. Error 1302 : No such element
  10. Error 1302 : No such element
  11. Error 1302 : No such element
  12. Illustrator Scripting :: Getting Error 1302 — No Such Element Line
  13. Illustrator Scripting :: Using IndexOf To See Whether Element Exist Within Array
  14. Illustrator Scripting :: Can Execute Action From Command-line Using AI?
  15. Illustrator Scripting :: How To Provide Space And New Line To The Text
  16. Illustrator Scripting :: Change Color And Line Weight
  17. Illustrator Scripting :: Deleting Used Symbol Generates Error
  18. Illustrator Scripting :: How To Give Line Height To Text In AI Script
  19. Illustrator Scripting :: Adding New Line And Spaces In Between Text In AI Script
  20. Illustrator Scripting :: How To Make Auto Line Alignment In ScriptUI
  21. Illustrator Scripting :: Changing Line Of Text In Multiple AI Files
  22. Illustrator Scripting :: Block Specific Error Message In JavaScript?
  23. Illustrator Scripting :: CS6 PlacedItems Relink Method — Sometimes Producing Error
  24. Illustrator Scripting :: Restart Through Script (or Eliminate PARM Error)
  25. Illustrator Scripting :: Why Does Trace Script Give Application Error
  26. Illustrator Scripting :: Open Multiple AI Files Produce Error In Palette (8702 — No Document)
  27. After Effects :: ELEMENT 3D Ram Preview Error
  28. AutoCAD VB :: Element Not Found Error In 2012
  29. Maya :: Error — Could Not Find UI Element Named
  30. Revit :: Error / Can’t Obtain Permission To Edit The Element
  31. AutoCAD Inventor :: An Error Occurred While Creating Finite Element Mesh
  32. Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting
  33. Illustrator Scripting :: Access Graph Data Through Scripting DOM?
  34. Illustrator :: Export Only 1 Element From AI Document?
  35. Illustrator :: Make Pattern Brush With 3D Element?
  36. Illustrator :: Copying Element Which Has Graphic Style Applied
  37. Illustrator :: How To Cut First Stroke From Double Outlined Text Element
  38. Illustrator :: Importing DXF Files Into CC And Keeping Every Element In Place And Size
  39. Illustrator Scripting :: Create Mirror Text And Stroke Text In AI Scripting
  40. Illustrator :: Can’t Apply Effect / Warp — Wave To A Line Made With Line Tool
  41. Illustrator :: Thin White Line Between Line Art And Live Paint Fill?
  42. Illustrator :: Line Segment Tool Does Not Allow To Draw Horizontal Line?

I just downloaded and copied VuMark scripts for AI CC 2018 (ver 22.1) (x64) on Windows 10 Pro OS.

I launch AI and then execute setup script and get ERROR 1302: No such element line 117 ->

Anyone have thoughts? I saw another thread with same issue and marked as solved but there was no resolution posted. only difference was line # was listed as 125 not 117 as my is giving.

ERROR 1302 with Setup Script.

Hello there, I have the same problem, that’s how I entered this section. But the fonts Rick mentioned , cannot be found anymore in fontsup.com. What choices I have to fix the error? Although I normally paste the files into the Scripts folder of Illustrator, I cannot run the desirable procession Instead,I get the message: Error 1302: No such element Line 117

ERROR 1302 with Setup Script.

Apologies for the challenges you faced for this issue. Your suggestion to include this information as part of the VuMarks article is a valid one (and somehow missed by us).

Thanks for your contribution to our community.

-Vuforia Engine Support

ERROR 1302 with Setup Script. [SOLVED!]

After a great deal of searching I finally found the issue and have solved this and thought I’d share since other posts did not include how they solved issue.

The following fonts need to be installed prior to running VuMark-Setup script:

MyriadPro (Regular); MyriadPro-Bold and MyriadPro-Semibold

According to the article the error occurs on a line in the code where the MyriadPro fonts are trying to be accessed in AI. I found and downloaded these fonts here: https://fontsup.com

Hope this helps others that may come across this error in the future.

I am wondering why since this is a *MUST* requirement to have these fonts installed that it is not listed in the Users Guide as a installation and/or troubleshooting step?

Источник

PS-SCRIPTS.COM

Independent Photoshop® Scripting Community

Error 1302 : No such element

Moderators: Tom, Kukurykus

Error 1302 : No such element

Post by Dohny » Mon Jun 05, 2006 9:13 pm

I’m new in this forum (and new to PS script writing to be honnest !) and I’m having my first little problem.

I’m using wade’s script (bb/viewtopic.php?t=411&highlight=pixel+color+colour) in order to pick the color of a pixel. When I launch the script, PS returns the error :
«Error 1302: No such element» (Translation from the french : Elément inexistant)
concerning the code :
pChannel = curDoc.channels.getByName(«Red»).histogram;

I’ve checked the code several times, and everything seems ok to me. I actually don’t even understand the meaning of this error.

By the way, I wondered if anybody could give me tips to debug PS scripts.

Error 1302 : No such element

Post by Mike Hale » Mon Jun 05, 2006 10:30 pm

I would think of possible two reasons for this error. The error says that it can not find a channel with the name of ‘Red’.

1 Is you doc in RGB mode? Only RGB files will have a ‘RED’ channel. If your doc is not RGB you will have to change the script or you doc

2 If it is RGB, is the channel called ‘Red’ in the channel palette? The only other thing I can think is that the red channel uses the french word for red in your version of Photoshop

Error 1302 : No such element

Post by Dohny » Tue Jun 06, 2006 8:27 am

Well, thanks a lot Mike for your answer !

I had checked that the picture was in RGB mode, but I hadn’t checked about the name of the channels ! My channel is actually Rouge as you said !!

Yet, now I wonder : do you think that the name of the channels depend on the language of the soft with which the image has been saved or does it only depend on the soft with which you open the image ?

Again, thanks a lot for your fast and accurate answer !

Error 1302 : No such element

Post by Mike Hale » Tue Jun 06, 2006 12:51 pm

I think that it is the version you are using. There are other issuses that can break a script because of the language version of Photoshop is different than the one the script was tested in . The OS or app path and error messages are other problem areas.

Would you be willing to work with me, perhaps by email, to compile a list of differences between the french version and the english version that we can post here to help other script writers localize their scripts?

Error 1302 : No such element

Post by Dohny » Tue Jun 06, 2006 9:09 pm

Ok. as soon as I have my script done and working on my machine, I try it on the english version of the soft.

About working on the differences between area versions, I’d be glad but I’m really beginner in scripting. so it would mean that you would have to pilot me a little bit !

If you’re still interested, just send me a pm and we’ll work this out !

Adobe® and Photoshop® are registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.

© 2023 PS-SCRIPTS.COM — TBIT DESIGN — All Rights Reserved Worldwide

In Memory of Mike Hale

Powered by phpBB® Forum Software © phpBB Limited

Источник

Illustrator Scripting :: Getting Error 1302 — No Such Element Line

I am getting an error with a script i have used before without any problems.The script updates the only image at the bottom of a single page PDF and saves the changed PDF in another folder.

It asks me to locate the folder of PDFs to be modified.It asks me to locate the folder where the modified PDFs will be saved.It asks me to select the new image that will be used.It will then update the image and resizes it and save the PDF in the specified folder.

I don’t get this error on all PDFs but i get it at least once every 10 PDFs (and there are over a 1,000 PDFs).The error i get is this:

Error 1302:No such elementLine:27-> rip=doc.rasterItems[0].position;

I get this error regardless of whether the script is run in CS3 or CS5.

Additional info.I ran this script in CS3 and it worked. At a later date i ran another script on the folder of modified PDFs in CS5 that deleted any unnessesary elements outside the artboard, it selected All on the Artboard — then inversed the selection — and deleted any selected items followed by save and close.I have tried making sure the «new» image has the same name as the image being replaced but this made no difference.I am using Illustrator on Vista.

The script is below:

#target illustrator
function replaceImage() <

Similar Messages:

Illustrator Scripting :: Using IndexOf To See Whether Element Exist Within Array

I’m trying to use indexOf to see whether an element exists within an array. However, when I try to execute my script, it comes back saying «myLayers.indexOf() is not a function»

Here is some of my code:
for (var i = 0; i

Illustrator Scripting :: Can Execute Action From Command-line Using AI?

I need to do a form of automation, but wanting to execute this from another process (self-made application). Adobe Photoshop has this mechanism called «Droplets» that are executable based upon Actions defined in Photoshop (as far as I can understand). Is it possible to let AI do some work for you from an external application as with Photoshop (assuming you are able to execute the executable once it has been created)?

Illustrator Scripting :: How To Provide Space And New Line To The Text

how to provide space and new line to the text in AI Script

Illustrator Scripting :: Change Color And Line Weight

I am trying to create a script who could act as an Autocad plot (ie convert each color to black, with a different line weight).

Here is the first script I melted, who create my Black swatch

if ( app.documents.length > 0 ) <
var myDoc = app.activeDocument;
//add Black swatch
var newSwatch = app.activeDocument.swatches.add()
var newColor = new GrayColor();
newColor.gray = 100;
[Code] .

And here is the second one, who replace one color by Black (it don’t change the text, nor the lineweight yet…

if ( app.documents.length > 0 ) <
//test de dialogue
function csDialog() <
var fabGroup = app.activeDocument.swatchGroups.getByName(‘Fabrics’);
var allFabs = fabGroup.getAllSwatches();
var fabNames = Array();

Illustrator Scripting :: Deleting Used Symbol Generates Error

I’m having difficulty writing a script that deletes all of the symbols in the document (as opposed to just breaking links or expanding which I apparently cannot do). app.sourceDocument.symbols.removeAll();When it reaches a symbol that’s used in the document somewhere it spits out this error: Error 1200: an Illustrator error occurred: 1346458189 (‘MRAP’)

Illustrator Scripting :: How To Give Line Height To Text In AI Script

how to give line height to text in AI Script

Illustrator Scripting :: Adding New Line And Spaces In Between Text In AI Script

areaText.contents = «This is an Area Text in a rectangle. See how it flows to the next line.»;

/*
i want to break the sentance from ‘Text’ ie i want to add new line in between and also some more spaces.
*/

For example: I want to write the above text like this way

this is an Area. Text in a rectangle. See how it flows to the next line.

Illustrator Scripting :: How To Make Auto Line Alignment In ScriptUI

I want that form recognize new line character. (like ‘)So I programmed like this. But it’s not working.

var win =new Window («dialog», «test»);win.orientation = «column»;
var form1 = win.add («edittext», undefined, «»);form1.onChanging = function()< if(form1.text.search(«
«) == true)< form2.active = true; >>
var form2 = win.add («edittext», undefined, «»);
var form3 = win.add («edittext», undefined, «»);
wzn.show();

How can i make it auto line alignment in ScriptUI?

Illustrator Scripting :: Changing Line Of Text In Multiple AI Files

I have about 500 files that I need to change one line of text in. Example. File name is XXX 001, the line of text is the file name so it would read XXX 001. XXX 002. etc. up to XXX 500. Is there a way that I could automate it opening, changing this line of text, saving and closing?

Illustrator Scripting :: Block Specific Error Message In JavaScript?

Is it possible to block this message with javascript?

I’ve already tried the following:

Illustrator Scripting :: CS6 PlacedItems Relink Method — Sometimes Producing Error

I am creating a script on illustrator CS6 that will loop through all the images and relink these images to there current location, it is used to update all of the links in the file. However sometimes when i run this script i will get the error 376(‘x ‘) i have searched for the meaning of this and cannot find it anywhere. It is being written in extendscript, the code i am using is shown below:

// execute the main function
main();
// Construct the main function
function main() <
var retVal = «OK»;
[code].

Illustrator Scripting :: Restart Through Script (or Eliminate PARM Error)

I’m working on a javascript that goes through a folder, rasterizes the paths inside each file, and saves the results as separate files in another folder. My script works fine on individual files as well as for several simple files. However, once it gets going on some of the big ones, it starts to give me PARM errors.

Illustrator CS5.1Windows XP, SP3 (work computer)JavascriptThe CAD export that created the pdf and eps files broke any curves into tons of tiny straight lines. As a result, these drawings can have 15-35 thousand paths per image.

Get the source and destination directoriesOpen a file from the source directoryGo to the first layer of the fileLoop through all text items to move them to their own layerLoop through all path and compound paths to move them to a groupRasterize the group of path itemsRepeat for the next layer and so onSave the file to the destination directoryRepeat the process for the next file and so on.The scripting guide suggests it could be from conflicting functions or global variables overwriting each other. However, my script is now entirely contained within its own function, and all variables are declared locally. Running from a clean illustrator and ESTK startup, it will still produce a PARM error after a few large files.

The guide also suggests having the script quit and re-launch Illustrator after working on many files. Since I assume these huge diagrams are probably several «normal» files’ worth of objects each, I figured it probably just needs to restart Illustrator after x amount of stuff goes through. So I look in the guide’s section on launching Illustrator through javascript. That basically says «Why would you ever need to do that?» I tried looking it up in the tools guide, but that document isn’t very clear at all.

1. What would I have to do so Illustrator doesn’t throw a PARM error on the line marked below? (besides just putting it in a try/catch and pretending it didn’t happen) It doesn’t consistently happen on the same file or even at the same point in the file, but always at that line.

This is just a tiny part of the script. objectClass is a placeholder for PathItems, CompoundPathItems, etc. Looping backwards and setting the group to null at the end were just experiments, neither of which had any effect on the error.

if(objectClass.length > 0) <
var objectGroup = myLayer.groupItems.add();
for(var i = objectClass.length; i > 0; i—) <
objectClass[i-1].move(objectGroup, ElementPlacement.PLACEATBEGINNING); //This one keeps breaking stuff.
>
sourceDoc.rasterize(objectGroup, rastBounds, rastOptions);
objectGroup = null;
>

2. Failing that, how can I relaunch Illustrator through javascript? Or a limited amount of VBScript, though my knowledge of that is limited too.

Illustrator Scripting :: Why Does Trace Script Give Application Error

I have written a simple script to to trace a raster image using Illustrator.The image can be traced using >Object > Image trace in Illustrator without any problems.However, when I run my script I get the following error: Application error 12321(some long number) ‘MARC’.

var jpgFilePath = new File («/Users/Ellipse8.jpg»
createRasterItem(jpgFilePath)
function createRasterItem(jpgFilePath) <
var rasterFile = File(jpgFilePath);
var myDoc = app.documents.add();
[code].

Illustrator Scripting :: Open Multiple AI Files Produce Error In Palette (8702 — No Document)

I try to open mulitple ai files through palette dialog but it fails on Error:8702, there is no document. But if i change to var win = new Window («dialog», «Batch»); the open file works well.

var txtSourceFolder = win.add(«edittext»,undefined);
var btnOk = win.add(«button»,undefined,»Run»);
btnOk.onClick=function()<
try

After Effects :: ELEMENT 3D Ram Preview Error

i gotta problem wit ‘Element 3D v1.6’window version. when im animated E3D and then trynna ‘Ram preview’ in that case.i gotta error message like below,’element has encountered an unrecoverable error’ ‘after effect warning: a frame failed to render while using render multiple frames simultaneously. allocating more memory to the background processes in Memory & Multiprocessing preferences may fix this problem.’

but im did it everythin in M&M preference and this error only Rampreviewing wit E3D, anything is cool. My issue is Few days ago Upgrade VGA card n Driver and Element3D v1.6 update.

AutoCAD VB :: Element Not Found Error In 2012

I have an error that started appearing in my VBA programs since we upgraded to AutoCAD 2012. This problem never occured in our previous releases. The program is supposed to loop through all entities in paperspace and check for entities that are a acBlockReference object.

Below is a simplified version of my program. I get an Element Not Found error on the line noted. Again, this has never happened in any of our previous versions of AutoCAD. Just started with 2012.

Sub Test
Dim blkref As AcadBlockReference
Dim entry As Variant
For Each entry In ThisDrawing.PaperSpace
If entry.EntityType = acBlockReference Then ‘

Maya :: Error — Could Not Find UI Element Named

Why can’t I rename a shader? I am following a Gnomon eye tutorial and when I rename a blinn, lambert or any other shader/material this pops up Error: Could not find UI element named «». After the error I can’t access the hardware texture rollout on the shader. Its happened with all maya versions since 2009 with different PC’s, the graphics cards I have used are gaming cards both nvidia/ati at the moment its a 460gtx could that be the problem, do I need a Quadro card.

Revit :: Error / Can’t Obtain Permission To Edit The Element

error: Can’t obtain permission to edit the element: The Central Model is inaccessible. You can check out worksets at risk, but consider carefully!thats what it says i took the file of my the drive but cant edit it.

AutoCAD Inventor :: An Error Occurred While Creating Finite Element Mesh

we’ve made a part from an assembly and put the stress analysis to the test. Unfortunately the analysis doesn’t complete it’s run, because of an error:

«An error occurred while creating the finite element mesh. The cause may be invalid geometry or features that are extremely small in comparison to the overall dimensions of the part. To fix the problem, please suppress those problematic features or use standard meshing method.»

We can’t change the thickness of the sheet-metal, because it’s a model which comes from a supplier with a different cad-program. And supressing any features isn’t possible, because it’s a base-solid.

But where can we change it to the standard meshing methode? The program is recently re-installed on my computer, the settings haven’t changed since it’s been installed. We can’t find the feature.

Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting

I’m try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn’t seem to work. Here is my Script, mostly copied from the example script provided with Illustrator (CS5). And, this works manually, using the file names in the script, via Load Variable Library

Set appRef = CreateObject(strIllistratorVersion)

‘Open the file and import the datasets
Set docRef = appRef.Open(strTemplate & «200-500.ai»)
‘docRef.Datasets.RemoveAll
docRef.Variables(«Yearbook»).Delete

Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with ‘No Datasets in this document’

docRef.ImportVariables (strXMLFolder & «Lumber_200-500.xml»)
‘appRef.DoJavaScript «alert(‘Template:» & strTemplate & strRange & «.ai | XML file:» & strXMLFolder & «» & objFile.Name & «^’)»
If (appRef.Documents.Count > 0) Then
Set docRef = appRef.Documents(1)

If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.

It’s simply not loading. What do I need to do to get it to load?

Illustrator Scripting :: Access Graph Data Through Scripting DOM?

Can you access graph data through the scripting DOM?

Illustrator :: Export Only 1 Element From AI Document?

how you could select only one element from within an AI document and be able to export just that element out. For example, I’m making a letterhead and I want to select just a logo element from my page and export just that to an eps so that it could be imported into something else.

Back when I was using Corel Draw I could simply select anything and as long as it was the only thing selected I could export it to a new eps file, or whatever kind of file I wanted. If I did it with an image, the image would be cropped to just the bounds of the image.

So far it seems the only way to do this in AI is to export the entire artboard. I’m sure this can’t be because that would be ludicrous, right?

Illustrator :: Make Pattern Brush With 3D Element?

I followed this tutorial to create 3D Christmas lights, and all was going well until I reached one of the final steps- release clipping mask in order to proceed with making a pattern brush. The «Release» option is simply not available, I’m only allowed to «Make.»

— What might have I missed/what should I look for to enable making a pattern brush with 3d objects?

Illustrator :: Copying Element Which Has Graphic Style Applied

Copying an element which has a graphic style applied now breaks apart the style into individual elements if the style is applied to text, the text is outlined too. This never use to happen. Have tried changing the paste board setting but this changes nothing.

Illustrator :: How To Cut First Stroke From Double Outlined Text Element

I have text with two strokes apllied to it. I want to cut/delete the first stroke to have the apperance of a stroke that has a gap between the text fill and the stroke. Or if there is an easier way to have the outline apllied, expanded (for lack of a better term) off of the fill?

Illustrator :: Importing DXF Files Into CC And Keeping Every Element In Place And Size

When i import a DXF file into Illustrator created in AutoCAD, i have the problem that the positions of the elements (rectangles, circles etc.) are not on the exact position as created in AutoCAD. The variations are very minor (Centerposiotion of a element x 5mm y 5mm in AutoCad = x 4.969 y 4.949 after import in Illustrator). Sometimes the sizes of the elements variate also slightly (a line which is 102mm in AutoCAD is 101.99mm after import in Illustrator) but not generally.

I tried various files with different export versions from AutoCAD, including different measures such as mm to inch and points and so on. I tried also the different importing options in Illustrator. The closest i come is Centerposiotion of a element x 5mm y 5mm in AutoCad = x 4.969 y 4.949 but never exact. How to get a DXF file into illustrator by keeping every element in place and size?

Illustrator Scripting :: Create Mirror Text And Stroke Text In AI Scripting

the Script of creating mirror text and stroke text in Adobe illustrator scripting.

Illustrator :: Can’t Apply Effect / Warp — Wave To A Line Made With Line Tool

I should be able to apply an effect to a line that has been made with the line tool. Why is this not working?I thought that maybe I might have disabled Effects somehow, but I can’t think of anything.

Illustrator :: Thin White Line Between Line Art And Live Paint Fill?

I am using live paint to paint cartoon character illustrations. The artwork is brought into Illustrator CS3 and live traced. Then I convert it to a live paint group and use the paint bucket to fill. Everything looks fine no matter how much I zoom in. If I bring the AI file into Photoshop CS6 I can see a thin white line between the black line art and the fill. This is most noticeable where black meets black. I can also see this sometimes in file previews while browsing through files. If the white line cannot be seen in Illustrator is the file ok? I did just upgrade to CS6 if that would make a difference.

I must have pushed one or the other button but I don’t know which one!

I use CS5 and have now a small arrow on my line segment tool (as shown in the picutres):

Ever since that when i click shift, it just allows me to draw vertical lines, rather than vertical or horizontal.

Источник

Содержание

  1. Error 1302 no such element
  2. ERROR 1302 with Setup Script.
  3. ERROR 1302 with Setup Script.
  4. ERROR 1302 with Setup Script. [SOLVED!]
  5. PS-SCRIPTS.COM
  6. Error 1302 : No such element
  7. Error 1302 : No such element
  8. Error 1302 : No such element
  9. Error 1302 : No such element
  10. Error 1302 : No such element
  11. Error 1302 : No such element
  12. Illustrator Scripting :: Getting Error 1302 — No Such Element Line
  13. Illustrator Scripting :: Using IndexOf To See Whether Element Exist Within Array
  14. Illustrator Scripting :: Can Execute Action From Command-line Using AI?
  15. Illustrator Scripting :: How To Provide Space And New Line To The Text
  16. Illustrator Scripting :: Change Color And Line Weight
  17. Illustrator Scripting :: Deleting Used Symbol Generates Error
  18. Illustrator Scripting :: How To Give Line Height To Text In AI Script
  19. Illustrator Scripting :: Adding New Line And Spaces In Between Text In AI Script
  20. Illustrator Scripting :: How To Make Auto Line Alignment In ScriptUI
  21. Illustrator Scripting :: Changing Line Of Text In Multiple AI Files
  22. Illustrator Scripting :: Block Specific Error Message In JavaScript?
  23. Illustrator Scripting :: CS6 PlacedItems Relink Method — Sometimes Producing Error
  24. Illustrator Scripting :: Restart Through Script (or Eliminate PARM Error)
  25. Illustrator Scripting :: Why Does Trace Script Give Application Error
  26. Illustrator Scripting :: Open Multiple AI Files Produce Error In Palette (8702 — No Document)
  27. After Effects :: ELEMENT 3D Ram Preview Error
  28. AutoCAD VB :: Element Not Found Error In 2012
  29. Maya :: Error — Could Not Find UI Element Named
  30. Revit :: Error / Can’t Obtain Permission To Edit The Element
  31. AutoCAD Inventor :: An Error Occurred While Creating Finite Element Mesh
  32. Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting
  33. Illustrator Scripting :: Access Graph Data Through Scripting DOM?
  34. Illustrator :: Export Only 1 Element From AI Document?
  35. Illustrator :: Make Pattern Brush With 3D Element?
  36. Illustrator :: Copying Element Which Has Graphic Style Applied
  37. Illustrator :: How To Cut First Stroke From Double Outlined Text Element
  38. Illustrator :: Importing DXF Files Into CC And Keeping Every Element In Place And Size
  39. Illustrator Scripting :: Create Mirror Text And Stroke Text In AI Scripting
  40. Illustrator :: Can’t Apply Effect / Warp — Wave To A Line Made With Line Tool
  41. Illustrator :: Thin White Line Between Line Art And Live Paint Fill?
  42. Illustrator :: Line Segment Tool Does Not Allow To Draw Horizontal Line?

I just downloaded and copied VuMark scripts for AI CC 2018 (ver 22.1) (x64) on Windows 10 Pro OS.

I launch AI and then execute setup script and get ERROR 1302: No such element line 117 ->

Anyone have thoughts? I saw another thread with same issue and marked as solved but there was no resolution posted. only difference was line # was listed as 125 not 117 as my is giving.

ERROR 1302 with Setup Script.

Hello there, I have the same problem, that’s how I entered this section. But the fonts Rick mentioned , cannot be found anymore in fontsup.com. What choices I have to fix the error? Although I normally paste the files into the Scripts folder of Illustrator, I cannot run the desirable procession Instead,I get the message: Error 1302: No such element Line 117

ERROR 1302 with Setup Script.

Apologies for the challenges you faced for this issue. Your suggestion to include this information as part of the VuMarks article is a valid one (and somehow missed by us).

Thanks for your contribution to our community.

-Vuforia Engine Support

ERROR 1302 with Setup Script. [SOLVED!]

After a great deal of searching I finally found the issue and have solved this and thought I’d share since other posts did not include how they solved issue.

The following fonts need to be installed prior to running VuMark-Setup script:

MyriadPro (Regular); MyriadPro-Bold and MyriadPro-Semibold

According to the article the error occurs on a line in the code where the MyriadPro fonts are trying to be accessed in AI. I found and downloaded these fonts here: https://fontsup.com

Hope this helps others that may come across this error in the future.

I am wondering why since this is a *MUST* requirement to have these fonts installed that it is not listed in the Users Guide as a installation and/or troubleshooting step?

Источник

PS-SCRIPTS.COM

Independent Photoshop® Scripting Community

Error 1302 : No such element

Moderators: Tom, Kukurykus

Error 1302 : No such element

Post by Dohny » Mon Jun 05, 2006 9:13 pm

I’m new in this forum (and new to PS script writing to be honnest !) and I’m having my first little problem.

I’m using wade’s script (bb/viewtopic.php?t=411&highlight=pixel+color+colour) in order to pick the color of a pixel. When I launch the script, PS returns the error :
«Error 1302: No such element» (Translation from the french : Elément inexistant)
concerning the code :
pChannel = curDoc.channels.getByName(«Red»).histogram;

I’ve checked the code several times, and everything seems ok to me. I actually don’t even understand the meaning of this error.

By the way, I wondered if anybody could give me tips to debug PS scripts.

Error 1302 : No such element

Post by Mike Hale » Mon Jun 05, 2006 10:30 pm

I would think of possible two reasons for this error. The error says that it can not find a channel with the name of ‘Red’.

1 Is you doc in RGB mode? Only RGB files will have a ‘RED’ channel. If your doc is not RGB you will have to change the script or you doc

2 If it is RGB, is the channel called ‘Red’ in the channel palette? The only other thing I can think is that the red channel uses the french word for red in your version of Photoshop

Error 1302 : No such element

Post by Dohny » Tue Jun 06, 2006 8:27 am

Well, thanks a lot Mike for your answer !

I had checked that the picture was in RGB mode, but I hadn’t checked about the name of the channels ! My channel is actually Rouge as you said !!

Yet, now I wonder : do you think that the name of the channels depend on the language of the soft with which the image has been saved or does it only depend on the soft with which you open the image ?

Again, thanks a lot for your fast and accurate answer !

Error 1302 : No such element

Post by Mike Hale » Tue Jun 06, 2006 12:51 pm

I think that it is the version you are using. There are other issuses that can break a script because of the language version of Photoshop is different than the one the script was tested in . The OS or app path and error messages are other problem areas.

Would you be willing to work with me, perhaps by email, to compile a list of differences between the french version and the english version that we can post here to help other script writers localize their scripts?

Error 1302 : No such element

Post by Dohny » Tue Jun 06, 2006 9:09 pm

Ok. as soon as I have my script done and working on my machine, I try it on the english version of the soft.

About working on the differences between area versions, I’d be glad but I’m really beginner in scripting. so it would mean that you would have to pilot me a little bit !

If you’re still interested, just send me a pm and we’ll work this out !

Adobe® and Photoshop® are registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.

© 2023 PS-SCRIPTS.COM — TBIT DESIGN — All Rights Reserved Worldwide

In Memory of Mike Hale

Powered by phpBB® Forum Software © phpBB Limited

Источник

Illustrator Scripting :: Getting Error 1302 — No Such Element Line

I am getting an error with a script i have used before without any problems.The script updates the only image at the bottom of a single page PDF and saves the changed PDF in another folder.

It asks me to locate the folder of PDFs to be modified.It asks me to locate the folder where the modified PDFs will be saved.It asks me to select the new image that will be used.It will then update the image and resizes it and save the PDF in the specified folder.

I don’t get this error on all PDFs but i get it at least once every 10 PDFs (and there are over a 1,000 PDFs).The error i get is this:

Error 1302:No such elementLine:27-> rip=doc.rasterItems[0].position;

I get this error regardless of whether the script is run in CS3 or CS5.

Additional info.I ran this script in CS3 and it worked. At a later date i ran another script on the folder of modified PDFs in CS5 that deleted any unnessesary elements outside the artboard, it selected All on the Artboard — then inversed the selection — and deleted any selected items followed by save and close.I have tried making sure the «new» image has the same name as the image being replaced but this made no difference.I am using Illustrator on Vista.

The script is below:

#target illustrator
function replaceImage() <

Similar Messages:

Illustrator Scripting :: Using IndexOf To See Whether Element Exist Within Array

I’m trying to use indexOf to see whether an element exists within an array. However, when I try to execute my script, it comes back saying «myLayers.indexOf() is not a function»

Here is some of my code:
for (var i = 0; i

Illustrator Scripting :: Can Execute Action From Command-line Using AI?

I need to do a form of automation, but wanting to execute this from another process (self-made application). Adobe Photoshop has this mechanism called «Droplets» that are executable based upon Actions defined in Photoshop (as far as I can understand). Is it possible to let AI do some work for you from an external application as with Photoshop (assuming you are able to execute the executable once it has been created)?

Illustrator Scripting :: How To Provide Space And New Line To The Text

how to provide space and new line to the text in AI Script

Illustrator Scripting :: Change Color And Line Weight

I am trying to create a script who could act as an Autocad plot (ie convert each color to black, with a different line weight).

Here is the first script I melted, who create my Black swatch

if ( app.documents.length > 0 ) <
var myDoc = app.activeDocument;
//add Black swatch
var newSwatch = app.activeDocument.swatches.add()
var newColor = new GrayColor();
newColor.gray = 100;
[Code] .

And here is the second one, who replace one color by Black (it don’t change the text, nor the lineweight yet…

if ( app.documents.length > 0 ) <
//test de dialogue
function csDialog() <
var fabGroup = app.activeDocument.swatchGroups.getByName(‘Fabrics’);
var allFabs = fabGroup.getAllSwatches();
var fabNames = Array();

Illustrator Scripting :: Deleting Used Symbol Generates Error

I’m having difficulty writing a script that deletes all of the symbols in the document (as opposed to just breaking links or expanding which I apparently cannot do). app.sourceDocument.symbols.removeAll();When it reaches a symbol that’s used in the document somewhere it spits out this error: Error 1200: an Illustrator error occurred: 1346458189 (‘MRAP’)

Illustrator Scripting :: How To Give Line Height To Text In AI Script

how to give line height to text in AI Script

Illustrator Scripting :: Adding New Line And Spaces In Between Text In AI Script

areaText.contents = «This is an Area Text in a rectangle. See how it flows to the next line.»;

/*
i want to break the sentance from ‘Text’ ie i want to add new line in between and also some more spaces.
*/

For example: I want to write the above text like this way

this is an Area. Text in a rectangle. See how it flows to the next line.

Illustrator Scripting :: How To Make Auto Line Alignment In ScriptUI

I want that form recognize new line character. (like ‘)So I programmed like this. But it’s not working.

var win =new Window («dialog», «test»);win.orientation = «column»;
var form1 = win.add («edittext», undefined, «»);form1.onChanging = function()< if(form1.text.search(«
«) == true)< form2.active = true; >>
var form2 = win.add («edittext», undefined, «»);
var form3 = win.add («edittext», undefined, «»);
wzn.show();

How can i make it auto line alignment in ScriptUI?

Illustrator Scripting :: Changing Line Of Text In Multiple AI Files

I have about 500 files that I need to change one line of text in. Example. File name is XXX 001, the line of text is the file name so it would read XXX 001. XXX 002. etc. up to XXX 500. Is there a way that I could automate it opening, changing this line of text, saving and closing?

Illustrator Scripting :: Block Specific Error Message In JavaScript?

Is it possible to block this message with javascript?

I’ve already tried the following:

Illustrator Scripting :: CS6 PlacedItems Relink Method — Sometimes Producing Error

I am creating a script on illustrator CS6 that will loop through all the images and relink these images to there current location, it is used to update all of the links in the file. However sometimes when i run this script i will get the error 376(‘x ‘) i have searched for the meaning of this and cannot find it anywhere. It is being written in extendscript, the code i am using is shown below:

// execute the main function
main();
// Construct the main function
function main() <
var retVal = «OK»;
[code].

Illustrator Scripting :: Restart Through Script (or Eliminate PARM Error)

I’m working on a javascript that goes through a folder, rasterizes the paths inside each file, and saves the results as separate files in another folder. My script works fine on individual files as well as for several simple files. However, once it gets going on some of the big ones, it starts to give me PARM errors.

Illustrator CS5.1Windows XP, SP3 (work computer)JavascriptThe CAD export that created the pdf and eps files broke any curves into tons of tiny straight lines. As a result, these drawings can have 15-35 thousand paths per image.

Get the source and destination directoriesOpen a file from the source directoryGo to the first layer of the fileLoop through all text items to move them to their own layerLoop through all path and compound paths to move them to a groupRasterize the group of path itemsRepeat for the next layer and so onSave the file to the destination directoryRepeat the process for the next file and so on.The scripting guide suggests it could be from conflicting functions or global variables overwriting each other. However, my script is now entirely contained within its own function, and all variables are declared locally. Running from a clean illustrator and ESTK startup, it will still produce a PARM error after a few large files.

The guide also suggests having the script quit and re-launch Illustrator after working on many files. Since I assume these huge diagrams are probably several «normal» files’ worth of objects each, I figured it probably just needs to restart Illustrator after x amount of stuff goes through. So I look in the guide’s section on launching Illustrator through javascript. That basically says «Why would you ever need to do that?» I tried looking it up in the tools guide, but that document isn’t very clear at all.

1. What would I have to do so Illustrator doesn’t throw a PARM error on the line marked below? (besides just putting it in a try/catch and pretending it didn’t happen) It doesn’t consistently happen on the same file or even at the same point in the file, but always at that line.

This is just a tiny part of the script. objectClass is a placeholder for PathItems, CompoundPathItems, etc. Looping backwards and setting the group to null at the end were just experiments, neither of which had any effect on the error.

if(objectClass.length > 0) <
var objectGroup = myLayer.groupItems.add();
for(var i = objectClass.length; i > 0; i—) <
objectClass[i-1].move(objectGroup, ElementPlacement.PLACEATBEGINNING); //This one keeps breaking stuff.
>
sourceDoc.rasterize(objectGroup, rastBounds, rastOptions);
objectGroup = null;
>

2. Failing that, how can I relaunch Illustrator through javascript? Or a limited amount of VBScript, though my knowledge of that is limited too.

Illustrator Scripting :: Why Does Trace Script Give Application Error

I have written a simple script to to trace a raster image using Illustrator.The image can be traced using >Object > Image trace in Illustrator without any problems.However, when I run my script I get the following error: Application error 12321(some long number) ‘MARC’.

var jpgFilePath = new File («/Users/Ellipse8.jpg»
createRasterItem(jpgFilePath)
function createRasterItem(jpgFilePath) <
var rasterFile = File(jpgFilePath);
var myDoc = app.documents.add();
[code].

Illustrator Scripting :: Open Multiple AI Files Produce Error In Palette (8702 — No Document)

I try to open mulitple ai files through palette dialog but it fails on Error:8702, there is no document. But if i change to var win = new Window («dialog», «Batch»); the open file works well.

var txtSourceFolder = win.add(«edittext»,undefined);
var btnOk = win.add(«button»,undefined,»Run»);
btnOk.onClick=function()<
try

After Effects :: ELEMENT 3D Ram Preview Error

i gotta problem wit ‘Element 3D v1.6’window version. when im animated E3D and then trynna ‘Ram preview’ in that case.i gotta error message like below,’element has encountered an unrecoverable error’ ‘after effect warning: a frame failed to render while using render multiple frames simultaneously. allocating more memory to the background processes in Memory & Multiprocessing preferences may fix this problem.’

but im did it everythin in M&M preference and this error only Rampreviewing wit E3D, anything is cool. My issue is Few days ago Upgrade VGA card n Driver and Element3D v1.6 update.

AutoCAD VB :: Element Not Found Error In 2012

I have an error that started appearing in my VBA programs since we upgraded to AutoCAD 2012. This problem never occured in our previous releases. The program is supposed to loop through all entities in paperspace and check for entities that are a acBlockReference object.

Below is a simplified version of my program. I get an Element Not Found error on the line noted. Again, this has never happened in any of our previous versions of AutoCAD. Just started with 2012.

Sub Test
Dim blkref As AcadBlockReference
Dim entry As Variant
For Each entry In ThisDrawing.PaperSpace
If entry.EntityType = acBlockReference Then ‘

Maya :: Error — Could Not Find UI Element Named

Why can’t I rename a shader? I am following a Gnomon eye tutorial and when I rename a blinn, lambert or any other shader/material this pops up Error: Could not find UI element named «». After the error I can’t access the hardware texture rollout on the shader. Its happened with all maya versions since 2009 with different PC’s, the graphics cards I have used are gaming cards both nvidia/ati at the moment its a 460gtx could that be the problem, do I need a Quadro card.

Revit :: Error / Can’t Obtain Permission To Edit The Element

error: Can’t obtain permission to edit the element: The Central Model is inaccessible. You can check out worksets at risk, but consider carefully!thats what it says i took the file of my the drive but cant edit it.

AutoCAD Inventor :: An Error Occurred While Creating Finite Element Mesh

we’ve made a part from an assembly and put the stress analysis to the test. Unfortunately the analysis doesn’t complete it’s run, because of an error:

«An error occurred while creating the finite element mesh. The cause may be invalid geometry or features that are extremely small in comparison to the overall dimensions of the part. To fix the problem, please suppress those problematic features or use standard meshing method.»

We can’t change the thickness of the sheet-metal, because it’s a model which comes from a supplier with a different cad-program. And supressing any features isn’t possible, because it’s a base-solid.

But where can we change it to the standard meshing methode? The program is recently re-installed on my computer, the settings haven’t changed since it’s been installed. We can’t find the feature.

Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting

I’m try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn’t seem to work. Here is my Script, mostly copied from the example script provided with Illustrator (CS5). And, this works manually, using the file names in the script, via Load Variable Library

Set appRef = CreateObject(strIllistratorVersion)

‘Open the file and import the datasets
Set docRef = appRef.Open(strTemplate & «200-500.ai»)
‘docRef.Datasets.RemoveAll
docRef.Variables(«Yearbook»).Delete

Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with ‘No Datasets in this document’

docRef.ImportVariables (strXMLFolder & «Lumber_200-500.xml»)
‘appRef.DoJavaScript «alert(‘Template:» & strTemplate & strRange & «.ai | XML file:» & strXMLFolder & «» & objFile.Name & «^’)»
If (appRef.Documents.Count > 0) Then
Set docRef = appRef.Documents(1)

If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.

It’s simply not loading. What do I need to do to get it to load?

Illustrator Scripting :: Access Graph Data Through Scripting DOM?

Can you access graph data through the scripting DOM?

Illustrator :: Export Only 1 Element From AI Document?

how you could select only one element from within an AI document and be able to export just that element out. For example, I’m making a letterhead and I want to select just a logo element from my page and export just that to an eps so that it could be imported into something else.

Back when I was using Corel Draw I could simply select anything and as long as it was the only thing selected I could export it to a new eps file, or whatever kind of file I wanted. If I did it with an image, the image would be cropped to just the bounds of the image.

So far it seems the only way to do this in AI is to export the entire artboard. I’m sure this can’t be because that would be ludicrous, right?

Illustrator :: Make Pattern Brush With 3D Element?

I followed this tutorial to create 3D Christmas lights, and all was going well until I reached one of the final steps- release clipping mask in order to proceed with making a pattern brush. The «Release» option is simply not available, I’m only allowed to «Make.»

— What might have I missed/what should I look for to enable making a pattern brush with 3d objects?

Illustrator :: Copying Element Which Has Graphic Style Applied

Copying an element which has a graphic style applied now breaks apart the style into individual elements if the style is applied to text, the text is outlined too. This never use to happen. Have tried changing the paste board setting but this changes nothing.

Illustrator :: How To Cut First Stroke From Double Outlined Text Element

I have text with two strokes apllied to it. I want to cut/delete the first stroke to have the apperance of a stroke that has a gap between the text fill and the stroke. Or if there is an easier way to have the outline apllied, expanded (for lack of a better term) off of the fill?

Illustrator :: Importing DXF Files Into CC And Keeping Every Element In Place And Size

When i import a DXF file into Illustrator created in AutoCAD, i have the problem that the positions of the elements (rectangles, circles etc.) are not on the exact position as created in AutoCAD. The variations are very minor (Centerposiotion of a element x 5mm y 5mm in AutoCad = x 4.969 y 4.949 after import in Illustrator). Sometimes the sizes of the elements variate also slightly (a line which is 102mm in AutoCAD is 101.99mm after import in Illustrator) but not generally.

I tried various files with different export versions from AutoCAD, including different measures such as mm to inch and points and so on. I tried also the different importing options in Illustrator. The closest i come is Centerposiotion of a element x 5mm y 5mm in AutoCad = x 4.969 y 4.949 but never exact. How to get a DXF file into illustrator by keeping every element in place and size?

Illustrator Scripting :: Create Mirror Text And Stroke Text In AI Scripting

the Script of creating mirror text and stroke text in Adobe illustrator scripting.

Illustrator :: Can’t Apply Effect / Warp — Wave To A Line Made With Line Tool

I should be able to apply an effect to a line that has been made with the line tool. Why is this not working?I thought that maybe I might have disabled Effects somehow, but I can’t think of anything.

Illustrator :: Thin White Line Between Line Art And Live Paint Fill?

I am using live paint to paint cartoon character illustrations. The artwork is brought into Illustrator CS3 and live traced. Then I convert it to a live paint group and use the paint bucket to fill. Everything looks fine no matter how much I zoom in. If I bring the AI file into Photoshop CS6 I can see a thin white line between the black line art and the fill. This is most noticeable where black meets black. I can also see this sometimes in file previews while browsing through files. If the white line cannot be seen in Illustrator is the file ok? I did just upgrade to CS6 if that would make a difference.

I must have pushed one or the other button but I don’t know which one!

I use CS5 and have now a small arrow on my line segment tool (as shown in the picutres):

Ever since that when i click shift, it just allows me to draw vertical lines, rather than vertical or horizontal.

Источник

Привет, я пытаюсь запустить этот скрипт, который я нашел в фотошопе, и он дает мне эту ошибку

Сценарий должен сделать 1 случайный слой видимым в каждой группе. Я сделал то, что было сказано в посте, шаг за шагом.

Мне действительно нужна помощь здесь.

      function Visible() {
  var Grps = app.activeDocument.layerSets; // loops through all groups
  for (var i = 0; i < Grps.length; i++) {
    var tmp = app.activeDocument.layerSets[i].layers.length;
    app.activeDocument.layerSets[i].visible = true;
    var groupChildArr = app.activeDocument.layerSets[i].layers;
    var randLays = Math.floor(Math.random() * tmp);
    groupChildArr[randLays].visible = true;
    Save();
  }
  Revert();
}

function Save() {
  var outFolder = app.activeDocument; // psd name
  var outPath = outFolder.path;
  var fName = "PNG"; // define folder name
  var f = new Folder(outPath + "/" + fName);
  if (!f.exists) {
    f.create()
  }
  var saveFile = new File(outPath + "/" + fName + "/" + "Pattern_" + num + ".png");
  pngSaveOptions = new PNGSaveOptions();
  pngSaveOptions.interlaced = false;
  app.activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);
}

// Original code - revert function does not work
// for some users
//function Revert(){
//  var idslct = charIDToTypeID( "slct" );
//  var desc300 = new ActionDescriptor();
//  var idnull = charIDToTypeID( "null" );
//  var ref163 = new ActionReference();
//  var idSnpS = charIDToTypeID( "SnpS" );
//  ref163.putName( idSnpS, "test.psd" );
//  desc300.putReference( idnull, ref163 );
//  executeAction( idslct, desc300, DialogModes.NO );
//}

function Revert() {
  var idRvrt = charIDToTypeID("Rvrt");
  executeAction(idRvrt, undefined, DialogModes.NO);
}

var count = prompt("How many patterns you want", "");
for (var x = 0; x < count; x++) {
  var num = x + 1;
  Visible();
}

2022-01-29 14:32

Понравилась статья? Поделить с друзьями:
  • Ошибка 1302 ниссан
  • Ошибка 1302 калина 8 клапанная
  • Ошибка 1302 лада веста
  • Ошибка 1302 калина 16 клапанов
  • Ошибка 1302 и 0363 причина