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
-- スクリプトリスナーをすっきりさせるためのコマンドです。無くてもいいです。 | |
Clearlistener() | |
sTime = timeStamp() -- 開始時間保存 | |
------------------------------ | |
-- 処理内容をここに記述 | |
for i=1 to i=10000 do( | |
print i | |
) |
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
-- 現在開いているMaxファイルのフルパスゲット | |
baseFilePath = maxFilePath+maxFileName | |
-- 今回は9ファイル処理。001 - 009。それ以上は別途対応が必要なり | |
for i=1 to 9 do( | |
-- Substring 関数え取得したパスを編集。拡張子前の一文字をiに置き換え | |
filePath = ((Substring baseFilePath 1 (baseFilePath.count-5)) + (i as String)+".max") | |
LoadMaxFile filePath | |
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
-- 現在開いているMaxファイルのフルパスゲット | |
baseFilePath = maxFilePath+maxFileName | |
-- 今回は150ファイル処理。001 - 150 | |
for i=1 to 150 do( | |
-------------------------------------------------- | |
-- 001 - 999 迄処理が行えます。今回は4桁の連番には対応しません。 | |
if ( i<10 ) then( | |
filePath = ((Substring baseFilePath 1 (baseFilePath.count-5)) + (i as String)+".max") | |
)else if ( (i>9) and (i<100) ) then ( |
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
try( DestroyDialog rol_test )catch() | |
global b = true | |
rollout rol_test "SwitchTest" width:120 height:32( | |
button btn1 "押して" pos:[8,8] width:104 height:16 | |
on btn1 pressed do( | |
b = not b |
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
bb = NodeLocalBoundingBox $ | |
bmax = bb[2] | |
bmin = bb[1] | |
Point pos:bmax box:off cross:on | |
Point pos:bmin box:off cross:on |
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
function GoLastRow() { | |
var as = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
var lastRow = as.getLastRow(); | |
// 意味 A1 ~ A最終行 迄の範囲取得 | |
var A_Cells = as.getRange( 1,1,lastRow,1 ); | |
// Aのすべてのセル内の値配列 | |
var A_Values = A_Cells.getValues(); |
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
/* | |
Created on 2017.4.5 | |
現在のアクティブレイヤーの下のレイヤーをオン・オフ | |
不透明度は50%にする | |
■ 用途 | |
アニメーション作業をする時に、下のレイヤーをオン・オフしながらやることが多いので | |
*/ | |
l = activeDocument.layers; | |
al = activeDocument.activeLayer; |
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
/* | |
Created on 2017.5.16 | |
Author deathponta | |
指定フォルダ内にある全Maxファイル内の、指定したノードをリネームする | |
*/ | |
fn Main _tgtPath _srcNodeName _newNodeName=( | |
d = DotNetClass "System.IO.Directory" |
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
for map in ( GetClassInstances BitmapTexture ) do( | |
print map.filename | |
) |
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
p = DotNetClass "System.IO.Path" | |
-- path をプリントするだけ | |
for map in ( GetClassInstances BitmapTexture ) do( | |
-- 絶対パスから名前と拡張子を取り出す | |
fileNameExtension = p.GetFileName( map.fileName ) | |
-- テクスチャパスを相対パスに | |
map.fileName = "..\\tex\\" + fileNameExtension | |
) |
OlderNewer