FORUMS: list search recent posts

Dynamically change 3D light color based on pixel color

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Lawrence
Dynamically change 3D light color based on pixel color
on Feb 13, 2019 at 11:09:06 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: http://lnkd.in/Cfz92F
vimeo: vimeo.com/dlawrence
web: propaganda.com
facebook: /dlawrence
twitter: @dhl


Return to posts index

Oleg Pirogov
Re: Dynamically change 3D light color based on pixel color
on Feb 14, 2019 at 1:20:51 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.


Return to posts index

David Lawrence
Re: Dynamically change 3D light color based on pixel color
on Feb 14, 2019 at 5:19:41 am

Perfect. Thank you Oleg! 😊👍

_______________________
David Lawrence
art~media~design~research

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]