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
import ctypes | |
from PySide import QtGui | |
from PySide import QtCore | |
import MaxPlus | |
import OtherModule | |
GWL_HWNDPARENT = -8 |
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
## STANDALONE Window (normal Python) | |
# From Base Class | |
if __name__ == '__main__': | |
import sys | |
try: | |
application = QtGui.QApplication(sys.argv) | |
pyside_window = PySideWindow() # Example PySide Window - This needs to be in as a variable! It initialises then ;) | |
pyside_window.show() | |
sys.exit(application.exec_()) | |
except SystemExit: |
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 pythonScriptWindow)catch() | |
fn py_exec txt_ui = | |
( | |
try | |
( | |
if (doesFileExist txt_ui) then | |
--This accepts normal Windows file paths! No need for escape characters like in MAXScript | |
py_cmd = python.ExecuteFile(txt_ui) clearUndoBuffer:false | |
else |
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
using UnityEngine; | |
using System.Collections; | |
public class AttributeExample : MonoBehaviour | |
{ | |
// The Header attribute takes a string as the header makes it bold. | |
[Header("Variables")] | |
public int exampleInteger = 3; | |
public float exampleFloat = 3.5f; | |
public string exampleString = "I'm a string!"; |
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
/* | |
tsab_myMatBatchRender.ms | |
Example Material Batch Render Script in 3ds Max 2014 | |
For my blog post on using MAXScript for automation in 3ds Max: | |
http://www.andybellart.co.uk/blog/tech/maxscript/a-maxscript-persective-the-power-of-automation#more-286 | |
Developed by Andrew "teessider" Bell | |
Copyright 2015 |
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
using UnityEngine; | |
using UnityEditor; | |
public class CreatePrefabEditor | |
{ | |
/* Example from Unity API Documentation for: | |
* PrefabUtility.CreateEmptyPrefab (Looks like a duplicate example) & | |
* PrefabUtiltiy.ReplacePrefab | |
* Converted from UnityScript to C# | |
* |