Questions tagged [basil.js]

basil.js is a bundle that ports the spirit of the Processing visualization language to Adobe InDesign

Description

basil.js is a scripting library that has been developed at the Visual Communication Institute at The Basel School of Design during the last nine months and is now made public as open-source. Based on the principles of “Processing”, basil.js allows designers and artists to individually expand the possibilities of Adobe InDesign in order to create complex projects in data visualization and generative design.

External link

36 questions
0
votes
3 answers

Manipulating image within Indesign frame

I am currently trying to figure out how to change the color of a bitmapped image within indesign using basil.js. Ideally I would like to place the image and use some sort fo post styling to change the color. var myImage = image('image_0009_10.psd',…
0
votes
2 answers

Swap Items using basiljs

I am pretty new to the whole basiljs world. So this might be a very basic question. I wasn't able to figure it out on my own however…  I am trying to create a simple script that swaps two Items that are selected on the same page. I was able to get…
0
votes
1 answer

Importing Data to InDesign from a CSV with basil.js

I'm trying to import a CSV into an InDesign document using basil.js. However, depending on the dataset, I will often get an error of: Javascript Error! Error Number: 21 Error String: undefined object is not an object Engine: main File:…
christopher
  • 137
  • 8
0
votes
0 answers

Zoom to cursor in photoshop, using extendscript or basil.js

Programmatically, is there a way to zoom in to the last clicked position in Photoshop, CS6, either with extendscript's JavaScript or with basil.j? The reference to basil.j (http://basiljs.ch/reference/) refers to b.atan2(y, x) and atan2 and may…
Steve Elster
  • 21
  • 1
  • 3
0
votes
1 answer

Basil.js and ExtendScript in Indesign / How can I style textFrames?

After the svg elements are placed/drawn in Indesign, I wanna change the style from some or all elements. In my example I style the textFrames while they are drawn. My example works. But how can I change the style after the textFrames are placed? I…
LolaRuns
  • 99
  • 1
  • 1
  • 8
0
votes
1 answer

Test for overflow text in basiljs

I'm new to basiljs and am wondering if it is possible to test whether text is overflowing from a textbox. So I want to write the code to: -create a text box, -drop some text into it, -tests if the text overflows - if so, create another text box…
tega
  • 3
  • 1
0
votes
1 answer

Can I use Basil.js to get images from a URL?

I am a novice user at ExtendScript, Basil.js & Javascript. After seeing the project http://basiljs.ch/gallery/ending-the-depression-through-amazon/ I wondered if it is possible to simply get the Basil.js Script/ Extendscript/Indesign to grab images…
James.TK
  • 27
  • 5
0
votes
1 answer

Indesign Script no longer printing output in Extend Script

My script runs fine but I don't see any output anymore in the javascript console. It looks like InDesign is no longer linked to it. Also normally InDesign would start up ExtendScript Toolkit but it no longer doest that. Is there a way to reenable…
clankill3r
  • 9,146
  • 20
  • 70
  • 126
0
votes
1 answer

set display performance for document

If I set my display performance and run a basil.js script then basil seems to override my display performance settings. What I would like at the end of the script is set the display performance settings to fast display. Is this possible?
clankill3r
  • 9,146
  • 20
  • 70
  • 126
0
votes
3 answers

get all methods and properties of an object

If I use (on a text frame): b.selection().fit(FitOptions.frameToContent); Then it works as expected, this means that the selected object has a fit method. If I use: for (var property in b.selection()) { b.println(property); } On the same…
clankill3r
  • 9,146
  • 20
  • 70
  • 126
0
votes
1 answer

set object style with basil.js

from basil cheatsheet: b.objectStyle(”myStyle”); // return or create style with given name But when I try it (on a text frame): b.selection().appliedObjectStyle = b.objectStyle("CAPTION"); Nothing happens. While this…
clankill3r
  • 9,146
  • 20
  • 70
  • 126
0
votes
1 answer

Can Basil.js use OSC to talk with other software?

Basil.js(basiljs.ch) uses processing like syntax to control javascript objects in Adobe's InDesign. I wonder whether there is or it is possible for Basil.js to talk with other tools through OSC. Please let me know! Thank you :)
0
votes
0 answers

can i use basil.js with Hebrew

im trying to run the attached script on Hebrew text (right to left) with no luck. Any ideas? Thanks, Ori http://basiljs.ch/gallery/alphabet-bars/
Ori
  • 1
0
votes
1 answer

How cut/crop an image and duplicate it in basil.js

I'm trying to do a script in basil.js to duplicate an image and cut/crop the image inside the frame. In the basil.js reference (http://basiljs.ch/reference/) I don't find a function to move the image inside the Indesign frame. #includepath…
newbleep
  • 13
  • 4
0
votes
1 answer

Is there a way to create a gradient in basiljs?

It's a pretty self-explanatory question. I am curious as to why there is no built-in function to create gradients. The only way I found to "fake it" is to create a series of lines or rectangles each with a unique color calculated with b.lerpColor. I…
ponsshin
  • 15
  • 2