Skip to content

Commit

Permalink
Merge pull request #17 from pedrolabonia/lut_name
Browse files Browse the repository at this point in the history
Add get_lut() functionality to TimelineItem
  • Loading branch information
pedrolabonia authored May 15, 2022
2 parents bed2761 + ab339dd commit 75084c6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pydavinci/wrappers/timelineitem.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from typing import TYPE_CHECKING, Any, Dict, List, Union

from typing_extensions import Literal

from pydavinci.utils import is_resolve_obj
from pydavinci.wrappers.marker import MarkerCollection
from pydavinci.wrappers.mediapoolitem import MediaPoolItem
Expand Down Expand Up @@ -257,7 +259,7 @@ def mediapoolitem(self) -> "MediaPoolItem":

def set_lut(self, node_index: int, lut_path: str) -> bool:
"""
Sets lut located on ``lut_path`` at ``node_index``
Sets LUT located on ``lut_path`` at ``node_index``
Args:
node_index (int): node index
Expand All @@ -268,6 +270,18 @@ def set_lut(self, node_index: int, lut_path: str) -> bool:
"""
return self._obj.SetLUT(node_index, lut_path)

def get_lut(self, node_index: int) -> "str":
"""
Gets LUT at ``node_index``
Args:
node_index (int): node index
Returns:
str: LUT name. Example: ``'Sony/SLog3SGamut3.CineToLC-709TypeA.cube'``
"""
return self._obj.GetLUT(node_index)

def set_cdl(self, cdl: Dict[Any, Any]) -> bool:
"""
Sets CDL
Expand Down

0 comments on commit 75084c6

Please sign in to comment.