Saturday, July 29, 2006

Lesson 3: Value

In this lesson, we are going to explore the term value.

In short, value returns (or "gives you") the current value of whatever parameter which with you are working.

So, if we were to use the following expression on opacity:

value + 5

The opacity is still modifiable, because the expression is getting the current value of the parameter as is, and then adding 5 to it. value always leaves your parameter modifiable, but with the ability to combine different calculations with it.

For example, using our simple Opacity scenario, try adding the following expression:

This will result in opacity gradually increasing the opacity over time. But unlike before, you'll notice that we can now modify the value of Opacity. Why is that?

The term value is the current parameter value, as is. This we can change as we please. To this, we add the time.

If we only used the term time, opacity would increase by 1 for every 1 second that passes in the composition, and we would not be able to change the value

So, for an example, let say we wanted to create a name banner that we can move around as we please, but still had movement of its own generated with expressions.. value would allow this flexibility.

Remember my awesome train drawing?

 

value, when used with an array will have multiple values. To work with these values, we need to specify what value we want. The way we do this is with the [0], [1], etc. Don't forget that it is ZERO that is the first number, not one. So what we would call the first value would be:

value[0]

Second value would be:

value[1]

And so forth.

So, considering the following example, try to predict what would happen.

The X value is free to roam. We can change that to whatever we want, but Y is fixed. So, we've constrained the movement of this object to the X axis.

t is an increasing value equal to time multiplied by 50.

x is still modifiable, with value[0], but it is increasing because we are adding t and makes the solid move from left to right across the screen.

y is still locked in at 200.

Notice the semicolons. If you aren't sure when to add a semicolon, add a semicolon. It's just a Javascript thing, and you'll never do any harm in adding a semicolon at the end of a line.

How would we get this to stop at a value? That gets into checking our values with an if/else statement which we will do next time.

Also, some suggested reading:

Dan Ebbert's explanation of Array math

I could spend hours coming up with an explanation of array math and not do as good a job as Mr. Ebberts. You'll notice some new things like position[0] which I haven't described. I wanted to start with value first, as it is more universal and requires fewer terms for you to remember. In short, value[0] on position is exactly the same as postion[0]. We'll get to that next time.

49 Comments:

Blogger callwizard said...

thanks a lot for making this easier for us.i have tried learning scripting earlier from other sites which made me think that scripting is not for me...thnx to u,u made it easier..

5:43 PM  
Blogger Ruben said...

Yes this is really helpfull. I'm not a scripter, but a motiondesigner and expressions are really helpfull getting faster to what you want. So thank you for explaining that simple.

3:26 AM  
Blogger Unknown said...

Man you Rock!

Am doing video tutorials on AE Scripts. I need your permission to share some of your informations in my video tuts.

You can check out my AE Scripts video tutorials at

www.aruntuts.blogspot.com

1:48 AM  
Blogger Unknown said...

Essay forming is most basic in school life of every understudy. The understudy needs to do distinct examination on the subject that they picked. Nevertheless, it is unreasonable by an understudy. If anyone gets weakness while doing the paper contact top essay writing service. There you get best course of action.

11:04 PM  
Blogger sindhu said...

Excellent and very cool idea and the subject at the top of magnificence and I am happy to this post..Interesting post! Thanks for writing it. What's wrong with this kind of post exactly? It follows your previous guideline for post length as well as clarity..

CRO Agency in Chennai

2:34 AM  
Blogger Unknown said...

You make it entertaining and you still manage to keep it up great.

Free Apk Store

2:09 PM  
Blogger Unknown said...

Expressions usually have different meanings and it is usually good for everybody to learn about expression. The after-effect expressions show the cause of a phenomenon and help the viewers to understand the situation. This is a very educative blog and it actually carries information with a lot of impacts. Keyword Research Service

2:02 AM  
Blogger Unknown said...

Wow, after reading this article I can proudly say that I am knowledgeable on the subject of value return. Additionally, the article is very short hence the reader does not strain to finish reading it. I hope this information will reach out to a lot of online users so that they can improve their value. Consequently, students can increase their academic value by clicking on Well Referenced to access our writing services.

4:45 AM  
Blogger Ancy merina said...

This comment has been removed by the author.

1:17 AM  
Blogger Unknown said...

Thanks for sharing the useful blog information post.

Salesforce Training institute in noida

Hadoop Training in Noida

Digital Marketing Training Institute in Noida

Digital Marketing Training in Noida

11:57 PM  
Blogger Unknown said...




Webtrackker is one only IT company who will provide you best class training with real time working on marketing from last 4 to 8 Years Experience Employee. We make you like a strong technically sound employee with our best class training.


WEBTRACKKER TECHNOLOGY (P) LTD.
C - 67, sector- 63, Noida, India.
F -1 Sector 3 (Near Sector 16 metro station) Noida, India.
+91 - 8802820025
0120-433-0760



Best SAS Training Institute in delhi

SAS Training in Delhi

SAS Training center in Delhi

Best Sap Training Institute in delhi

Best Sap Training center in delhi


Sap Training in delhi

Best Software Testing Training Institute in delhi

Software Testing Training in delhi

Software Testing Training center in delhi


Best Salesforce Training Institute in delhi


Salesforce Training in delhi

Salesforce Training center in delhi

Best Python Training Institute in delhi

Python Training in delhi

Best Python Training center in delhi

Best Android Training Institute In delhi

Android Training In delhi

best Android Training center In delhi

5:34 AM  
Blogger svrtechnologies said...

To improve Knowledge about the latest and vital technology would increase one's self esteem to the core at the time of lagging confidence.The content presented here is quite resembling the same. You have done a great job by sharing this in here.
sap training

11:06 PM  
Blogger simbu said...

This is such a good post. One of the best posts that I\'ve read in my whole life. I am so happy that you chose this day to give me this. Please, continue to give me such valuable posts. Cheers!
java training in chennai | java training in bangalore

java online training | java training in pune

selenium training in chennai

selenium training in bangalore

11:55 PM  
Blogger ganga pragya said...

This comment has been removed by the author.

11:45 PM  
Blogger sunshineprofe said...

I and my friends were going through the nice, helpful tips from the blog then the sudden came up with an awful suspicion I never expressed respect to the website owner for those secrets.
safety courses in chennai

11:55 PM  
Blogger Mounika said...

I have visited this blog first time and i got a lot of informative data from here which is quiet helpful for me indeed. 
python training in chennai
python training in Bangalore
Python training institute in chennai

3:33 AM  
Anonymous Anonymous said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Devops training in sholinganallur
Devops training in velachery
Devops training in annanagar
Devops training in tambaram

6:21 AM  
Blogger gowthunan said...

My partner and I stumbled over here different website and thought I might as well check things out. I like what I see so now I’m following you. Look forward to checking out your web page repeatedly.
fire and safety course in chennai

3:25 AM  
Blogger prabha said...

This is a terrific article, and that I would really like additional info if you have got any. I’m fascinated with this subject and your post has been one among the simplest I actually have read.
angularjs Training in marathahalli

angularjs interview questions and answers

angularjs Training in bangalore

angularjs Training in bangalore

angularjs Training in chennai

automation anywhere online Training

4:58 AM  
Blogger Ranvijay Singh said...

nice post. Digital Marketing Training in Bhopal

9:59 AM  
Blogger rohini said...

Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
iWatch service center chennai | apple ipad service center in chennai | apple iphone service center in chennai | Apple laptop service center in chennai

4:58 AM  
Blogger jefrin said...

Very impressive thanks for sharing
blue prism training institute in chennai

12:21 AM  
Blogger rohini said...

Excellant post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
apple iphone service center in chennai | Mac service center in chennai | ipod service center in chennai | apple ipad service center in chennai | apple iphone service center in chennai

1:36 AM  
Blogger rohini said...

I have picked cheery a lot of useful clothes outdated of this amazing blog. I’d love to return greater than and over again. Thanks! 
apple iphone service center in chennai | apple ipad service center in chennai | apple iphone service center in chennai

3:39 AM  
Blogger Della said...

Walaupun untuk player pemula mengenal tutorial bermain poker tentunya amat penting agar mereka dapat bermain dengan lancar. Dan berikut ini beberapa tutorial dan faktor-faktor penting dalam bermain poker untuk pemula.
asikqq
http://dewaqqq.club/
http://sumoqq.today/
interqq
pionpoker
bandar ceme terpercaya
betgratis
paito warna terlengkap
syair sgp

2:42 PM  
Blogger شركة خدمات منزلية said...

شركة نقل اثاث بابها
كيف تختار أثاث مكتبي

عند القيام بعملية اختيار أثاث مكتبي يجب أن تعرف بعض الخطوات التي تساعدك في الوصول لأعلى كفاءة تناسب ذوقك ومكانك ومن هذة الخطوات
شركة نقل اثاث بابها
قياس المساحة المطلوبة للمكان : فالمساحة عامل مهم جدا عند اختيارك لأثاث مكتبي منظم ومرتب وهذة الخطوة مهمة حتى لا يكون المكان مزدحم والأثاث مزدحم ويكون غير مرتب مع بعضه البعض من هنا نقول أن الرسم التخطيطى المبدأى للمكان يساعدك فى عوامل كثيرة ,وذلك لأنك تكون على دراية كاملة بمقاسات الأثاث الذى ستقوم بوضعه فى مكتبك ,أو شركتك
شركة نقل اثاث بابها
الألوان :تعتبر الألوان من أهم الخطوات التي يجب اتباعها عند اختيار أثاث مكتبي وذلك لعدة عوامل من أهمها تنسيق الأثاث مع الدهانات التي تكون بالمكتب وذلك لأظهاره بشكل مناسب ولائق ومن هنا نقول أن تنسيق الألوان الدهان مع الأثاث يعتبر من الأساسيات شركة نقل عفش بابها,ولايمكن إهمال هذه الخطوة ,وعليك بالألوان البسيطة لأنها تكون عصرية وتظهر الملامح الكاملة للديكورات التى قمت بعملها فى مكتبك شركة نقل عفش بابها

12:06 PM  
Blogger preethi minion said...

awesome
inplant training in chennai
inplant training in chennai
inplant training in chennai for it.php
italy web hosting
afghanistan hosting
angola hosting
afghanistan web hosting
bahrain web hosting
belize web hosting
india shared web hosting

1:52 AM  
Blogger dras said...

nice post...
python training in chennai
internships in hyderabad for cse 2nd year students
online inplant training
internships for aeronautical engineering students
kaashiv infotech internship review
report of summer internship in c++
cse internships in hyderabad
python internship
internship for civil engineering students in chennai
robotics course in chennai

3:29 AM  
Blogger digital marketing training in noida said...


android training center in noida sector 63
digital marketing training center in noida sector 16
Ui Path training center in Noida
digital marketing training center in noida sector 18
linux training center in noida sector 15

11:51 PM  
Blogger digital marketing training in noida said...

python training in noida sector 62
linux training center in noida sector 63
android training center in noida sector 62
digital marketing training center in noida sector 15
python training in noida sector 63
sap sd training in noida

1:11 AM  
Blogger digital marketing training in noida said...

devops training in noida
Email marketing training course in noida sector 62
devops training in center noida
blue prism training center in noida
cloud computing training in noida sector 15
hadoop training center in noida

1:26 AM  
Blogger digital marketing training in noida said...

Email marketing training course in noida sector 62
devops training in center noida
blue prism training center in noida
cloud computing training in noida sector 15
hadoop training center in noida

3:12 AM  
Blogger digital marketing training in noida said...

python training in noida sector 15
sap sd training center in noida
linux training center in noida sector 62
Email marketing training course in noida sector 15
salesforce training in noida sector 63
openstack training in noida sector 15
machine learning training in Noida sector 62
salesforce training in noida sector 64
AWS training institute center in Noida sector 63
android training center in noida sector 15
salesforce training in noida sector 18

4:44 AM  
Blogger Joyal said...

Effective blog with a lot of information. I just Shared you the link below for ACTE .They really provide good level of training and Placement,I just Had Pega Classes in ACTE , Just Check This Link You can get it more information about the Pega course.

Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery

3:24 AM  
Blogger شركة زين لخدمات التسويق 01201726286 said...



شركة عزل خزانات بالقصيمهل تعاني من تسربات المياه في منزلك أو على الجدران أو الأسقف ، هل تقلق من ترك هذه المشكلة لشركة قليلة الخبرة والتسبب في تشققات وأضرار في المناطق المتضررة من تسرب المياه وعلاماتها ، لا تقلق ، مع قيام شركتنا باكتشاف تسربات المياه في المخبز ، يمكننا أن نطمئن إلى أن شركتنا لا تعاني من هذه المشكلة. افضل شركة كشف تسربات المياه بالقصيم
يمكن أن تسبب لك المنازل المتسربة العديد من المشاكل ، من أهمها ارتفاع فواتير المياه ، أو تآكل الطلاء ، أو العناصر الخرسانية في المباني ، أو حتى الصعوبات في المنزل نتيجة تفاعل الماء شركة كشف تسربات المياه بعنيزةمع مواد البناء على الجدران والأرضيات المصدر شركة عزل أسطح بالقصيم.
شركة عزل خزانات بالقصيم
تقدم شركتنا خدمات اخرى
شركة تنظيف خزانات بالقصيم
شركة كشف تسربات المياه ببريدة
شركة كشف تسربات المياه بالبكيرية






3:24 PM  
Blogger Novateja said...

General Cleaning Services in Andorra

When you allow a cleaner to enter your office space where the important documents of your business are saved, you should not want any random company to visit those spaces. Therefore, it is always important to choose a service provider of good reputation for business and commercial places that clean Andorra. Therefore, you should ask about the past and current customers of the company, your reviews, and your experience to learn what service you can expect from the company.

6:38 AM  
Blogger Dodit Tamko said...

Spot on with this write-up, I truly think this website needs much more consideration. I’ll probably be again to read much more, thanks for that info.

iMuslim
iMuslim.co.id
Fasion Muslim

2:51 AM  
Blogger Irene Berry said...

WONDERFUL Post.thanks for share..more wait..

Profile.ameba.jp
Information
Click Here
Visit Web

5:42 PM  
Blogger Laura Hilaca said...

I’m impressed, I must say. Really rarely do I encounter a blog that’s both educative and entertaining, and let me tell you, you have hit the nail on the head. Your idea is outstanding; the issue is something that not enough people are speaking intelligently about. I am very happy that I stumbled across this in my search for something relating to this.

Wisata Bandung
Bandoeng
Bandoeng.co.id

9:02 PM  
Blogger Gabriella Jackson said...

There are certainly a lot of details like that to take into consideration. That is a great point to bring up. I offer the thoughts above as general inspiration but clearly there are questions like the one you bring up where the most important thing will be working in honest good faith. I don?t know if best practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game. Both boys and girls feel the impact of just a moment’s pleasure, for the rest of their lives.

Visual.ly
Information
Click Here
Visit Web

12:01 AM  
Blogger StevenAustin said...

Youre so cool! I dont suppose Ive read anything like this before. So nice to find somebody with some original thoughts on this subject. realy thank you for starting This up. this website is something that is needed on the web, someone with a little originality. useful job for bringing something new to the internet!

Liburan
Libur.co
Ayo Liburan

1:17 AM  
Blogger Ranusingh said...

#KIIT #CONNECTProgram #OrientationProgram #2021AdmittedBatch #StudentsOf14Schools#AchyutaSamanta #Founder #KIITKISS #ProfHrushikeshaMohanty #ViceChancellor #KIITDU
KIIT CONNECT Program Orientation Program For 2021-Admitted Batch Students Of 14 Schools

10:47 PM  
Blogger 24vaishnavi said...

website devolopment company in indore

12:25 AM  
Blogger Hussey said...

Extraordinary Blog. Provides necessary information.
best selenium training center in chennai
​​best training institute for selenium in chennai

3:49 AM  
Blogger Mahi Agarwal said...

Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there!
Appreciate it

Government Jobs in Jharkhand | bsc 1st year result

10:47 PM  
Blogger Let2know said...

thank you for the blog proclaim buddy! maintain them coming... MS Office 2007 Download With Product Key Free

1:32 AM  
Blogger Beel Khan said...

HandBrake for PC is a free and open-source video transcoder developed by ... Also, for free software, the developers are providing constant updates Download Aplikasi Handbrake

7:14 AM  
Blogger Don Pedro said...

voy a contratar una limpieza por horas andorra

2:37 PM  
Blogger Don Pedro said...

os cuento mi experiencia con la empresa de limpieza la verdad todo fantastico limpiando mi despacho de video juegos os la recomiendo 100%

2:14 AM  

Post a Comment

<< Home