Can I get the name of a Colorgroup with George?

A forum dedicated to George scripting questions
Post Reply
User avatar
Lukas
Posts: 526
Joined: 14 Jan 2011, 11:15
Contact:

Can I get the name of a Colorgroup with George?

Post by Lukas »

Can I get the name of a Colorgroup with George?

Thanks in advance :)
  • Lukas Sketch Panel
  • TVPaint Pro 11.7.3
  • MacBook Pro 2018 macOS Ventura 13.4.1 + PC Windows 10
  • Wacom Cintiq 27QHD + Wacom Intuos4
  • YouTube.com/@ClubBaboo
  • YouTube.com/@FrameOrder
User avatar
Thierry
Site Admin
Posts: 2753
Joined: 07 Jan 2013, 08:28

Re: Can I get the name of a Colorgroup with George?

Post by Thierry »

Hey Lukas,

I think tv_LayerColor is the function you are looking for:

Code: Select all

tv_layercolor "getcolor" iClipId iColorIndex

Get color information of colors list of the given clip

[PARAMETERS]tv_layercolor "getcolor" iClipId iColorIndex

Get color information of colors list of the given clip

[PARAMETERS]
"getcolor"     string    The function (added in 10.0.8)
iClipId        int       The clip id (0 for the current) (added in 10.0.8)
iColorIndex    int       The color index (added in 10.0.8)

[RETURN]
oClipId oColorIndex oR oG oB oName

oClipId        int            The clip id
oColorIndex    int            The color index
oR oG oB       int int int    The color
oName          string         The name

[ERROR]
"error"    string    Missing parameter / no valid clip
Si votre question a trouvé réponse, marquez votre sujet comme Résolu.
If your question has been answered, mark your topic as Solved.
User avatar
Lukas
Posts: 526
Joined: 14 Jan 2011, 11:15
Contact:

Re: Can I get the name of a Colorgroup with George?

Post by Lukas »

Perfect! Thank you :)
  • Lukas Sketch Panel
  • TVPaint Pro 11.7.3
  • MacBook Pro 2018 macOS Ventura 13.4.1 + PC Windows 10
  • Wacom Cintiq 27QHD + Wacom Intuos4
  • YouTube.com/@ClubBaboo
  • YouTube.com/@FrameOrder
Post Reply