Popular Post Takeshi_Kimura Posted April 23, 2018 Popular Post Share Posted April 23, 2018 (edited) Hi Everyone, My colleague here at A&A had created a Python script to list the nodes of Marionette. It should create a document with all the nodes ready for printing, like the attached files. We tested with page set to A3 portrait on a Japanese version, but it should work with other formats too. Please tell us what you find! I hope this will encourage more people to learn Marionette. It was ready a few months ago, but took so long to post it here... Regards, Takeshi Kimura@A&A CreateNodeList.py (Attached as CreateNodeList.txt) CreateNodeList.txt TEST05_paged.pdf TEST05.vwx Edited June 18, 2020 by Takeshi_Kimura Slightly revised the python script 7 1 Quote Link to comment
Gytis Posted October 7, 2018 Share Posted October 7, 2018 Thank you for this! Fantastic. I fear it is buried for many behind a python script. 1 Quote Link to comment
Cris with no H Posted October 19, 2018 Share Posted October 19, 2018 (edited) This is AMAZING and worked the very first time for me. Thank you! It is worth noting that the alignments only work correctly if text is preset to justify left and top. And the design layer scale must be 1:1. And for some reason it put in VERY large text some unrelated text I'd typed in and then corrected recently in another file. Both of those strings came in. Does that have anything to do with the vsGetTextNode section at the top? Thank you, thank you, thank you! Edited October 19, 2018 by Cris Dopher Quote Link to comment
Takeshi_Kimura Posted October 22, 2018 Author Share Posted October 22, 2018 On 10/19/2018 at 10:07 PM, Cris Dopher said: This is AMAZING and worked the very first time for me. Thank you! It is worth noting that the alignments only work correctly if text is preset to justify left and top. And the design layer scale must be 1:1. And for some reason it put in VERY large text some unrelated text I'd typed in and then corrected recently in another file. Both of those strings came in. Does that have anything to do with the vsGetTextNode section at the top? Thank you, thank you, thank you! Hi Cris, I'm glad you liked it! I am not sure what is happening, but can you try changing the font? In line 57, there is "vs.SetTextFont" and the name of the font is indicated in the parameter of vs.GetFontID. You can change the font used by setting the font name where a Japanese font is set currently. Also, maybe you can delete this line to have document font used. Regards, Takeshi Quote Link to comment
Popular Post Takeshi_Kimura Posted June 18, 2020 Author Popular Post Share Posted June 18, 2020 Revised the script to reflect suggestions from @Cris with no H . Also, here are the outputs for 2020. CreateNodeList 2020.vwx CreateNodeList 2020.pdf Enjoy! 6 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.