This file contains hidden or 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
| // change this to a recognizeable piece of your audio output | |
| // e.g. setAudioOutput("AirPlay"); or setAudioOutput("VoilaDevice"); | |
| // returns true on success / false on beef | |
| // as always, all thanks to StackOverflow for the amazing | |
| // enumerate devices script: | |
| // http://stackoverflow.com/questions/1983984/how-to-get-audio-device-uid-to-pass-into-nssounds-setplaybackdeviceidentifier | |
| // Note: if you change "kAudioDevicePropertyScopeOutput" to "kAudioObjectPropertyScopeGlobal" in line 62, | |
| // you can set the output for your whole system... |
This file contains hidden or 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
| # exports each selected object into its own file | |
| import bpy | |
| import os | |
| # export to blend file location | |
| basedir = os.path.dirname(bpy.data.filepath) | |
| if not basedir: | |
| raise Exception("Blend file is not saved") |
This file contains hidden or 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
| // Ask for an ObjectID | |
| let objectID = await input.textAsync("Input an Object ID") | |
| // get result from objectID | |
| let apiURL = "https://collectionapi.metmuseum.org/public/collection/v1/objects/" + objectID | |
| let results = await fetch(apiURL) | |
| let json = await results.json() | |
| if (json.hasOwnProperty("message")){ |
OlderNewer