How can I set the Color property of Text+ via Python

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

estebanjgarcia

  • Posts: 46
  • Joined: Wed Jul 14, 2021 8:24 am
  • Real Name: ESTEBAN GARCIA

How can I set the Color property of Text+ via Python

PostWed Dec 07, 2022 3:32 pm

I tried a bunch of properties with no effect whatsover...
Im not sure what is the right property/properties and which is the accepted value range...

I've tried html hex values, decimal values, integer values....

Can someone shred some light over this?
Thanks...
Offline

estebanjgarcia

  • Posts: 46
  • Joined: Wed Jul 14, 2021 8:24 am
  • Real Name: ESTEBAN GARCIA

Re: How can I set the Color property of Text+ via Python

PostThu Dec 08, 2022 6:43 pm

Here is the solution for all of you who want to do the same...
It is weird ... you have to set 2 values: Blue1 and Green1

Here is for yellow:

tpl.Blue1 = 0
tpl.Green1 = 0.850980392156

Here is for red:

tpl.Blue1 = 0.166
tpl.Green1 = 0.166
Offline
User avatar

roger.magnusson

  • Posts: 3388
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: How can I set the Color property of Text+ via Python

PostThu Dec 08, 2022 9:39 pm

You set the RGB channels individually with decimal values from 0 to 1. For red it's just:
Code: Select all
tpl.Red1 = 1
tpl.Green1 = 0
tpl.Blue1 = 0

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], panos_mts, pperquin and 166 guests