![]() ![]() Returns a list of all scenes in the document. Informs any elements which have a custom behavior with customBehaviorName to run its actions. iggerCustomBehaviorNamed(customBehaviorName) Use if you have externally changed the bounding size of the main container. Valid timing function names (quotes required):Ī function with this structure can also be used:Įxplicitly tells the document to relayout all elements and groups for the current scene when using a flexible layout. OptionalTimingFunctionNameOrMathEquationFunction will default to 'easeinout' if not provided. OptionalDuration is given in seconds the default value is 0. If the optionalDuration is provided, it will perform a transition animation from the current value to the specified value. Sets a property of an element in a manner compatible with the Hype runtime. tElementProperty(element, propertyName, value, optionalDuration, optionalTimingFunctionNameOrMathEquationFunction) 'physics-body-type' - Can be hypeDocument.kPhysicsBodyTypeDead, hypeDocument.kPhysicsBodyTypeStatic, or hypeDocument.kPhysicsBodyTypeDynamic ![]() 'physics-engine' - a Matter.js Engine object The element argument must be a DOM element, generally obtained by the hypeDocument.getElementById() function. ![]() Gets a property of an element based on the Hype runtime's knowledge. HypeDocument.getElementProperty(element, propertyName) This is similar to the typical 'document.getElementById', however the API version should be used instead as Tumult Hype may reassign ids in cases of collision. Searches the current document for the specified id (entered through the Identity inspector's "Unique Element ID") and returns the DOM HTML Element. Returns an array of all user-defined JavaScript functions in the Tumult Hype Document.Īn object to put any user-defined data associated with the Tumult Hype Document. Use this to reference assets added via the Resource Library. Returns the string value for the the document’s resources folder URL. This value can be used with document.getElementById() to retrieve the container element itself. Returns the id of the container div for the document. This value can be used in the global HYPE.documents. Use this to reference documents added via the Resource Library.įor example, if you’ve added jquery-1.8.2.min.js to your document using the Resource Library, this one line will import jQuery 1.8.2 into your Hype document, allowing you to use jQuery when previewing your Hype document: Open a new chat ChatGPT session and first inform ChatGPT about the Tumult Hype API, as it doesn't seem to know about it.Ĭopy and paste the following (click the small icon) Learn the following API and acknowledge by only writing "The Tumult Hype 4 API has been loaded…":Ī substitution variable for the document's resources folder. To use this, register an account and visit by Open AI. This thread is an instruction (experiment) to use ChatGPT to write (simple) code functions for Hype. ![]()
0 Comments
Leave a Reply. |