-
getting multiple objects to stay between two nulls…
I have two nulls and I’m trying to keep multiple objects between them both. I found this code that does it well for a ‘null 3’:
p1 = thisComp.layer(“Null 1”).position;
p2 = thisComp.layer(“Null 2”).position;
div(add(p1, p2),2);the problem is that I’m trying to do it for multiple objects so I thought I could ‘chain’ them, however, this leads things to ‘lock up’. This is my sample code for a ‘null 4’:
p1 = thisComp.layer(“Null 1”).position;
p2 = thisComp.layer(“Null 3”).position;
div(add(p1, p2),2);For some reason this new null, null 4, will not simply go between Null 1 and Null 3. I have no idea why not. Is my logic incorrect?