for a while, I have been running various modifications of a stack that uses AE's constrainLinearCallBack handler to run a collection of constrainLinear-based sliders.
When it is working, it is brilliant. However, there is quite a high percentage of days on which code that has worked quite adequately the day before refuses to either run (i.e. constrained objects will not drag on their prescribed tracks) or to engage with debug mode (and thereby help me find what I have done wrong with the code).
Early on, I put it down to unfamiliarity with getting the AE stack and failure to get it functioning correctly. I believe this has been largely fixed using the "if animation Engine is not among the stacksInUse" chunk of code offered in the documentation intro. More recently, there have been several days when it will not enable dragging and will not engage with debug mode (whether using graphically applied or coded breakpoints). The preceding "openCard" handler engages fine (green editing field and stepping through lines of code) but the constrainLinearCallBack handler simply returns a "No errors occurred" on the errors tab of the code editor and does not generate the green editing field. Yesterday, I thought the problem with this had been overcome because whenever the green triangle would not engage debug mode, it could be made to engage by clicking on the stack interface that I am working on and clicking on a constrained item: the editing field became green and debugging could progress. However, today, what I believe is the same code is failing to respond with this approach.
Is there a common problem with AE stacks that I may be overlooking and which should be checked for? The "use me" box on the AE inspector is checked and a simple stack that I have generated with a single graphic and monstrously simple code
Code: Select all
on constrainLinearCallBack set the constrainLinear of image cat1Comp1 to 100,200,300,200 end constrainLinearCallBack