Skip to content

Instantly share code, notes, and snippets.

@deathponta
Created April 13, 2018 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deathponta/e076b75f105ac3ac0ab5b2f5709b670a to your computer and use it in GitHub Desktop.
Save deathponta/e076b75f105ac3ac0ab5b2f5709b670a to your computer and use it in GitHub Desktop.
現在のシーンを開き直す
// 現在のシーンを開き直す
proc ReOpener(){
$filePath = `file -q -sceneName`;
$result = `confirmDialog -title "確認" -message "開き直す?"
-button "あい" -button "いいえ" -defaultButton "あい"
-cancelButton "いいえ" -dismissString "いいえ"`;
if ($result == "あい") {
file -f -ignoreVersion -o $filePath;
}
}
ReOpener();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment