How to control light intensity with brightness of a composition target?

Hey there, I am very new to expressions in after effects CC and fight with it.

I have a feeling it's really simple.

I use ambient light in a 3D room to simulate a glow of TV on the walls of the room.

I have already created a mock-up of the target, "TvContent", which represents the video plays on tv. To do this, I used the effect of mosaic on a 1 x 1 .mov file. Thus, every frame of "TvContent" is a solid color different, created from this image of the .mov file. I've matched the color of the ambient light with the color of the 'TvContent' model, but it takes an expression that target the BRIGHTNESS value of 'TvContent' to determine the intensity of ambient light.

Furthermore, I would like to than the intensity value to HALF the brightness value. It's... when "TvContent" brightness is 40%, I would like to the intensity of the light at 20%

I hope I explained that well.
Any help would be much appreciated.
Thanks in advance!

-Bryan

Answer to my own question here, but in the case where someone else needed a helping hand, that's what I was able to find/adapt (.. .five hours later):

target = thisComp.layer ("TvContent");  TvContent is the layer of film

SamplePoint = [20,20];  an arbitrary point since my model of the target is the same color

SampleSize = [1,1];  all pixels are of the same color so I need only a sample of a pixel

Lum = rgbToHsl (. 5 * target.sampleImage (samplepoint, samplesize)) [2];

linear (lum, 0, 1, 20, 80)

Thanks to Kevin and this forum 8 years on CreativeCOW

-Bryan

Tags: After Effects

Similar Questions

  • With LabVIEW how to control an instrument with a RS232 output, using a USB RS232 converter cable.

    With LabVIEW how to control an instrument with a RS232 output, using a USB RS232 converter cable, since I do not have rs232 ports. I have two instruments I want for the control in this way. One is a guarantee of strength Imada SPAS with RS232 output. The other is a micrometer Panasonic HL-G103-S-J laser sensor which is RS422. I have done significant programming LabVIEW using GPIB, but I have no experience with devices such as these. No matter what tutorial or examples would be greatly appreciated.

    Thank you.

    When you plug the USB-RS-232 converter, it installs a driver under Windows which makes it look like any other RS-232 port.  You may need to install the driver of everything that came on the CD with the converter.  It will get a Com as Com5 port number according to what is the next available number.

  • How to control a VI (with a while loop and a structure of the event) from an another VI

    Hello

    I have the main VI which I want to be driven from an another VI. But I can't do that and I don't know what is happening.

    For example: VI main, I have a while loop with a structure of the event, there is a Boolean controller controlling a Boolean LED, which is inside the structure of the event. And the other VI, there is just a Boolean controller and functions of applications to open the main VI.

    How can I control the Boolean LED in VI main, changing the State of the Boolean controller in an another VI?

    Thank you.

    There are different options, but depending on what you want to do. For this example I can't give you a specific solution.

    I do not understand why you do what you do. Why do you call your 'principle VI' dynamically? What is the advantage to do? There are also other ways to call a VI dynamically, based on real cases (for example the method "call and forget", etc...).

    In you principle VI, control you Boolean ("THATCHER") is not the case of corresponding event. This is not usually a good practice, keep it inside.

    Also, why you try to communicate with the caller and callee VI through such a way to twist? There are better ways to do it.

    In one of my projects, I use the user event to launch orders in case of case of appellant VI.

    some Associates more readings for you:

    http://www.notatamelion.com/2015/03/23/how-to-make-dynamic-subvis/

    http://forums.NI.com/T5/LabVIEW/Dr-Damien-s-development-event-structures-III-communicating-with/m-p/...

  • How to control the gutter with the text of the fractionating column?

    We're going to make a text box and fill it with text. Then, select text, and in the Options bar, choose Split 2 to cut some of the text in two columns box.

    Question: How can we control the width of the gutter of these columns to split? (I tried a lot of things without success.)

    If you're on a Mac, try the Option by clicking on the icon to the left of the drop-Split/Span. It took me a while to understand this problem myself.

  • How to control Apple TV with an iPhone 4?

    My Apple TV 4th generation asks me my password for the 10th time and it drives me CRAZY!

    This new Apple TV does not work with the Remote app? What the hell Apple!

    Is there a way to type text using something else than this stupid remote? A keyboard?

    On screen keyboard is the only option for entering text on the ATV4. Only Apple knows if/when they intend to update the remote app, but as this is a users forum nobody can answer with certainty...

    How to disable guests of password on the 4th generation Apple TV

    Step 1: On your Apple TV, go in settings → accounts → iTunes and App Store password settings →.

    Step 2: In the section titled purchases and In - App purchases, choose the option require the password.

    Step 3: Now, set your preferred level of protection Never. You can also choose to always remember password for purchases or after 15 Minutes.

    Step 4: Also, select require password in the free downloads section and choose Never to disable guests of password when downloading free applications on the App Store.

    Tip: If you set require the password never to step 3, it will not be an option for this setting.

  • PB how to control a VI with connectors

    Hello

    I have create a VI and I try to control it with connectors but I do not have a good result, I would like to know what is the best way to do it.

    I used references, connectors or variable, but I never order a VI I don't know the best way to to do, what I do and what I shouldn't do.

    The big problem I have is that my continue to run and the gel my while.

    I join my screws

    This package is the example to transmit the value by the Subvi by connector, reference and Globals.

  • How to control the film with its exported in the form of swl.

    I would like to add several films to a document, they throw on each other in the form of slideshow and I change for those who will be seen with buttons.

    It's not a problem, when I export the file as a swl. I can read it in the Explorer or chrome and I can see the movies, I can stop and change them between them. I can also see them in full screen, all these opportunities are important. The problem is the noise, he doesent stop while I stop the movie. If I change the sound of the first movie film is still hanging...

    What should do?

    iBooks on Mac/iOS and Readium for the work of Chrome very well with generated InDesign EPUB disposal fixed.

  • How to edit a map with a view that the target object?

    Environment: OWB 11 GR 2

    I imported several cards of our old OWB 10.1.0.4 environment that have a view as the target object. In this version if I wanted to make a change to the definition of the view, I want to update the map and an outgoing "balance" to the view and it would update the View object with the SQL update. I would then deploy the view and obviously not the card.

    I tried to do the same function in OWB 11 GR 2, but I have not yet found the thing. IMHO the documentation is very vague, weak, in this area, at least the many pages I've read.

    I opened the card for editing and when I select the view target object and look at the Properties window, the link to the SQL code is empty, even if this isn't the SQL code of the View object.

    I tried to use it out 'synchronize' in several different ways, but could not do any SQL appear in this properties link. I also noticed that the SQL code of the View object is now empty as well.

    What Miss me?

    Thank you very much!!

    -gary

    Hi Gary

    You use the 'create and link... ". "on the operator to see in the map (right mouse click on the operator for the menu option) and select a name and a module.

    See the blog post here that describes it well than its gr 10, 2 and 11 GR 1 material, but its exactly the same thing for 11 GR 2.
    http://blogs.Oracle.com/warehousebuilder/2007/07/what_is_new_in_11g_and_10203_f.html

    Create and link is like synchronize the first outgoing - if you can consider it, weird I know, but that's how.
    See you soon
    David

  • How to use the String with an external dispatchEvent event.target.name?

    ... I hope that the question of the title makes sense...

    On my stage, I have an external SWF loaded with a button. When you click the button dispatches the main event scene.

    On the main stage a listener can load a SWF it in a magazine called Gallery.

    The charger of the Gallery is also shared by the buttons on the main stage, who use the event.target.name chain to appeal to sovereign wealth funds with corresponding names.

    I use tweens to fade and, in the content of the Gallery when a key is pressed.

    --

    Loading of the FSV worked until I tried to create a universal function for the dispatchEvent buttons...

    The problem I have is that I don't know how to set the string to indicate to the newSWFRequest where the SWF file when triggered by external buttons.

    (I maybe do this wrong... but thought that the best way to load a SWF on the main stage from an external SWF was using dispatchEvent?)

    My code raises the event and the charger of the Gallery Faints, but then it does not find the new SWF:

    Error #2044: Unmanaged by the IOErrorEvent:. Text = Error #2035: URL not found.

    Please can someone help me understand how to make the point in the chain in the right direction? (I think that the errors only are in bold below)

    Code:

    var myTweenIn2:Tween;

    var myTweenOut2:Tween;

    var nextLoadS2:String;

    Listening external inclinometer shipped external event

    addEventListener ("contactStage", btnClickExtrnl);

    function btnClickExtrnl(e:Event):void {}

    nextLoadS2 =?

    myTweenOut2 = new Tween(gallery,"alpha",None.easeOut,gallery.alpha,0,0.2,true);

    myTweenOut2.addEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);

    }

    Function universal BTNS

    function tweenOutCompleteF2(e:TweenEvent) {}

    myTweenOut2.removeEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);

    myTweenOut2 = null;

    var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + nextLoadS2 + ".swf");

    myTweenIn2 = new Tween (Gallery, "alpha", None.easeOut, gallery.alpha, 1, 0.2, true);

    Gallery.Load (newSWFRequest);

    Gallery.x = Xpos;

    Gallery.y = Ypos;

    }

    Thank you.

    If this code is on the timeline of a child of the main timeline of your external swf add parent 3rd in two lines with parent.parent.

  • Satellite A210 - how to use the muldimedia with other than Media Player buttons

    Hello

    is it really not possible to use media keys (Play, Pause, FF) on top of my laptop for an application other than Windows Media Player?
    Is there a reason for this? I would like to control Winamp with this button.

    It seems quite sensless to restrict access to a SINGLE application of HUNDREDS available, a then it is the multimedia player that is not used by most people.

    I have the Satellite A210 Notbook.

    Can you tell my how to control my winamp with these buttons?

    Greetings from Robert

    Hello, Robert

    Unfortunately, there is no solution at the moment. If you check this forum, you will find several very interesting discussions on the multimedia buttons and Winamp player. The fact is that some people have found the solution for older models of laptops running Windows XP Home edition. Winamp has offered the plugin must be installed.

    We now have the new situation. Your laptop is running latest Vista OS and I didn t find any plugin that can help. Problem is that your laptop is designed for Windows Vista preinstalled OS contains all the necessary plugins for Windows media player running under the operating system preinstalled.

    Is any kind of restriction. With preinstalled operating system you can do what you want and if you can find a way to change it for that. You know very well that there are hundreds of different players in the market. You can't wait for Toshiba take a time and create a plugins for each other and satisfy customers around the world.

  • Satellite M100 with Debian - how to control the power and the cooling fan on

    Hey,.

    I M100 and I installed debian, works very well, but there is a problem.
    Cooling fan turns on the top speed of all time. I m not shy on unix.
    How can I control cooling fan?
    How to control the power to the laptop?

    Hi mate,

    have you ever heard of the toshutils? I highly recommend trying these tools. Just google for toshutils and you'll find a few nice applications. Should usually be included in the distribution you have, also, I would check with 'apt - get search toshutils.

    See you soon

  • have envy700 of hp with windows 8, how to control panel

    Need hp 700 with Windows 8. How to control panel

    Hello

    Windows 8.1 is much better this way. For Windows 8, please try:

    http://HOWTO.CNET.com/8301-11310_39-57570140-285/the-three-quickest-ways-to-open-the-control-panel-in-Windows-8/

    Kind regards.

  • How to get the temperature, light intensity, altitude height, proximity, rotation_matrix and vector of rotation?

    Can get acceleration, azimuth, pitch, roll, and gps information.But,Could not get temperature, light intensity, altitude height, proximity, rotation_matrix, and rotation vector.
    
    Can you help me to figure out that it is supposed to work or not?Whenever tried to get these values, always show "zero".My code is at below. Does something wrong or just these valuses do not support in the Native SDK 2.0 beta 3?
    
    if (sensor_is_supported(SENSOR_TYPE_TEMPERATURE)) {        /*         * If the device does not support accelerometer then notify the user,         * clean up and exit         */        sensor_set_rate(SENSOR_TYPE_TEMPERATURE, SENSOR_RATE);        sensor_request_events(SENSOR_TYPE_TEMPERATURE);
    
        }temperature= sensor_event_get_temperature(event);fprintf(f,"%7.3f\n", temperature);fprintf(f,"%ld%d, %7.3f
    
    Thank your attention.
    
    sensor_event_get_rotation_vector
    
    
    sensor_event_get_illuminance
    
    sensor_event_get_rotation_matrix
    
    
    
    sensor_event_get_proximity
    
    sensor_event_get_altitude
    
    
    
    SENSOR_TYPE_MAGNETOMETER = 1
          SENSOR_TYPE_GYROSCOPE = 2
          SENSOR_TYPE_ALTIMETER = 4
          SENSOR_TYPE_TEMPERATURE = 5
          SENSOR_TYPE_PROXIMITY = 6
          SENSOR_TYPE_LIGHT = 7
          SENSOR_TYPE_GRAVITY = 8
          SENSOR_TYPE_LINEAR_ACCEL = 9
          SENSOR_TYPE_ROTATION_VECTOR = 10
          SENSOR_TYPE_ROTATION_MATRIX = 11
    

    There's no proximity sensor, and I suspect that the light sensor is not exposed through this API to our applications immediately, similar to what you see probably with the temperature probe. There is also no separate altitude sensor. GPS provides elevation information. Some devices (Xoom?) use something like air pressure to measure altitude but the PlayBook is not that.

  • Windows 8.1 in Adobe Illustrator, I tried to copy my design & tried to paste it, but after sticking the image (file), now the color looks different, drive and lighter. So, kindly inform how to paste the file with 100% same resolution / color / appeara

    Windows 8.1 in Adobe Illustrator, I tried to copy my design & tried to paste it, but after sticking the image (file), now the color looks different, drive and lighter. So, kindly inform how to paste the file with 100% same resolution / color / appearance. Thank you.

    Hi GANESHKUMARAPILLAI CHRYSTELLE,.

    Here is a link for color management workflows in Illustrator.

    It is best to place the image instead of paste into Illustrator. When you paste the images they are in RGB color format. Make sure your document is a RGB file

    Click on these links for more information.

    Understand the workflow of the CC of individual course Illustrator color management: Advanced

    Creative Suite * keeping colors consistent

    Implement the print color management workflow. Illustrator, InDesign, Photoshop

    Concerning

    Scott

  • can anyone tell how to compare two documents with two controlled with the same mouse pointers

    can anyone tell how to compare two documents with two controlled with the same mouse pointers?

    Windows and OS X can only display a mouse pointer - it is created by the operating system, not the application.

Maybe you are looking for