-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
147 changed files
with
27,163 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Execute Script in 3ds Max", | ||
"type": "shell", | ||
"command": "D:\\MXSPyCOM\\MXSPyCOM.exe", | ||
"args": [ | ||
"-f", | ||
"${file}" | ||
], | ||
"presentation": { | ||
"echo": false, | ||
"reveal": "never", | ||
"focus": false, | ||
"panel": "dedicated" | ||
}, | ||
"problemMatcher": [], | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
<!-- | ||
* @Description: | ||
* @Author: Bullet.S | ||
* @Date: 2019-11-10 12:36:47 | ||
* @LastEditors: Bullet.S | ||
* @LastEditTime: 2021-05-15 20:05:15 | ||
* @Email: [email protected] | ||
--> | ||
# BsKeyTools | ||
KeyTools for 3ds Max...About animation. | ||
## 帮助 | ||
https://space.bilibili.com/2031113 | ||
## 下载链接 | ||
[![BsKeyTools](https://img.shields.io/badge/BsKeyTools-LatestReleases-success?style=flat-square&logo=github)](https://github.com/AnimatorBullet/BsKeyTools/releases/latest) | ||
|
||
|
||
[![Q群](https://img.shields.io/badge/交流吹水群-993590655-red?style=flat-square&logo=Tencent-QQ)](https://jq.qq.com/?_wv=1027&k=hmeHhTwu) [![公众号](https://img.shields.io/badge/微信公众号-@aniBullet-success?style=flat-square&logo=wechat)](https://www.anibullet.com/about/) | ||
[![GitHub followers](https://img.shields.io/github/followers/AnimatorBullet?label=%E5%85%B3%E6%B3%A8&style=social)](https://github.com/AnimatorBullet) [![Twitter](https://img.shields.io/twitter/follow/aniBulletCom?label=BulletS&style=social)](https://twitter.com/aniBulletCom) | ||
--- | ||
##### Since 2019.11 | ||
##### Copyright (c) 2019 Bullet.S |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
global rolBsAnimButton | ||
try(destroyDialog rolBsAnimButton)catch() | ||
|
||
Global iniPosAnimButtonTools | ||
global iniAnimButtonSelected = 0 | ||
Global BulletConfig = execute ("@\"" + (getDir #maxData) + "\\BulletConfig.ini\"") --配置文件路径 | ||
|
||
try(FileIn ((getDir #scripts) + "\\BulletScripts\\fnSaveLoadConfig.ms")) | ||
catch(messagebox "打开失败,工具可能安装不完全,\r\n\r\n建议查看设置中的帮助或重新安装... " beep:false) | ||
try(FileIn ((getDir #scripts) + "\\BulletScripts\\fnGetColorTheme.ms")) | ||
catch(messagebox "打开失败,工具可能安装不完全,\r\n\r\n建议查看设置中的帮助或重新安装... " beep:false) | ||
stLoadConfigAll.fnLoadConfigBsAnimButton () | ||
|
||
Global switchAnimButtonMouState = false | ||
Global posAnimButtonMouMove = [0,0] | ||
|
||
rcmenu RCmenuConfig | ||
( | ||
menuItem mAbout "📺 miHoYo_Bullet.S" | ||
|
||
on mAbout picked do | ||
(shellLaunch "https://space.bilibili.com/2031113" "") | ||
) | ||
|
||
rollout rolBsAnimButton "BsAnimButton_v1.0" | ||
( | ||
local LastSubRollout = 1 | ||
|
||
dotNetControl dotnetTabCon "System.Windows.Forms.TabControl" height:20 width:285 align:#center pos:[0,0] | ||
button btnExit "✖" width:20 height:20 pos:[980,0] border:false | ||
button btnHelp "?" width:20 height:20 pos:[960,0] border:false | ||
label labelTemp "功能待添加..." pos:[350,0] | ||
|
||
|
||
local arrAnimBtn1 = #() | ||
local arrAnimBtn2 = #() | ||
local arrAnimBtn3 = #() | ||
local arrAnimBtn4 = #() | ||
|
||
local arrRolAnimBtn = #( | ||
#("☘︎模型☘︎",#(arrAnimBtn1)), | ||
#("☕︎蒙皮☕︎",#(arrAnimBtn2)), | ||
#("✜动画✜",#(arrAnimBtn3)), | ||
#("✈︎系统✈︎",#(arrAnimBtn4)) | ||
) | ||
|
||
on btnHelp pressed do | ||
(shellLaunch "https://www.notion.so/bullet4869/BsKeyTools-17b5ba7c37ae45f6a69ce90f45fa0657" "") | ||
|
||
on btnExit pressed do | ||
( | ||
try (destroydialog rolBsAnimButton) catch () | ||
) | ||
|
||
on dotnetTabCon Selected itm do | ||
( | ||
if LastSubRollout != (itm.TabPageIndex+1) do --处理相同tab情况 | ||
( | ||
|
||
) | ||
) | ||
|
||
on rolBsAnimButton open do | ||
( | ||
stLoadConfigAll.fnLoadConfigBsAnimButton () ---------------脚本位置等赋值 | ||
stSetConfigAll.fnSetConfigBsAnimButton () ----------------保存位置信息到ini文件 | ||
-- dotnetTabCon.Appearance = dotnetTabCon.Appearance.Buttons | ||
dotnetTabCon.dock = dotnetTabCon.dock.Fill | ||
dotnetTabCon.Drawmode = dotnetTabCon.Drawmode.OwnerDrawFixed | ||
dotnetTabCon.SizeMode = dotnetTabCon.SizeMode.Fixed | ||
dotnetTabCon.ItemSize = dotNetobject "System.Drawing.Size" 70 20 | ||
|
||
for aTab in arrRolAnimBtn do | ||
( | ||
dotnetTabCon.TabPages.add aTab[1] | ||
) | ||
rolBsAnimButton.dotnetTabCon.SelectedIndex = iniAnimButtonSelected | ||
) | ||
|
||
on rolBsAnimButton close do -- 关闭记忆浮动窗口位置 | ||
( | ||
iniPosAnimButtonTools = (GetDialogPos rolBsAnimButton) | ||
stSetConfigAll.fnSetConfigBsAnimButton () | ||
) | ||
|
||
on rolBsAnimButton mbuttondown pos do | ||
( | ||
try (destroydialog rolBsAnimButton) catch () | ||
) | ||
|
||
on rolBsAnimButton lbuttondown posMou do | ||
( | ||
posAnimButtonMouMove = posMou | ||
switchAnimButtonMouState = on | ||
) | ||
|
||
on rolBsAnimButton lbuttonup posMou do | ||
( | ||
switchAnimButtonMouState = off | ||
) | ||
|
||
on rolBsAnimButton rbuttondown pos do | ||
( | ||
popupMenu RCmenuConfig pos:[mouse.screenpos.x + 20,mouse.screenpos.y] | ||
) | ||
|
||
on rolBsAnimButton mouseMove pos do | ||
( | ||
if switchAnimButtonMouState == on then | ||
( | ||
SetDialogPos rolBsAnimButton (mouse.screenpos - posAnimButtonMouMove) | ||
) | ||
) | ||
------------------------------------------------------------------------------------------------------ | ||
) | ||
-- createDialog rolBsAnimButton 1000 100 fgcolor:myFgColor menu:RCmenuConfig | ||
if (iniPosAnimButtonTools != 0) then | ||
(Createdialog rolBsAnimButton 1000 50 fgcolor:myFgColor pos:iniPosAnimButtonTools style:#()) | ||
else (Createdialog rolBsAnimButton 1000 50 fgcolor:myFgColor style:#()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
try(destroyDialog rolKeyStepMode)catch() | ||
|
||
try(FileIn ((getDir #scripts) + "\\BulletScripts\\fnGetColorTheme.ms")) | ||
catch(messagebox "打开失败,工具可能安装不完全,\r\n\r\n建议查看设置中的帮助或重新安装... " beep:false) | ||
|
||
rollout rolKeyStepMode "关键帧跳转设置 (by: Bullet.S)" | ||
( | ||
label lblTips "先打开【关键帧跳转】,\"<\":前一帧 \">\":后一帧" pos:[5,8] | ||
button btnHelp "帮助" width:35 height:20 pos:[250,30] tootip:"跳转帮助网页" | ||
-- button btnRefresh "刷新" pos:[205,30] width:45 height:20 tooltip:"刷新状态" | ||
button btnKeyStepMode "|◀▶| 关键帧跳转开关" pos:[95,30] width:155 height:20 tooltip:"非关键帧切帧该工具设置无效。\r\n暂不知代码如何直接获取当前状态..." | ||
checkbox ckbUseTrackBar "使用轨迹栏" tooltip:"默认模式" pos:[5,33] checked:true | ||
checkbox ckbSelObjOnly "仅选定对象" tooltip:"仅在选定物体的帧中切换" pos:[5,60] checked:true enabled:false | ||
checkbox ckbUseCurTrans "使用当前变换" tooltip:"位移旋转缩放之一,按当前使用的变换" pos:[105,60] checked:true enabled:false | ||
checkbox ckbPosition "位置 Position" tooltip:"切帧是否包含位移帧" pos:[5,85] checked:true enabled:false | ||
checkbox ckbRotation "旋转 Rotation" tooltip:"切帧是否包含旋转帧" pos:[105,85] checked:true enabled:false | ||
checkbox ckbScale "缩放 Scale" tooltip:"切帧是否包含缩放帧" pos:[205,85] checked:true enabled:false | ||
|
||
fn fnRefreshChecked = | ||
( | ||
ckbUseTrackBar.checked = timeConfiguration.useTrackBar | ||
ckbSelObjOnly.checked = getKeyStepsSelOnly() | ||
ckbUseCurTrans.checked = getKeyStepsUseTrans() | ||
ckbPosition.checked = getKeyStepsPos() | ||
ckbRotation.checked = getKeyStepsRot() | ||
ckbScale.checked = getKeyStepsScale() | ||
ckbSelObjOnly.enabled = not ckbUseTrackBar.state | ||
ckbUseCurTrans.enabled = not ckbUseTrackBar.state | ||
if ckbUseTrackBar.state == true then | ||
( | ||
ckbPosition.enabled = false | ||
ckbRotation.enabled = false | ||
ckbScale.enabled = false | ||
) | ||
else | ||
( | ||
ckbPosition.enabled = not ckbUseCurTrans.state | ||
ckbRotation.enabled = not ckbUseCurTrans.state | ||
ckbScale.enabled = not ckbUseCurTrans.state | ||
) | ||
|
||
) | ||
|
||
on btnHelp pressed do | ||
(shellLaunch "https://www.notion.so/bullet4869/BsKeyTools-17b5ba7c37ae45f6a69ce90f45fa0657" "") | ||
|
||
on rolKeyStepMode open do | ||
( | ||
fnRefreshChecked() | ||
) | ||
|
||
on btnKeyStepMode pressed do (max key mode) | ||
|
||
on ckbUseTrackBar changed state do | ||
( | ||
timeConfiguration.useTrackBar = state | ||
fnRefreshChecked() | ||
) | ||
on ckbSelObjOnly changed state do | ||
( | ||
setKeyStepsSelOnly state | ||
fnRefreshChecked() | ||
) | ||
on ckbUseCurTrans changed state do | ||
( | ||
setKeyStepsUseTrans state | ||
fnRefreshChecked() | ||
) | ||
on ckbPosition changed state do | ||
( | ||
setKeyStepsPos state | ||
fnRefreshChecked() | ||
) | ||
on ckbRotation changed state do | ||
( | ||
setKeyStepsRot state | ||
fnRefreshChecked() | ||
) | ||
on ckbScale changed state do | ||
( | ||
setKeyStepsScale state | ||
fnRefreshChecked() | ||
) | ||
) | ||
Createdialog rolKeyStepMode 295 110 fgcolor:myFgColor |
Oops, something went wrong.