Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "author": "@Bouh",
- "description": "Add a numeric expression for return the real height of text Object if this object have wrap options and multiple lines",
- "extensionNamespace": "",
- "fullName": "Real height with multiple lines on Text Object",
- "name": "Real_Height_TextObject",
- "shortDescription": "Add a numeric expression for return the real height of text Object if this object have wrap options and multiple lines",
- "tags": "height, text",
- "version": "0.0.2",
- "eventsFunctions": [
- {
- "description": "Return real height of Text Object when text have multiple lines",
- "fullName": "Return real height of Text Object",
- "functionType": "Expression",
- "name": "E_returnRealHeightTextObject",
- "sentence": "",
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [],
- "actions": [],
- "events": []
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::JsCode",
- "inlineCode": "var textObjectRenderer = objects[0].getRendererObject();\n\n//real height with multilines, value come from renderer on preview\nvar realHeight = textObjectRenderer.height;\n\n//function return\neventsFunctionContext.returnValue = realHeight;",
- "parameterObjects": "objects",
- "useStrict": true
- }
- ],
- "parameters": [
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Selectionne ton objet texte",
- "name": "objects",
- "optional": false,
- "supplementaryInformation": "TextObject::Text",
- "type": "objectList"
- }
- ],
- "objectGroups": []
- }
- ],
- "eventsBasedBehaviors": []
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement