2008-12-29 130 views

回答

8

在2008年的3ds Max和上面,你可以使用

viewport.setFOV 50.0 

要修改的視圖當前活動的視口的領域。

退房「訪問活動視信息,類型和變換」中的MAXScript幫助

所以:

Utility FieldOfView "Field of View" 
(
    slider fov "Field of View" pos:[17,43] width:128 height:44 range:[25,100,viewport.GetFOV()] type:#float 

    on fov changed val do 
    (
     viewport.setFOV val 
    ) 
) 

將創建常用的小工具,將調整當前視場活動視口。

MK:@MSITStore:C:\ PROGRAM%20Files \歐特克\ 3DS%20Max%202009 \幫助\ maxscript.chm ::/Accessing_Active_Viewport_Info_Type_and_Transforms.htm

+5

這是正確的答案。我是多年前把它寫入maxscript的人。 – 2010-07-14 03:41:03