I’m using JSON to create Custom Shape. I have two questions to go further :
1 . Is it possible to identify to which shape a line is connected when using a Custom Shape? For example, using the formula (=DOWNSTREAM), I can see all the shapes in my Custom Shape. However, I don’t know how to identify the element directly connected to my line.
Is it possible to take a value from the parent document and use it in a Custom Shape? When I try to use a formula in a Custom Shape, it is processed as a string. I have tried various ways to makes it work, like the example below.
Thanks for your help,
NM
Page 1 / 1
Hi NMN! Thanks for the question.
To the answer the first question, if 1, 2, and 3 are all all sub-shapes in the custom shape, it isn’t possible currently to identify which shape the line is connected to as it is not a separate shape, but rather a part of the shape. Splitting them into separate custom shapes would make that possible and you could group them into a shape that is dragged into the shape library to make it easier to use.
For the second question, strings in textareas always use interpolation when processed. In order to support your case you would need to use something like {{=parent.out1}} in place of just the standard text. I believe this works in HJSON, but it may need to be wrapped in a string.
Please let me know if that works for you and if you have any other questions. Thanks!
Hi Thanks for your answer !
Oh, it's so sad that it's impossible to identify sub-shapes. The point was to create a dynamic shape to add or remove rows, like in the multiplexer example. I’m currently using a group of shapes for that purpose, but it's very tedious to always manually add or remove shapes to adapt the content.
For the second answer, it works great ! Thanks
I have an other question. Is there a way to quickly visualy check and debug a custom shape ? Currently I’m using :
npx lucid-package bundle
and then manually import to the library.
I’ve tried
npx lucid-package@latest test-shape-libraries
But the output is in plain text
Thanks again for your help !
Hello NMN!
Using `test-shape-libraries` is unfortunately currently broken. Sorry about this. (But, yes, that would be the way to quickly debug custom shapes.) In the meantime, what you’re currently doing (through `bundle`) is the workaround we recommend.
If you have any other questions, Chase and I are happy to help!
Thanks for your answer. Is there a way to install a previous version where the `test-shape-libraries` was working ? It’s a bit tedious to go back and force with the export / import functions
NM
Hi NM,
Unfortunately, there is no way to install a previous version with `test-shape-libraries` working. Sorry for the inconvenience. However, I’ve passed along your idea, to my product team. If a fix is released, we’ll let you know.
I hope to get back to you soon!
Hi NM,
`test-shape-libraries` is working once again! To use it, run `npx lucid-package@latest test-shape-libraries` just like you mentioned before, and when you’re prompted, install the latest version of `lucid-package`. Also, make sure that in the Lucid editor, you have the setting “Developer > Load Local Extension” selected.
Then, in the editor, your custom shapes should be automatically loaded as a shape library, like your bundled version. (The plaintext output that you mentioned will be automatically fetched by the editor.)
A Lucid account is required to interact with the Community, and your participation is subject to the
Supplemental Lucid Community Terms.
You may not participate in the Community if you are under age 18. You will be redirected to the Lucid app to log in.
A Lucid account is required to interact with the Community, and your participation is subject to the
Supplemental Lucid Community Terms.
You may not participate in the Community if you are under age 18. You will be redirected to the Lucid app to log in.