Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Dynamically change 3D light color based on pixel color

  • Dynamically change 3D light color based on pixel color

    Posted by David Lawrence on February 13, 2019 at 11:09 pm

    Hi All,

    This seems like something that should be possible but I’m having no luck with Google so perhaps someone here can help.

    I want to set the color of a 3D light dynamically, based on the color of a selected pixel (or pixel range) in another layer.

    Example – I have concert video footage with stage lights. I want to create a new 3D light that matches the color of the stage lights as they change.

    How would you set something like this up?

    Thanks for your help!

    –dhl

    _______________________
    David Lawrence
    art~media~design~research

    linkedIn: https://lnkd.in/Cfz92F
    vimeo: vimeo.com/dlawrence
    web: propaganda.com
    facebook: /dlawrence
    twitter: @dhl

    David Lawrence replied 7 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Oleg Pirogov

    February 14, 2019 at 1:20 am

    As far as I understand it, sampleImage method does exactly what you need.
    This goes to light’s color property expression:

    thisComp.Layer("Concert Video Footage Layer").sampleImage(SELECTED_PIXEL_COORDINATES, radius = [.5, .5], postEffect=true, t=time)

    radius allows you to set a pixel range.

  • David Lawrence

    February 14, 2019 at 5:19 am

    Perfect. Thank you Oleg! ????????

    _______________________
    David Lawrence
    art~media~design~research

    linkedIn: https://lnkd.in/Cfz92F
    vimeo: vimeo.com/dlawrence
    web: propaganda.com
    facebook: /dlawrence
    twitter: @dhl

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy