Max Script|控制攝像機

來源:互聯網
上載者:User

標籤:

記錄控制攝像機部分指令碼寫法
-特性中的角括弧<>行全部來自官方文檔說明-只需參考值的類型及具體用法即可

targetcamera pos:[-150,100,350] target:[targetobject pos:[0,0,20] isselection:on]--建立目標攝像機 位置  目標點位置 並選中

特性:

$.Fov = 60                                         <camera>.curFOV Float default: 45.0 -- float        --水平視野修改$.fovtype = 1\2\3                                  <camera>.fovType Integer default: 1 -- integer--水平、垂直、對角線$.orthoProjection = true                           <camera>.orthoProjection Boolean default: false--開啟,如果啟用,攝影機視圖看起來就像使用者視圖$.type #free                                       <camera>.type Name default: #free --修改攝像機類型為free--攝影機的類型:--#free-自由攝影機 (視圖可以在任意方向進行設定的目標)--#target-目標攝影機 (相機將始終對齊與目標對象的視圖)$.showCone = on<camera>.showCone Boolean default: false                                    --顯示攝像機錐形光線(四稜錐)【錐形光線出現在其他視口但不顯示在攝像機視口中】$.showHorizon = on<camera>.showHorizon Boolean default: false                                     --顯示地平線【條深灰色的線條顯示在攝影機視口中的地平線層級。】$.nearrange 0.9<camera>.nearrange Float default: 0.0 -- animatable; alias: Near_Env_Range --近距範圍的大氣效果$.farrange 10<camera>.farrange Float default: 1000.0 -- animatable; alias: Far_Env_Range --遠距範圍的大氣效果$.clipManually = on<camera>.clipManually Boolean default: false --啟用可定義剪下平面。--禁用手動剪下後,將不顯示攝影機的幾何體更接近小於 3 個單位$.nearclip 5.0<camera>.nearclip Float default: 1.0 -- animatable, alias: near_clip --更近的對象比與近剪裁平面是不可視的攝影機。$.farclip 500<camera>.farclip Float default: 1000.0 -- animatable, alias: far_clip --比遠距剪下平面遠的對象是不可視的攝影機。$.showRanges = On<camera>.showRanges Boolean default: false --顯示變為黃色,在要顯示的近和遠距範圍的設定的攝影機的錐形光線內的矩形。$.targetDistance = 300<camera>.targetDistance Float default: 160.0 -- animatable, alias: Target_Distance --設定一個點,用作不可見目標$.mpassEnabled = On<camera>.mpassEnabled Boolean default: false -- boolean; MultiPass_Effect_Enabled --啟用/禁用的多過程攝影機效果$.mpassRenderPerPass = On<camera>.mpassRenderPerPass Boolean default: false -- boolean--啟用/禁用渲染過程選項

常用的攝像機屬性就這麼多,如果有拓展請自行尋找官方手冊!

Max Script|控制攝像機

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.