<lightscenes> 元素
<lightscenes> 元素會對 Creo Illustrate「光照設定」(Lighting Setup) 清單中的所有光照設定進行定義。它包含一或多個子 <lightscene> 元素。<lightscenes> 元素沒有屬性。一個 XML 檔案只能包含一個 <lightscenes> 元素。
<lightscenes> 語法
<lightscenes>
<lightscene />
<lightscene />

<lightscene />
</lightscenes>
<lightscenes> 子元素
<lightscene>
光照設定元素。包含一個光照設定的內容。(請參閱<lightscene> 元素。)
<lightscenes> 範例
下面的 <lightscenes> 元素會在「光照設定」(Lighting Setup) 清單中建立兩個光照設定:
DEFSingle - 包含一個主要光源以及一個預先定義本地化名稱的單一光源設定。
TwoLights - 包含一個主要光源與一個補助光源,以及一個自訂的非本地化名稱的兩個光源設定。
<lightscenes>
<lightscene>
<name locid="DEFSingle"/>
<light name="key" type="direct" relative="view" />
<color />
<direction />
</lightscene>
<lightscene>
<name>TwoLights</name>
<light name="key" type="direct" relative="view" />
<color />
<direction />
<light name="fill" type="direct" relative="view" />
<color />
<direction />
</lightscene>
</lightscenes>
這是否有幫助?