Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

116
Views
Adobe jsx configuración de relleno y trazo no se actualiza hasta que finaliza el script

Terminé esta secuencia de comandos para establecer los colores en algunas rutas y llenar el nombre El nombre de la ruta es = "Bloquear" en Illustrator y luego quería abrir una opción para guardar como. El único problema es que los cambios no se registran hasta después del cuadro de diálogo Guardar donde la página se actualiza con los cambios. ¿Qué debo llamar para actualizar antes del cuadro de diálogo Guardar?

 if ( app.documents.length > 0) { //Set some colours var blackColor = new RGBColor(); blackColor.red = 0; blackColor.green = 0; blackColor.blue = 0; var whiteColor = new RGBColor(); whiteColor.red = 255; whiteColor.green = 255; whiteColor.blue = 255; var docRef = app.activeDocument; //var layers = docRef.layers; //var myLayer = layers["layer1"]; //this defines the layer that you want to get the selection from // docRef.selection = null; //ensure there is nothing in the document selected already. this way you only get the selection you want. for(var a=0;a<docRef.pathItems.length;a++){ if (docRef.pathItems[a].name == "Block"){ docRef.pathItems[a].fillColor = whiteColor; docRef.pathItems[a].strokeColor = blackColor; docRef.pathItems[a].selected = true; } } //////// //This need to be added to refresh the draw process redraw(); //<--Add This ///////// alert("Save outline"); app.executeMenuCommand("saveas"); }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!