忍者ブログ
お知らせと画力修行用に開設しました。よろしくお願いします!
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。


キーフレームを間引くmaxscriptです。フルキーだと編集がやり難かったので
作ってみました。動作が重いです、、、




下のタイトルで保存してください。

Key_reduction.ms

ここからコードですmaxscriptにコピペしてくださいーーーーーーーーーーーーーーーーーーーーー

rollout Key_reduction "Key_reduction " width:230 height:120
(


group "指定したフレーム空けてリムーブします" (


button btn2 "1F" pos:[10,40] width:30 height:26
button btn3 "2F" pos:[40,40] width:30 height:26
button btn4 "3F" pos:[70,40] width:30 height:26
button btn5 "4F" pos:[100,40] width:30 height:26
button btn6 "6F" pos:[130,40] width:30 height:26
button btn7 "7F" pos:[160,40] width:30 height:26
button btn8 "8F" pos:[190,40] width:30 height:26

button btn9 "実行" pos:[40,80] width:60 height:26

button btn10 "ALL削除" pos:[130,80] width:60 height:26


on btn2 pressed do(
global ki=2

)

on btn3 pressed do(
global ki=3

)

on btn4 pressed do(
global ki=4

)

on btn5 pressed do(
global ki=5

)

on btn6 pressed do(
global ki=6

)

on btn7 pressed do(
global ki=7

)

on btn8 pressed do(
global ki=8

)


on btn9 pressed do(


cnt = selection.count
print ( "cnt="+cnt as string )


for i = 1 to cnt do (

o = selection[i]

for t = 0 to 100 do (

global kazu =ki*t


for g = 1 +kazu to ki+kazu-1 do (

selectKeys o.pos.controller g
selectKeys o.Rotation.controller g
selectKeys o.Scale.controller g

deleteKeys $ #selection

)

)

)

)


on btn10 pressed do(
macros.run "Animation Tools" "DeleteSelectedAnimation"

)


)

)createDialog Key_reduction













拍手

PR
maxscriptプログラムの勉強をかねてとメモ代わりにアップします。あといつも
フリーの優れたmaxscriptを使わせてもらっているので誰かの役になればと、、
(自分のくそコードでは役に立たない可能性の方が高いと思いますが、、、)

uvをちょっとずつ動かすmaxscriptです。数値入力で正確に動かせて
おまけに数字で拡大縮小もできす。



下のタイトルで保存してください。

UVvmove3.ms

ここからコードですmaxscriptにコピペしてくださいーーーーーーーーーーーーーーーーーーーーー



rollout UVvmove3 "UVvmove3" width:180 height:350
(

global suuzi=1 --初期値--

group "UV頂点移動ツール" (

--/UV移動量////////////////////////////////////////--

button suzi1 "1.0" pos:[10,40] width:40 height:20
button suzi2 "0.5" pos:[50,40] width:40 height:20
button suzi3 "0.001" pos:[90,40] width:40 height:20
button suzi4 "0.0001" pos:[130,40] width:40 height:20

--/UV方向////////////////////////////////////////--

button btn1 "↑" pos:[60,70] width:57 height:26
button btn2 "←" pos:[13,100] width:57 height:26
button btn3 "→" pos:[110,100] width:57 height:26
button btn4 "↓" pos:[60,130] width:57 height:26 toolTip:""


--/数値変更ボタン////////////////////////////////////////--


on suzi1 pressed do
(
global suuzi=1
print suuzi

)

on suzi2 pressed do
(
global suuzi=0.5
print suuzi

)

on suzi3 pressed do
(
global suuzi=0.001
print suuzi

)

on suzi4 pressed do
(
global suuzi=0.0001
print suuzi

)

--/UV移動////////////////////////////////////////--


on btn1 pressed do
(

cnt = selection.count
obj = #()

for i = 1 to cnt do (obj [i]= selection[i]

if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.MoveSelected [0,suuzi,0] )

)

)


--/UV移動////////////////////////////////////////--

on btn2 pressed do
(

cnt = selection.count
obj = #()

for i = 1 to cnt do (obj [i]= selection[i]

if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.MoveSelected [-suuzi,0,0] )

)

)


--/UV移動////////////////////////////////////////--

on btn3 pressed do
(

cnt = selection.count
obj = #()

for i = 1 to cnt do (obj [i]= selection[i]

if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.MoveSelected [suuzi,0,0] )

)

)


--/UV移動////////////////////////////////////////--

on btn4 pressed do
(

cnt = selection.count
obj = #()

for i = 1 to cnt do (obj [i]= selection[i]

if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.MoveSelected [0,-suuzi,0] )

)

)


--/UV頂点スケール////////////////////////////////////////--

)

group "UV頂点スケール" (


button btn5 "×2" pos:[10,200] width:57 height:26
button btn6 "1/2" pos:[72,200] width:57 height:26

button btn7 "横×2" pos:[10,240] width:57 height:26
button btn8 "横×1/2" pos:[72,240] width:57 height:26

button btn9 "高さ×2" pos:[10,280] width:57 height:26
button btn10 "高さ×1/2" pos:[72,280] width:57 height:26


on btn5 pressed do
(
cnt = selection.count
obj = #()

for i = 1 to cnt do (obj [i]= selection[i]

if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 2 1. )
if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 2 2. )

)



)

on btn6 pressed do
(
cnt = selection.count
obj = #()

for i = 1 to cnt do (obj [i]= selection[i]

if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 0.5 1. )
if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 0.5 2. )

)


)


on btn7 pressed do(

cnt = selection.count
obj = #()

for i = 1 to cnt do (obj [i]= selection[i]

if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 2 1. )
if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 1 2. )

)




)

on btn8 pressed do(


cnt = selection.count
obj = #()

for i = 1 to cnt do (obj [i]= selection[i]

if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 0.5 1. )
if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 1 2. )

)


)


on btn9 pressed do(

cnt = selection.count
obj = #()

for i = 1 to cnt do (obj [i]= selection[i]

if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 1 1. )
if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 2 2. )

)

)


on btn10 pressed do(

cnt = selection.count
obj = #()

for i = 1 to cnt do (obj [i]= selection[i]

if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 1 1. )
if i== 1 then ( obj[i].modifiers[#unwrap_uvw].unwrap2.ScaleSelectedCenter 0.5 2. )

)

)


)

)createDialog UVvmove3

拍手



カレンダー
02 2024/03 04
S M T W T F S
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
プロフィール
マッチーウェブサイト(本家)本家のサイトです。こちらもよろしくお願いします。

ハンドルネーム:machiee(マッチー)

3DCG作ってます。

リンクはもちろんフリーです!
最新コメント
バーコード
ブログ内検索
最古記事
P R
Template by Crow's nest 忍者ブログ [PR]