Forum Replies Created
-
AuthorPosts
-
David BlatnerKeymasterAh ha! Mercí! (Or is it mercì?)
OK, now there is no syntax error, but the script does not move any of my images to a different layer. Should the following move all the images to Layer 2?
var myLinks = app.activeDocument.links, L = myLinks.length;
while (L--) if (myLinks[L].parent.parent.parent.constructor.name != "Character" && myLinks[L].parent.parent.itemLayer.name != "Layer 1") myLinks[L].parent.parent.itemLayer = "Layer 2";
David BlatnerKeymasterThis should help (see the comments, also):
https://creativepro.com/how-to-make-the-file-extension-go-away-in-captions.php
David BlatnerKeymasterMichel, when you post code here, please use a the code html tag, or else the code get messed up (curly quotes, etc.)
However, I tried to clean this up and it still does not work for me:
var myLinks = app.activeDocument.links, L = myLinks.length;
while ( L– ) if ( myLinks[L].parent.parent.parent.constructor.name != "Character" && myLinks[L].parent.parent.itemLayer.name != "Layer 1" ) myLinks[L].parent.parent.itemLayer = "Layer 1";
I am getting an error that says:
) does not have a valueand the offending text is)
David BlatnerKeymasterSayed, I’m very happy that we have been able to be helpful to you!
Michel, do you wish to share your two lines of code?
David BlatnerKeymasterDoes the button work when you preview it in the Interactive EPUB Preview panel?
Does it work when you preview in the SWF Preview panel?
One possibility is to export the document as IDML, then open the IDML file and try exporting from that.
David BlatnerKeymasterThere is no way to keep them on one layer, but perhaps there could be a script to move them all to one layer. This script is similar, but it works on buttons: https://in-tools.com/article/scripts-blog/buttons-to-layer-script/
David BlatnerKeymasterKasra, I see your point! Yes, many companies “outlaw” add-ons. Oh well. I’m glad you are finding a good solution! :-)
David BlatnerKeymasterYes, Find/Change is a good solution. If you have a lot of these, you could use the findchangebylist script or the MultiFindChange add-on from automatication.com to do them all at the same time.
Personally, I think your avoidance of scripts and plug-ins is a little misguided. True, things can change in the future that break the workflow, but the productivity benefit is so great in using external tools that it is often worth the additional management.
David BlatnerKeymasterAcrobat has a concept of “Preview View” (On the Mac, the shortcut is Command-left-arrow to “Go Back”)
You should be able to attach a javascript to a button that triggers theapp.goBack();script, but I have not tried it.
David BlatnerKeymasterWhen you use the “multiple records per page” feature in Data Merge, you need to have just one frame (or one set of frames) that it will repeat over and over. I explain how to use data merge like this in detail in my course at Lynda.com or LinkedIn Learning.
David BlatnerKeymasterInteresting! Yes, maybe there is a way to do it with the Loop feature in Timing… seems tricky to do because you probably want each object to appear and then disappear. I still think I’d rather convert the PDFs to an animated GIF and run that. :-)
David BlatnerKeymasterI don’t think there is any way to do this in InDesign. The only looping animations I’ve seen are GIFs:
https://creativepro.com/animated-gifs-indesign.php
and
https://creativepro.com/combining-animated-gifs-with-indesign-animations.php
David BlatnerKeymasterGreat point, Colleen. I believe those kinds of strokes are different internally, in a way that we cannot see on the surface. For example, they’re not dashes, dots, or stripes. They’re more like those easter egg strokes — like woof, rainbow, or feet.
Strokes can be assigned as the default whenever you choose one when no objects are selected on the page. I agree that this can be very annoying!
-
AuthorPosts
