VvierA Posted February 6, 2022 Share Posted February 6, 2022 Hello, some time ago I made a Vectorscript Menu command that computes the current date and writes to a database record. Now I'd like to implement this in a Marionette Object. Whenever I click a button in the OIP of the Marionette Object it should call the Vectorscript. Is this or something similar possible and how do I do it? Thanks for help VvierA Quote Link to comment
Pat Stanford Posted February 9, 2022 Share Posted February 9, 2022 I think you will be better off reimplementing the command in Marionette rather than trying to call a menu command from the Marionette object. Since there are no date functions in Marionette you could either implement a node that does all the calculations by converting the script to Python, or you could possibly write a node that implements the Vectorscript DoMenuTextByName command to run the existing script you have. I would recommend the first if you are going to the trouble to learn how to make/edit nodes it will make things more stable. Quote Link to comment
VvierA Posted February 10, 2022 Author Share Posted February 10, 2022 Thank you very much. I think I'll try to convert my script to Python and create a node. Can you recommend some information on how to create nodes? Quote Link to comment
Pat Stanford Posted February 11, 2022 Share Posted February 11, 2022 Take a look at these pages on the developer site for information on making nodes. I know there was a post here on the forum that suggested editing an existing node and changing something in the node header but I can't find it. Perhaps @Marissa Farrell can point us to it. Quote Link to comment
Marionette Maven Marissa Farrell Posted April 5, 2022 Marionette Maven Share Posted April 5, 2022 To edit existing nodes, it's important to remove the first line of code that starts with #COMMAND;READONLYREFFILE; as that looks for a text source file to sync changes. After removing that line, you can edit as you wish. 1 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.