Questions tagged [javascript]
Questions related to Javascript code, one of the main technologies behind the web and also being used in Adobe software.
150
questions
-1
votes
2
answers
1k
views
Creating interactive images/videos with links for website?
I am curious on how websites create interactive videos and images with links for websites? Is this accomplished with flash and if so any recommendations on software to use to create basic pages like ...
1
vote
1
answer
2k
views
Photoshop javascript, how to select contents of a layer
Is there a method for the following function (mac) Command-click on thumbnail in layer panel? (So all non empty pixels get selected in specified layer.)
2
votes
2
answers
1k
views
How to script a popup box before closing a document - InDesign
I have used javascript to script before, using an eventlistener to say
app.addEventListener( "beforeClose" , [function]);
function [functionname]()
etc...
What I need is a way to tell InDesign '...
0
votes
1
answer
2k
views
Script to change a color in all layers of a PSD file to another color?
Is it possible to loop through all layers (there are too many layers) and replace one color with another. Need automated approach, script or simple action.
Loop through all layers{
Change Fill ...
1
vote
5
answers
2k
views
How to rotate all items as a group? (In a script, Illustrator)
I have an SVG with a few curved paths.
I'd like to create n versions of this, by rotating them around as a group (360 / n degrees apart), around the center of the square-shaped canvas they're in, like ...
0
votes
2
answers
3k
views
How to insert text into an Illustrator file using ExtendScript JavaScript
I opened my Illustrator file successfully using the below code:
var fileRef = new File("E:/project/AH_Portrait.ai");
var docRef = app.open (fileRef)
I want to write some text ("Handgloves") into it, ...
2
votes
1
answer
695
views
Logarithmic Spacing in Illustrator
I'm trying to space text logarithmically. My goal is essentially the same as the one presented here, which is useful but doesn't help me as the only advice provided is to use JS, which I'm not ...
1
vote
1
answer
79
views
PDF Form Calulations
I have a PDF form with calculations that I just created and I intend on using it as an order form. I created it in Excel then brought it into Acrobat Pro DC (Mac OS) to create the form. Its just a ...
1
vote
1
answer
2k
views
Blood Dripping Down Screen Effect [closed]
I was wondering if anyone had a tutorial or an idea of how to create a dripping effect similar to that of the famous blood drip. In this case, I was curious as to how I could change the color, instead ...
1
vote
1
answer
659
views
updating links based on pageItem name, not based on index of 'links.items'
I have a indesign document with several images. I want to update these images with Adobe Indesign Scripting. The following code works.
var file = new File ('/MyDisk/image01.png');
app.activeDocument....
1
vote
1
answer
1k
views
What is a Type 1 font in InDesign?
Diving down the rabbit hole of scripting InDesign to learn more about what fonts are in a file I ran across several font types but I'm unsure what it means in InDesign when you have a Type 1 font type....
0
votes
1
answer
2k
views
Break SVG file into multiple files
I'm a programmer with almost zero knowledge of graphics and svg structure. But I would like to know if it is possible to break this kind of svg file into multiple ones. Or at least access only one ...
2
votes
1
answer
2k
views
After Effects expressions to sum numbers and control charts
I would like to build a project in which I will change two numbers and all of the following take place automatically! I'll Explain...
Part 1:
I have two layers, "Number 1" and "Number 2". Suppose I ...
2
votes
1
answer
10k
views
Exporting SVG paths to HTML to animate with JavaScript
I have a complex blueprint, which I've traced in Inkscape. I'm going to programmatically animate the path and also add some other effects with JavaScript. I can include the file using HTML (e.g. <...
4
votes
1
answer
2k
views
Vector Format Perlin Noise Effect
Goal is to Achieve vector formatted Perlin noise line art. Visual Examples of the desired effect:
It is possible to create a static Perlin noise effecting using only Adobe Illustrator or photoshop?
...
1
vote
1
answer
777
views
Design Research: Interactive graphic following mouse pointer on website
Doing some more visual design technique research. Nikita Nikiforov shows a very interesting visual feature on his website Nikita Nikiforov.
See the .gif below or visit the website to see it in action....
1
vote
3
answers
2k
views
Calling Pathfinder Divide through JavaScript in Illustrator?
How do I call Window → Pathfinder → Divide through JavaScript in Illustrator? If not, can I call an action that pushes this button through javascript?
2
votes
1
answer
1k
views
Website Designs with Round Headers?
Does anyone have any examples of live websites with round headers? Similar to this: http://www.nasty-creatures.com/
I'm working on something for a client and have come up with a design with a round ...
2
votes
2
answers
1k
views
How to approach animating a svg from left to right? [Web]
I have image below which is text mixed with dots.
As the paths are not in order from left until right, how would one approach animating from left to right?
The only way I can think is to label each ...
1
vote
1
answer
250
views
HorizontalScale when exporting JPG limits to 776.19
I'm trying to export jpeg files from multiple eps files (with many different artboard sizes) with a specific size - 5000px on long edge. But when artboard is too small horizontalScale exceed its range ...
0
votes
2
answers
3k
views
How do I position an InDesign object using Javascript?
I'm working on a calendar in InDesign and I have a circle object (oval) that I want to position over the day of the month:
I'm pretty sure it should be possible to write a script that sets the x,y ...
0
votes
2
answers
835
views
"Fit All in Window" using JavaScript
I've recently started scripting in Illustrator and having a little problem. When creating a document through File tab, (File->New, Print, Letter) the created document is positioned at (0,0) and the ...
0
votes
1
answer
2k
views
Illustrator Script to create Clipping Mask
How is it possible to create a clipping mask with a illustrator javascript script?
I tried this, but it doesnt work.
var group = app.activeDocument.groupItems.add();
var rect = layer....
1
vote
1
answer
197
views
Programmatic swirl function
In the following post @joojaa writes out the math function for the artwork shown here:
His code is specifically in PostScript, which is awesome...but I'm wondering if this can't be converted to ...
1
vote
1
answer
98
views
How to draw high-resolution images on client-side?
Any libraries, API, or tips are welcome. I am trying to draw Landsat 8 images using Canvas utility of Javascript on my browser. The grayscale reflectance values for Landsat 8 bands are from minimum -...
2
votes
1
answer
2k
views
What is the difference between .jsx and .js?
I am new to Adobe Scripting - what is the difference between .jsx and .js?
0
votes
1
answer
251
views
JavaScript library that will display variable size wedges on a Pie Chart [closed]
I'm looking for a JavaScript library that will create pie charts with variable sized wedges like in the image. (It looks like a doughnut graph but the the image in the middle just has a white border ...
-2
votes
1
answer
323
views
What technology to use to make animation in browser? [duplicate]
I want to make an animation of a blob of ink flowing down and then shaping into text. What js libraries can I use. On my research the only way i could find to do this was SVG with GSAP js library. Is ...
1
vote
1
answer
63
views
Is it acceptable as a web developer to know very elementary JavaScript and rely on frameworks such as Materialize?
I've been using cusotmised Materialize CSS for most of the effects I want on my pages. I know very little JavaScript. Is it reasonable for me to continue working with frameworks such as Materialize ...
2
votes
1
answer
2k
views
InDesign script to list hyperlinks in active document
I am trying to get a list of hyperlinks from my document printed in the console or output to text file. This is what i'm playing with:
for (k=0; k<app.activeDocument.hyperlinks.length-1; k++)
{
...
3
votes
1
answer
1k
views
Animated SVG Javascript Infographic for timeline
I am considering to make an animated infographic based on SVG, Javascript and CSS technologies of a timeline. I have lots of experience in programming but not so much in using these technologies to ...
8
votes
1
answer
2k
views
Script to automatically snap all points to grid in Adobe Illustrator?
How would you write a script to move all points of all selected paths to the nearest (non-pixel grid) grid point?
e.g. I want all of the points of each polygon/path to snap to the nearest point on a ...
1
vote
1
answer
4k
views
InDesign: how to run multiple find/change queries at once
The pesky ~c in the grep find change is extremely helpful but limited.
I want to script multiple find change actions that replace the text found with complex formatted text blocks containing text, ...
0
votes
1
answer
2k
views
InDesign row height script?
InDesign has ignored my row heights when importing an Excel sheet. Every first and second row height was default (20), every third row height was 10. Does anyone know if I can accomplish these ...
0
votes
1
answer
2k
views
Convert smart (curly) quotes to dumb (straight) quotes in InDesign using JavaScript
I am trying to write a script to automatically convert all curly double quotes (“”) in a text box into straight double quotes ("). Here's all that I've tried so far and none of them seem to be working:...
0
votes
3
answers
9k
views
How do I get rid of this invisible box?
When I use the "direct selection tool" (not the regular selection tool) to select the image, this box randomly shows up around it... It is making the script I wrote freak out. Basically, what I need ...
1
vote
0
answers
420
views
Resizing all objects in a layer using Illustrator CS5
IN SUMMARY...MANUALLY all I need to do is ...select all...change width or height depending on which side is longer and constrain THAT'S IT >.<....SOUNDS SIMPLE RIGHT?
THE QUESTION IS THIS....Am I ...
0
votes
2
answers
7k
views
Export from Illustrator to JSON
I use Illustrator to export coordinates (x, y, width and height) of rectangles to JSON. I use JSON to import the coordinates into my web app and repaint them. I use the free Illustrator extension '...
2
votes
2
answers
4k
views
Indesign script to replace paragraph style
I am using ID CC 2014 on a Mac and there's a huge file with several hundred pages where I need to delete a certain paragraph style replacing it with another. Say there's a para style called "style-1". ...
7
votes
1
answer
2k
views
Problems with Dynamic Text in SVG when font is not SVG
So, I have an graphics automation chain that has been happily running on a headless linux environment using programmaticaly generated/altered SVGs and PhantomJS (currently 1.9.0) as a final rendering ...
0
votes
2
answers
3k
views
How to convert an array of HTML colours into into a picture? [closed]
I have an array of colors, for example:
A=[['#ff00ff', '#00ff00', '#ffff00', '#00ff00', '#0000ff', '#00ffff', '#00ffff'],
['#0000ff', '#0000ff', '#00ffff', '#00ff00', '#ffff00', '#...
0
votes
2
answers
2k
views
Automatically resize an object by a percentage when a particular object style is applied to it
I work for an education company, and we deal with a good number of fractions when writing our publications. We currently use MathType to generate the fractions, which saves each fraction as a separate ...
7
votes
2
answers
2k
views
Ending a Photoshop script when no layers are selected
I've been working with a function I found on stackoverflow here that works as far as I can tell by grouping the layers, dumping layer names into an array then ungrouping them.
function ...
1
vote
1
answer
1k
views
How to change textframe creation order in Indesign
I am writing a script for Indesign. In that script I am taking the contents of the text frames and save them to a database. Till here my script works. However when looping between text frames script ...
2
votes
1
answer
4k
views
Indesign script (Javascript) to return/select words around insertion point
Consider the following text:
She sells sea shells.
Say my insertion point is currently at a blank space between two words, i.e.
app.selection[0].characters.length < 1
I need to select or return ...
-3
votes
2
answers
680
views
Alternatives to jQuery for simple, backwards compatible, client-side website animations? [duplicate]
I was recently looking for an alternative JavaScript animation library, because for the few simple animations I wanted, a ~200kb jQuery library is not the best option.
After a bit of searching, I ...
1
vote
2
answers
5k
views
How to create a responsive sprite sheet animation in css?
i've been trying to do this for hours but so far i haven't made any progress.
I have a site with a few animations in it, some will be activated on click and some on hover. something similar to the ...
7
votes
2
answers
3k
views
Long Shadow Effect in SVG for Web
Basically I'm wondering if anyone has any ideas on how to efficiently get a long shadow effect with an SVG: Example Image
My three ideas on how this might be possible:
Hella detailed gradient map, ...
5
votes
2
answers
479
views
Talking about front end web development frameworks from a designer's perspective
I am a web developer working at a company where the front end framework we have selected is Angular JS. I am now in the position where I am the 'resident expert' whatever that means. I have been ...
0
votes
2
answers
271
views
Learning how to design a webpage from code, with examples in CSS3, Python, etc [duplicate]
Possible Duplicate:
Tips and sources for beginning designers
I am now completing my first website written in Python. I started learning front-end development languages such as JavaScript and CSS.
...