Comments (1)
Comment by Nico-Duduf
Monday Sep 26, 2016 at 20:10 GMT
For example, I use this expression (pre-DUIK 15) for an auto-overlap in some characters curls and skirts.
amp =thisComp.layer(1).effect("AMPLITUDE")("Slider");
freq =thisComp.layer(1).effect("FREQ")("Slider");
decay =thisComp.layer(1).effect("DECAY")("Slider");
n = 0;
compFather=thisComp.layer(1).name;// Dynamic Parent Comp (so I could change the name of the layer and therefore the referenced comp. Perhaps is obsolete now with some new DUIK implementations);
p=comp(compFather).layer("CENTER").effect("ROTATION")("Slider");
if (p.numKeys > 0){
n =p.nearestKey(time).index;
if (p.key(n).time > time){
n--;
}}
if (n> 1){
t = time - p.key(n).time;
div=(p.key(n).time-p.key(n-1).time)/3.2; // Makes an average out of two measures so it springs even if the keys are Eased
durA=p.key(n-1).time+div;
durB=p.key(n).time-div;
v = (p.velocityAtTime(durA)+p.velocityAtTime(durB))/2;
x=value[0] + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
x=value[0];
}
[x,value[1]];
from duik.
Related Issues (20)
- issue with the "Add List" tool HOT 1
- issue with the "Snap Keys" tool | animation panel HOT 1
- Script Failure Installing HOT 2
- issue with the "Snap Keys" tool | animation panel
- rename solids in project panel based on solids' color, resolution and other properties HOT 3
- Problème avec les sliders de easing HOT 1
- Procedural Animation & connector: dedicated layer for the effect
- Multiple connectors for specific keyframes
- Improving camera functions in the cameras panel
- Shifts improvement
- Change settings of multiple Comps at the same time
- Can you add the "delay child layer" option in Duik? HOT 1
- Duik — scrollable UI HOT 1
- Add "Knee" to the list of bone names (parented to the calf)
- Add a heel bone to the plantigrade/hominoid leg without toes
- Incorrect autorig without bones (standard arm)
- Add an "anchor offset" to the motion trail effect
- Glitching/flickering noodle-bones that has duplicated copy (via the Duplicate Bones tool) HOT 4
- issue with the "toggle expressions" tool HOT 2
- Improving the copy expression tool.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duik.