×
热门分类
微信扫码登陆

QQ登录

只需一步,快速开始

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即加入SketchUp吧! 微信扫码登陆

x
SketchUp内部相机设置参数面板
screctcamera.jpg



今天有朋友问我,为什么他从国外网站上下载回来的模型打开后会有黑边,似乎SketchUp的主窗口被设置了宽高比,无论窗口比例如何变化,这个比例是锁定的。
我开始以为是在Style中加载了蒙板,但是打开朋友发过来的文件后发现该文件并没有设置蒙板。
这是个很有意思的现象,而且之前好像没人讨论过。立即上网查了很多资料后,终于发现了这里的秘密。


原来这里有隐藏的参数控制,修改宽高比参数,要先打开Window/RubyConsole面板,然后输入Sketchup.send_action10624回车,就可以弹出一个隐藏的摄像机命令面板。W/H参数就是宽高比设置参数,修改这里就可以解决问题了。这个面板还有一些参数,有兴趣的话自己调整下试试吧。
用了这么多年的SketchUp,竟然不知道它里面还隐藏着这么多秘密。
继续搜索还发现了很多send action代码:
# 10501: set view to Top
# 10502: set view to Front
# 10503: set view to Rear
# 10504: set view to Left
# 10505: set view to Right
# 10506: set view to Bottom
# 10507: set view to Axonometric
# 10510: set render mode to Wire
# 10511: set render mode to Hidden lines removal
# 10512: set render mode to Surfaces Shading
# 10513: set render mode to Transparency
# 10519: set camera to ortho (removes perspective)
# 10520: walk
# 10521: display the System Preferences dialog box (Files tab)
# 10522: removes axes display
# 10523: pan
# 10525: set the interactive eye height feature
# 10526: zoom window
# 10527: zoom extents
# 10529: zoom out 2
# 10531: toggle the Standard toolbar
# 10532: toggle the Camera toolbar
# 10533: display the Shadows Settings dialog box
# 10537: toggle the Views toolbar
# 10538: display the System Preferences dialog box (Display tab)
# 10545: toggle Color ByLayer
# 10546: toggle Shadows toolbar
# 10551: toogle Large icons
# 10576: toggle Render Mode toolbar
# 10596: set Render Mode to No Transparency (Preferences)
# 10597: set Render Mode to Wire (Preferences)
# 10598: set Render Mode to Transparency (Preferences)
# 10599: set Render Mode to Surfaces Shading (Preferences)
# 10600: set Render Mode to Texture (Preferences)
# 10601: set Render Mode to No Texture (Preferences)
# 10602: toggle Shadows
# 10603: toggle Profiles
# 10604: toggle Extension Lines
# 10605: toggle Jitter edges
# 21019: Hide Status bar and VCB
# 21020: Show Status bar and VCB
# 21022: Hide Status bar and VCB
# 21023: Display a Beam Info dialog Box ??????
# 21024: select the Measure tool
# 21031: select the Freehand Draw tool
# 21041: select the PushPull tool
# 21048: select the Move tool
# 21052: hide selected objects
# 21056: Create face with selected edges closed loop
# 21057: select the Protactor tool
# 21060: display Components Window
# 21061: toggle Draw toolbar
# 21063: toggle Model Bounding Box display
# 21065: select the Arc tool
# 21067: creat a new Page
# 21074: show the Materials Browser Window
# 21076: display the Preferences dialog box (Text activated)
# 21077: display the Tip of the day Window
# 21078: select the Paint Bucket tool
# 21080: display the Page Manager Window
# 21082: display the Macros Dialog Box ???????????????
# 21086: display the Components Browser Window
# 21094: select the Rectangle tool
# 21095: select the Polygon tool
# 21096: select the Circle tool
# 21098: open the Open Window
# 21100: select the Offset tool
# 21101: slect all objects
# 21112: open the Import Window
# 21124: launch the validity check tool
# 21126: select the Axes tool
# 21029: select the Rotate tool
# 21032: toggle Layer toolbar
# 21036: display the Save as Window
# 21037: launch the Web browser and go to @Last home page
# 21046: spin the model a full 360° and display report
# 21047: fast Pick Time report (?)
# 21049: open the Export model Window
# 21169: select the Position Camera tool
# 21170: display the Preferences, Tour Guide activated
# 21180: create a new Page just right of selected page
# 21200: display the Insert Image Window
# 21220: display Help Window
# 21222: launch the Web browser and go to @Last tutorials page
# 21233: display Area of selected face
# 21234: display Area of all faces with selected material
# 21236: select the Scale tool
# 21237: display the Export 2D Graphics Window
# 21245: display a Polygon Offset Factors dialog box (?)
# 21276: reverse selected face(s)
# 21287: select the Divide feature
# 21337: select the Section Plane Placement tool
# 21354: open the Layer Window
# 21386: open the Export Animation Window
# 21405: select the Text tool
# 21406: display Fog dialog box
# 21410: select the Dim tool
# 21433: toggle Edit toolbar
# 21442: select the FollowMe tool
# 21448: select the Axes tool
# 21453: select all objects
# 21460: display Licence
# 21462: display Authorization dialog box
# 21463: display un-authorizing message
# 21464: display Open Licence files (Network) Window
# 21466: display Quick reference Card in Adobe Reader
# 21467: display Licences in use dialog box
# 21469: zoom extents to selected objects
# 21476: perform a non-planar check on selected objects
# 21477: List accelerators in window
# 21485: Erase selected objects
# 21487: display Edit current material dialog box
# 21485: Erase all new created pages
# 21488: display Entity Info Window
# 21490: display Soften Edges Window
# 21491: display Profiles
# 21492: display Extended Edges
# 21493: display Jitter Lines
# 21494: select Field of view tool
# 21513: display a tree of the model with selectable items !!!
# 21520: Override Tile Rendering Size dialog box.
# 21525: select the FollowMe tool
# 21542: display the Insert Image Window
# 21560 and up: Unknown, causes a runtime Error

赞赏

4

查看全部评分

紫天SketchUp中文网志
sublog.net

精彩评论

文明上网理性发言、请文明用语

6

主题

121

帖子

20

红宝石

小黑屋

Rank: 26Rank: 26Rank: 26Rank: 26Rank: 26Rank: 26Rank: 26

红宝石
20
carrottj 2009-12-21 20:30:25
是Sketchup.send_action 10624,数字前面有个空格的,lz忘了写了,他的blog中是正确的

4

主题

1078

帖子

1

红宝石

SU入学(等级1)

Rank: 1

红宝石
1
A_T_S 2016-8-16 20:23:34
感谢分享

2

主题

864

帖子

6

红宝石

SU入学(等级1)

Rank: 1

红宝石
6
laofuzi0429 2014-9-15 21:39:29
天啊,SU竟有如此强大功能。

0

主题

49

帖子

0

红宝石

SU入学(等级1)

Rank: 1

红宝石
0
qq362131475 2012-4-14 01:22:21
为什么宽度和高度的数字没法改啊?。。。

142

主题

893

帖子

107

红宝石

SU学师(等级6)

Rank: 6Rank: 6

红宝石
107
srg778 2011-6-13 22:50:24
WH   在那啊怎么修改啊

9

主题

260

帖子

25

红宝石

SU有学(等级3)

Rank: 3Rank: 3

红宝石
25
星语新 2011-3-7 09:24:02
这个也被你发现了

6

主题

43

帖子

9

红宝石

SU入学(等级1)

Rank: 1

红宝石
9
shike555 2010-12-18 20:22:43
感覺很難呀

3

主题

1355

帖子

4

红宝石

SU入学(等级1)

Rank: 1

红宝石
4
张羿 2010-7-3 09:13:32
看起来很复杂的。

2

主题

430

帖子

14

红宝石

SU游学(等级2)

Rank: 2

红宝石
14
寒江孤叟 2010-4-11 19:27:55
超级经济实用贴~~~~~~

1

主题

37

帖子

0

红宝石

SU入学(等级1)

Rank: 1

红宝石
0
daoxuan222 2010-3-20 21:09:05
正好对相机有些问题不懂

1

主题

37

帖子

0

红宝石

SU入学(等级1)

Rank: 1

红宝石
0
daoxuan222 2010-3-20 21:08:31
感谢分享

130

主题

1888

帖子

326

红宝石

技术版主

Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40

红宝石
326

核心会员热心助人奖忠实粉丝金喇叭奖荣誉会员社区微博达人宝石收藏家

heixing 2010-3-9 20:58:34
感谢楼主
顺便bs论坛的拖油瓶功能
moo

0

主题

1

帖子

0

红宝石

SU入学(等级1)

Rank: 1

红宝石
0
moo 2009-11-24 17:49:17
Sketchup.send_action10624输入后面板没出来呢

84

主题

903

帖子

651

红宝石

SU智者(等级9)

Rank: 9Rank: 9Rank: 9

红宝石
651

核心会员宝石收藏家荣誉会员

fifd5202008 2009-10-5 15:49:50
这些参数是什么意思呢?那位能否翻译一下呢?

0

主题

144

帖子

21

红宝石

SU有学(等级3)

Rank: 3Rank: 3

红宝石
21

忠实粉丝

QQ
寻道 2009-10-5 15:12:51
现在要输出标准尺度比的图就方便多了

68

主题

2765

帖子

1520

红宝石

技术版主

许一世安逸

Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40Rank: 40

红宝石
1520

2012龙年春节团拜纪念邮忠实粉丝优秀版主摄影大赛 第三期 TOP5SuBAR_CLT汉化团队核心会员宝石收藏家热心助人奖金喇叭奖荣誉会员

QQ
水墨纵横 2009-10-5 11:54:00
很多人,碰到这个问题,谢谢了。

赞赏

1

查看全部评分

高级模式
您需要登录后才可以回帖 登录 | 立即加入SketchUp吧! 微信扫码登陆

本版积分规则

Arc

SU特供版

  • 主题

    96

  • 吧币

    74990

  • 红宝石

    1216

关闭

站长推荐上一条 /1 下一条

发布主题 快速回复 返回列表 客服中心 搜索 官方QQ群
关于我们/小黑屋/手机app/国土人/SketchUp吧 /京ICP备16008035号/