Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. {
  2. "author": "@Bouh",
  3. "description": "Add a numeric expression for return the real height of text Object if this object have wrap options and multiple lines",
  4. "extensionNamespace": "",
  5. "fullName": "Real height with multiple lines on Text Object",
  6. "name": "Real_Height_TextObject",
  7. "shortDescription": "Add a numeric expression for return the real height of text Object if this object have wrap options and multiple lines",
  8. "tags": "height, text",
  9. "version": "0.0.2",
  10. "eventsFunctions": [
  11. {
  12. "description": "Return real height of Text Object when text have multiple lines",
  13. "fullName": "Return real height of Text Object",
  14. "functionType": "Expression",
  15. "name": "E_returnRealHeightTextObject",
  16. "sentence": "",
  17. "events": [
  18. {
  19. "disabled": false,
  20. "folded": false,
  21. "type": "BuiltinCommonInstructions::Standard",
  22. "conditions": [],
  23. "actions": [],
  24. "events": []
  25. },
  26. {
  27. "disabled": false,
  28. "folded": false,
  29. "type": "BuiltinCommonInstructions::JsCode",
  30. "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;",
  31. "parameterObjects": "objects",
  32. "useStrict": true
  33. }
  34. ],
  35. "parameters": [
  36. {
  37. "codeOnly": false,
  38. "defaultValue": "",
  39. "description": "Selectionne ton objet texte",
  40. "name": "objects",
  41. "optional": false,
  42. "supplementaryInformation": "TextObject::Text",
  43. "type": "objectList"
  44. }
  45. ],
  46. "objectGroups": []
  47. }
  48. ],
  49. "eventsBasedBehaviors": []
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement