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
| using UnityEngine; | |
| using System.Collections; | |
| public class ZzzLog : MonoBehaviour | |
| { | |
| uint qsize = 15; // number of messages to keep | |
| Queue myLogQueue = new Queue(); | |
| void Start() { | |
| Debug.Log("Started up logging."); |
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
| // Make Layers React to a Mask | |
| // Based on knowledge from The Power of Expression Book | |
| // https://aescripts.com/the-power-of-expression/ | |
| // | |
| // Requires the new 'Javascript' expressions engine introduced in AE 16.0 (CC2019) | |
| // You can set this in File -> Project Settings: https://drop.aescripts.com/NQurXWmG | |
| // If you replace all "let" to "var" this expression will should work in previous versions | |
| // | |
| // v1 initial version | |
| // v2 added feathering support |
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
| // POSITION ON SPLINE | |
| p = thisComp.layer("SPLINE").content("Path").content("Path 1").path; | |
| thisComp.layer("SPLINE").toWorld(p.pointOnPath(percentage = effect("Position On Path")("Slider"), t = time)) |
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
| import c4d | |
| from c4d import gui | |
| # Main function | |
| def main(): | |
| obj = doc.GetActiveObjects(0) | |
| doc.StartUndo() | |
| print recurse_hierarchy(obj[0], obj[1]) | |
| doc.EndUndo() |
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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class PhotoController : MonoBehaviour | |
| { | |
| bool grab; | |
| Texture2D texture; | |
| public RawImage display; |