Source Filmmaker

Source Filmmaker

85 个评价
Switch Camera Shortcut Script
   
奖励
收藏
已收藏
取消收藏
Universe: Original IP
Script
标签: SFM
文件大小
发表于
7.539 KB
2019 年 5 月 3 日 下午 7:40
1 项改动说明 ( 查看 )

订阅以下载
Switch Camera Shortcut Script

描述
This script adds two shortcut key to switch between cameras in the current shot.



How to use
  1. start the script under the script menu ->Custom Shortcuts->Switch Camera->enable_swich_camera
  2. the PgUp key will go to the next camera while the PgDown key goes to the prev

How to change the shortcut keys

close sfm first then open up the script file "SourceFilmmaker\game\workshop\scripts\sfm\mainmenu\Custom Shortcuts\Switch Camera\enable_swich_camera.py" in a text editor like notepad++. then at the end of the file you find on line 106 between in the quotes, the PgUp key. change that string to the key you want and the line 111 has the prev key shortcut.

do make sure that the new shortcut key is not already used by sfm to avoid issues.


Note
in order for this script to work it has to temp disable the sfm undo system to prevent a crash. so please experiment with this script in a new session to see if it works without issue and let me know of any problems.
Also activating the script more than once in a single open session will break the script for some reason.

shout-out to Fullcaber for suggesting this script idea


feel free to modify the script for your own use
if you find any bugs or have suggestions message me in the comments below.

Includes:
sfm\mainmenu\Custom Shortcuts\Switch Camera\add_swich_camera_at_startup.py
sfm\mainmenu\Custom Shortcuts\Switch Camera\enable_swich_camera.py
sfm\mainmenu\Custom Shortcuts\Switch Camera\remove_swich_camera_at_startup.py
13 条留言
Fullcaber 2019 年 5 月 14 日 下午 12:42 
hmm i must have
cause now it is working :O
OMG Theres A Bear In My Oatmeal!  [作者] 2019 年 5 月 14 日 下午 12:31 
@Fullcaber, when that happen did you clicked on the script more than once in the same session? cause that will break the script.
Fullcaber 2019 年 5 月 14 日 上午 11:52 
weird i got it work in one but now i seem to not get it work anymore i went to script- custom-add enable switch but the pgup and down dont seem to work hmm
Fullcaber 2019 年 5 月 10 日 上午 4:40 
Getting a shoutout Made me feel something... i never had a shoutout i feel....power.:steamhappy:
Fullcaber 2019 年 5 月 10 日 上午 4:36 
I am glad u made it :,D heh
Dragonalfa 2019 年 5 月 7 日 下午 1:18 
thanks a lot mate
that's the kind of script I wanted to do but i'm still learning Python so it's complicated xD
Ron Ducats 2019 年 5 月 6 日 下午 8:06 
I think that's just for hats and TF2 based models.
OMG Theres A Bear In My Oatmeal!  [作者] 2019 年 5 月 6 日 下午 3:17 
isnt that what doc's color script does?
Ron Ducats 2019 年 5 月 6 日 下午 3:07 
Hey this plugin is amazing! Heres a plugin idea. When we "Add override materials" on a model, we can easily change the color of a piece with a right click, instead of having to click "add vector 4" and have to type $color.
Ron Ducats 2019 年 5 月 6 日 下午 2:52 
Why 3 stars?