-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add to story with styles #44
Comments
I meant in addition to b.addToStory I often endend up having to writer helper functions, for being able to add things in a formated way to a story.
|
Okay. I get it. One thing about the function you wrote. Using the loop takes 0.5 to 0.9 seconds
|
Cool + WOW! I guess then there would be a lot of performance boost low hanging fruits in the basil core, as we almost never use this "better" way for manipulating the indesign doc e.g. |
I'll create an issue for that. |
Since we are touching this anyway, two further ideas to improve this method and make it more "basil like" and beginner friendly: 1) Skip the requirement to have a 2) Instead of an I remember when I started out, I had no idea how to use this method, although now I know it's super useful. @fabiantheblind, @b-g , what do you think? |
That aside, I don't get the method to work at all at the moment. Could somebody test this snippet for me and tell me, if it works? Does not do anything for me… #includepath "~/Documents/;%USERPROFILE%Documents";
#include "basiljs/bundle/basil.js";
function draw() {
var tf = b.text("This script …", 0, 0, 200, 200);
var story = tf.parentStory;
b.addToStory(story, " works!");
}
b.go(); Is it just me or is this broken in general? |
Nope. Does not work for me in CS6. Sounds like there is a lot of stuff broken. Needs an issue for each I think. |
I'm not sure about the switch to the index but I like the idea of having a
|
Tested the script in CC2015 and CC2014 on OSX 10.11.5 does not work. :-(
|
This would be great I think, and yes, of course we can also allow an If others like the idea, too, the question is, if we should then discontinue the We could still leave a I will create an issue for this. |
I would go for the warning. It still is a tool for education. I also think we should not leave a broken method in there. |
@b-g mentioned that there is no way to add something into a story. Please it a little bit more
The text was updated successfully, but these errors were encountered: