日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

word文本样式代码样式_使用文本样式表达创建真相来源

發布時間:2023/12/9 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 word文本样式代码样式_使用文本样式表达创建真相来源 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

word文本樣式代碼樣式

As of After Effects 17.0, you can use expressions to edit text styles in After Effects. Here’s why this would transform your workflow:

從After Effects 17.0開始,您可以使用表達式在After Effects中編輯文本樣式。 這就是這將改變您的工作流程的原因:

  • Title Design: Link multiple text layers to one source of truth, for consistency and precision.

    標題設計:將多個文本層鏈接到一個事實來源,以保持一致性和準確性。
  • Save time: Don’t waste your precious mental energy and hours of the day clicking into individual text layers, Character and Paragraph panels, or even expression sliders controlling your text.

    節省時間:不要浪費您寶貴的精力和一天中的幾個小時單擊單個文本圖層,“字符”和“段落”面板,甚至控制文本的表達滑塊。
  • Create Motion Graphics Templates (mogrts): Link your source(s) of typographic truth to the Essential Graphics panel, so that you or others can edit them with flexibility in After Effects and Premiere.

    創建運動圖形模板(遷移):將印刷真相源鏈接到“基本圖形”面板,以便您或其他人可以在After Effects和Premiere中靈活地對其進行編輯。
  • Example:

    例:

    You have three text layers. You want to maintain the same styling and source text for all, but you want to control Paragraph Alignment in the Essential Graphics panel.

    您有三個文本層。 您希望為所有對象保留相同的樣式和源文本,但是要在“基本圖形”面板中控制“段落對齊”。

    For the skeptics: Yes, you can manually change the paragraph alignment, but you’re likely pushing the same copy to multiple comps at various sizes. The After Effects gods gave us new features so that maybe we can work more precisely and intelligently. Keep things simple for simpler projects, and go a little complex for more complex projects.

    對于懷疑者:是的,您可以手動更改段落的對齊方式,但是您可能會將同一副本推入各種大小的多個伴奏中。 After Effects神靈為我們提供了新功能,以便我們可以更精確,更智能地工作。 對于較簡單的項目,請保持簡單;對于較復雜的項目,則應使它變得有些復雜。

    Recipe:

    食譜:

  • Use expressions to link the three text layers to one master text layer (your source of truth).

    使用表達式將三個文本層鏈接到一個主文本層(您的真相來源)。
  • Create a Dropdown Menu Control with Paragraph Alignment options.

    使用段落對齊選項創建一個下拉菜單控件。
  • Add this expression to each of the three text layers:

    將此表達式添加到三個文本層中的每個:

    var t = thisComp.layer("MASTER TITLE").text.sourceText; var fontSize = t.style.fontSize; var leading = t.style.leading; style = t.style; styleA = style.setFontSize(fontSize); styleB = styleA.setText(t); styleC = styleB.setLeading(leading);

    var t = thisComp.layer("MASTER TITLE").text.sourceText; var fontSize = t.style.fontSize; var leading = t.style.leading; style = t.style; styleA = style.setFontSize(fontSize); styleB = styleA.setText(t); styleC = styleB.setLeading(leading);

    Explanation, line by line:

    逐行說明:

    var t = thisComp.layer("MASTER TITLE").text.sourceText;

    var t = thisComp.layer("MASTER TITLE").text.sourceText;

    Declare a variable, t, and return the value of your master text layer’s sourceText.

    聲明一個變量t,并返回主文本層的sourceText的值。

    var fontSize = t.style.fontSize;

    var fontSize = t.style.fontSize;

    Declare a variable, fontSize, and return the fontSize of t.

    聲明一個變量fontSize ,并返回t的fontSize。

    var leading = t.style.leading;

    var leading = t.style.leading;

    Declare a variable, leading, and return the leading of t.

    聲明一個變量, leading ,并返回t的領先。

    style = t.style;

    style = t.style;

    Adding style to the end is the same as using getStyleAt(0); which means to get the style of t at Character Index 0. You can also use getStyleAt(n, x); to return the Character Index at Time (n = character index, x = time in seconds).

    最后添加style與使用getStyleAt(0); 您也可以使用getStyleAt(n, x);來獲取字符索引0處的t樣式getStyleAt(n, x); 返回時間的字符索引(n =字符索引,x =以秒為單位的時間)。

    The variables styleA, styleB, and styleC combine Set Functions using the variables we declared above: fontSize, sourceText, and leading. I’ve separated each style for clarity, but you can also write everything in longform.

    變量styleA,styleB和styleC使用我們上面聲明的變量fontSet,sourceText和Lead組合了Set函數。 為了清楚起見,我將每種樣式分開,但您也可以用長格式編寫所有內容。

    Now that we’ve linked the text layers to a single style, let’s create a Dropdown Menu Control so that we can access Left, Center, or Right paragraph alignment in the Essential Graphics Panel.

    現在,我們已經將文本圖層鏈接到一個樣式,現在我們創建一個下拉菜單控件,以便我們可以在Essential Graphics Panel中訪問Left,Center或Right段落對齊方式。

    Use this expression on the opacity of your text layers (but make sure their visibility is still turned on):

    在文本圖層的不透明度上使用此表達式(但請確保它們的可見性仍處于打開狀態):

    var x = thisComp.layer("CONTROL").effect("paragraphAlign")("Menu").value; if (x == 1) 100; else 0

    var x = thisComp.layer("CONTROL").effect("paragraphAlign")("Menu").value; if (x == 1) 100; else 0

    Explanation, line by line:

    逐行說明:

    var x = thisComp.layer("CONTROL").effect("paragraphAlign")("Menu").value;

    var x = thisComp.layer("CONTROL").effect("paragraphAlign")("Menu").value;

    Declare a variable x, and return the value of a Dropdown Menu Item. The value of a Dropdown Menu item is always a number, even if you rename the label.

    聲明一個變量x,并返回一個下拉菜單項的值。 即使重命名標簽,“下拉菜單”項的值也始終是數字。

    if (x == 1) 100; else 0

    if (x == 1) 100; else 0

    If x is equal 1, the opacity will be 100. Otherwise, it will be zero.

    如果x等于1,則不透明度將為100。否則,它將為零。

    Note that you may encounter the triple equals operator, or the strict equality operator, ===, e.g., x === 1. This operator is special because it tests for both value (e.g., 5) and type (e.g., number).

    請注意,您可能會遇到三重等于運算符或嚴格等于運算符=== ,例如x === 1 。 該運算符很特殊,因為它同時測試值(例如5)和類型(例如數字)。

    In this example, x === 1 will still work. However, if you type x === "1", then the test will return false because the Dropdown Menu item values are always numbers, not strings.

    在此示例中, x === 1仍然有效。 但是,如果鍵入x === "1" ,則測試將返回false,因為下拉菜單項的值始終是數字,而不是字符串。

    Done! Now read more about text styling expressions over at Adobe.

    做完了! 現在,在Adobe上閱讀有關文本樣式表達的更多信息。

    Originally published at https://bytanchan.com on March 21, 2020.

    最初于 2020年3月21日 在 https://bytanchan.com 上 發布 。

    翻譯自: https://uxdesign.cc/creating-your-source-of-truth-with-text-styling-expressions-ee38bebe7c35

    word文本樣式代碼樣式

    總結

    以上是生活随笔為你收集整理的word文本样式代码样式_使用文本样式表达创建真相来源的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

    主站蜘蛛池模板: 日韩有码一区二区三区 | gogo人体做爰大胆视频 | 岛国av免费 | 日韩字幕在线观看 | 国产成人精品无码高潮 | 日韩系列在线 | 亚洲成人77777 | 午夜激情福利 | 男人天堂社区 | 97夜色| 在线婷婷| 成人久久18免费网站图片 | 精东传媒在线 | 国产吧在线 | 国产盗摄精品一区二区酒店 | 国产中文字字幕乱码无限 | 潘甜甜在线 | 久久麻豆av| 欧美亚洲黄色片 | 男ji大巴进入女人视频 | 成人自拍视频网 | 中文字幕在线观看视频一区 | 久久一区二区精品 | 亚洲 日本 欧美 中文幕 | 婷婷色激情 | 日本黄色美女视频 | 韩国av中文字幕 | 99精品欧美一区二区三区综合在线 | 在线免费观看av不卡 | 99热影院| 中文字幕免费视频观看 | 九草在线观看 | www.欧美在线 | 国产精品桃色 | 国产自产精品 | 国产亚韩 | 成年人理论片 | 国产日韩视频在线观看 | 色版视频 | 波多野结衣av片 | av在线免费观看一区 | 亚洲av女人18毛片水真多 | 色老头免费视频 | 国产一级片在线 | 色播视频在线播放 | 国产a∨精品一区二区三区仙踪林 | 男女男精品视频网站 | 青青草自拍偷拍 | 成人激情开心 | 国产精品啪啪啪视频 | 在线网站黄 | 亚洲老老头同性老头交j | 九九爱国产 | 香蕉福利| 在线伊人网 | 黑人一级片 | 超碰97国产 | 欧美一级欧美三级在线观看 | 国产精品第七页 | 三级免费黄录像 | 日韩羞羞| 亚洲va欧美va国产综合久久 | 不卡中文字幕 | 亚洲品质自拍视频网站 | 性欧美在线视频观看 | 久操福利在线 | 岛国精品在线 | 国产无遮挡呻吟娇喘视频 | 亚洲另类图区 | 国产精品久久久久久一区二区三区 | 国产免费a | 免费裸体视频女性 | www.亚洲.com| 蜜桃视频中文字幕 | 毛片久久久 | 伊人国产女| 北条麻妃一区二区三区免费 | 亚洲国产精品毛片 | av资源首页| 色婷婷视频在线观看 | 在线成人小视频 | www国产无套内射com | 国产日韩免费视频 | 毛片一级免费 | 一级大毛片 | 青娱乐欧美 | 国产精品不卡一区 | 中文字幕在线观看免费视频 | a激情| 亚洲jizzjizz | 成人av资源站 | 免费网站污 | 凹凸国产熟女精品视频 | 欧美色人阁 | av激情四射| 欧美一区精品 | 中文字幕www| 婷婷玖玖| av天堂永久资源网 |