Silver Quill
Explorer
Silver Quill
Explorer
Activity
Mar 05, 2025
03:15 PM
Ah, success! Your suggestion about linking the anchor point ot the scale worked for one of the objects. Then I tried using the mirror effect twice to create duplicates that now move the way I wanted. Thanks for the idea!
... View more
Mar 05, 2025
02:04 PM
I do want to keep each layer a consistent size while changing the position. I experimented with the anchor point location and found that setting all the points to be at the composition's center was the least-bad outcome. I searched online a great deal before asking here and what I currently have is the best option I found. I would like to do this simply and if setting up a slider is a better option then I'd rather use that. Problem is I'm not very strong at scripting so I'm not sure how to start. Here is a screenshot of my expressions and the layout of one object. Scripts for both position and scale.
... View more
Mar 05, 2025
02:01 PM
Yes, it's located dead-center. I've also set the anchor points of all four objects to match.
... View more
Mar 05, 2025
12:29 PM
Hello all, I'm trying to create a target reticule effect where four separate objects converge on a central point. To do this, I've parented them to a null object and set up a script to work off the null's scale property. The initial setup The script I use is: pSc = parent.scale; x = value[1]*100/pSc[1]; y = value[0]*100/pSc[0]; [x,y]; I also use a separate script to maintain the child layers' scale, but that doesn't seem relevant to my struggle. The problem occures when I change the parent scale and the entire array moves in a uniform direction. Instead of converging on the center, I wind up displacing the array. The array after reducing the scale to -34. As far as I can tell, the object in the upper left is moving as I wish. It's the other three that need some kind of inversion, but I'm not sure how to modify the script to accomplish this. Any suggestions?
... View more
Jan 05, 2024
09:26 AM
Both expressions did the desired job and I'm going to tuck this info away for future projects. Mr. Gerard, your advice on the loop was spot on as looping keyframes did create a much smoother motion. I apprecaite both your insights and help for this rookie.
... View more
Jan 04, 2024
10:29 PM
3 Upvotes
Hello Everyone! I am trying to create a basic animation in which a character on a pogo stick is bouncing up and down. To do this, I used audio from a real pogo stick and the keyframe assistant to generate a slider that could help influence the Y positioning. Unfortunately, it moved my character completely off-screen and I realize that I need to create a custom expression to help center the object and let the audio slider influence the positioning. I have very little experience in creating expressions. There's more info available in this recording: Video link just in case: https://youtu.be/q-7pPgxgvns I'd welcome any insight!
... View more
Sep 23, 2022
10:30 AM
Oh wow! I didn't realize about the keyframes. Works great as soon as I added them. Further proof I need to learn about expressions and coding. I'll give the other script a go as well but this solves my challenge either way. Thank you!
... View more
Sep 23, 2022
09:54 AM
We're close but not quite there. The new expression works for the sliding control aspect but the tears are still fixed. Hopefully this newer screenshot is easier to read.
... View more
Sep 23, 2022
12:05 AM
I appreciate the expression template. Sadly, I wasn't able to impliment it correctly but I also realize that I'm making this more complicated than necessary. What if I added an expression to the time remap where the Slider's position (1 through 6) was the start point and the composition played for 29 frames before looping back to the same Slider point? That way, each expression would loop in blocks of 29 frames, which no one would notice unless the facial feature was likewise animated. I'm not very strong at scripting so I can only imagine modifying the LoopOut expression.
... View more
Sep 22, 2022
11:18 PM
Let's see what I can provide. The tears are indeed the 6th possible pose, though I can rearrange them. It runs for 29 frames before being intended to loop back to the first. I have a time remap going for the tears sub-composition, but I haven't done anything with it yet. I could always make the tears a separate comp. It's more for convenience if I can make it work within the larger comp and selectable by the slider.
... View more
Sep 22, 2022
09:07 PM
Hello, I'm attempting to create a rig for an animated character and am running into a problem with an animated sequence in a time-remapped composition. It may be easier to explain using this recording: Each facial feature has a one second in the composition. Appreciate any ideas. Thanks!
... View more
Feb 01, 2022
11:13 AM
1 Upvote
Ah, that did the trick and I'm happy to report the script works great! The only trick is that I misinterpeted the case sensitive aspect. If I write the group name all lower-case, it works great! Thank you, everyone, for your insight and patience.
... View more
Feb 01, 2022
10:12 AM
Thank you for that updated script! I think I've done something wrong in copying it as I get the same error as I did with the older code. I'm on a Mac Pro and have been using Text Edit to paste the text into a file and then change the extension to .JSX. I think something in this process is created unwanted code. Is there a better program I should use?
... View more
Jan 31, 2022
10:27 PM
I'm not sure I'm doing a good job of explaining myself. This GIF comes from the same site where I found that code, but it's over five years old. If the script registers the name "Featured Prdouct", it looks for any group with same name and toggles off the visibility. I don't know if running the script a second time would switch them back on.
... View more
Jan 31, 2022
10:23 PM
At it's most basic, I think a script could run once to make all the similarly-named groups visible, and if run again it would toggle them to be off. Ideally, such a script could include a prompt for the name, but that's even more advanced. Here's an example of a script I found online that comes close to the mark: // jshint -W118
// globals app
// jshint ignore:start
#target illustrator
#targetengine main
// jshint ignore:end
function loop(flag, layers) {
var groups, groupsCount;
var subLayers, subLayersCount;
var i1, i1l;
var i2, i2l;
// Loop over layers:
for (i1 = 0, i1l = layers.length; i1 < i1l; i1++) {
$.writeln('Layer: ', layers[i1].name);
// Get layer groups:
groups = layers[i1].groupItems;
groupsCount = groups.length;
// If there are nested groups:
if (groupsCount) {
for (i2 = 0, i2l = groups.length; i2 < i2l; i2++) {
$.writeln('Group: ', groups[i2].name);
// Does group match flag?
if (groups[i2].name.toLowerCase() == flag) {
// Flag matched, so toggle hidden attribute:
groups[i2].hidden = ( ! groups[i2].hidden);
}
}
}
// Get layer layers:
subLayers = layers[i1].layers;
subLayersCount = layers.length;
// If there are nested layers:
if (subLayersCount) {
// Call self and recurse:
loop(flag, subLayers);
}
}
}
if (app.documents.length > 0) {
// This script assumes you want to toggle visibility of “groups”
// with a name that matches first argument passed below.
loop(
'featured product', // Group name used to toggle visibility.
app.activeDocument.layers
);
} So using my own file as an example, I could change the script name to 'Wave' and Illustrator would know to change the visibility on any grouped object that shared that name. I tried doing just that but Illustrator told me there was a Syntax Error on the first line. I don't know enough about coding to fix that.
... View more
Jan 31, 2022
04:51 PM
Hello everyone, I have a project that features a character with multiple facial features in labeled groups (glasses, hair wave, ect.). These same groups are present on every layer. To save on time I'm looking for a script that can toggle the visibility of a group by referncing its name. Sadly, I have very little experience with scripting myself and anything I've found online has possessed a syntax error. Does anyone know of a script that can achieve this?
... View more
Jan 17, 2021
10:04 AM
When I apply an opacity mask in Illustrator 2021 (version 25.1), I encounter a strange bug. The mask does apply but its effect is not visible. To fix this, I have to get out of the opacity mask and nudge the object over. Then the masking effect becomes visible. Though not a terrible problem, I don't like the idea of having to move things out of place and add an extra step to any process. Has this problem come up for anyone else? Video recording of the issue: https://tinyurl.com/yxhhq6t5
... View more