跳到內容

Local Time

輸出當前時間。

請注意,Local Time 主要是一個播放功能,因此可能不會始終按預期渲染到檔案。該值是「真實時鐘值」,因此如果渲染 150 幀需要 1 秒,那麼這 150 幀中的每一幀都將獲得相同的秒值。在此範例中,如果 Composition 的 Frame Rate 是 25fps,則輸出在播放中每 25 幀更新一次,而在渲染中每 150 幀才更新一次。

Frame Behaviour 可用於建立 ‘counter’。

Strength - 輸出的倍數。將其設定為 50% 將導致時間以一半的速度推進。

Mode - 選擇要輸出的時間單位:

  • Milliseconds through Second -
  • Seconds through Minute -
  • Seconds through Hour -
  • Seconds through Day -
  • Seconds through Week -
  • Seconds through Month -
  • Seconds through Year -
  • Minutes through Hour -
  • Minutes through Day -
  • Minutes through Week -
  • Minutes through Month -
  • Minutes through Year -
  • Day of the Week -
  • Day of the Month -
  • Day of the Year -
  • Month of the Year -

Output Mode -

  • Unit - 以單位/值的形式輸出時間。
  • Ratio - 以比率的形式輸出時間。例如,如果現在是一年的一半,則以 0.5 輸出 Day of the Year

Offset - 對輸出進行加減操作。

  1. 建立一個 Text Shape
  2. 使用 Text 屬性右側的 + 新增一個 String Generator
  3. Generator 設定為 Value
  4. 新增一個 Local Time
  5. Mode 設定為 Day of the Month
  6. 連接 localTime.id→stringGenerator.number。

如果今天是 8 月 11 日,Text Shape 將輸出 11