Olaf Pfeifer Posted November 12, 2019 Share Posted November 12, 2019 I would like my marionette object node to read parameters from a database record (instead of OIP input parameters). However, it will not update instantaneously when I change the database record via worksheet (database row) or 'data' tab of the OIP. What are my options to 'bump' it, besides moving it ? Quote Link to comment
Marionette Maven Marissa Farrell Posted November 12, 2019 Marionette Maven Share Posted November 12, 2019 One option would be to include a boolean input node with a name (so that it shows on the OIP) that you can toggle (I would attach it to the end of my network with a pass node) Running the command Tools > Utilities > Reset All Plug-ins should reset them, but it would also update all other plug-ins in the document. You could create a script that would only reset selected plug-ins, or that would only reset Marionette objects. (Let me see if I can find one I wrote a few years ago, otherwise I will try to find time to write a new one) Quote Link to comment
Olaf Pfeifer Posted November 12, 2019 Author Share Posted November 12, 2019 Thank you for offering, Marissa! It looks like the "scale" operation (with a vector of (1;1) does the trick to reset (=update) my marionette objects and can be applied to them selected by criteria (other than "move", which won't work). If I only knew how to run such a marionette script from the worksheet ... can I ? Maybe even to a single database row handle? 1 Quote Link to comment
Marionette Maven Marissa Farrell Posted November 12, 2019 Marionette Maven Share Posted November 12, 2019 1 minute ago, Olaf Pfeifer said: If I only knew how to run such a marionette script from the worksheet ... can I ? Maybe even to a single database row handle? Actually that is a great idea! Let me look into this since we added some functionality for scripting in worksheets recently. Are you still on 2019, as your signature states? Quote Link to comment
Olaf Pfeifer Posted November 12, 2019 Author Share Posted November 12, 2019 yup, for a while ... Quote Link to comment
Olaf Pfeifer Posted December 11, 2019 Author Share Posted December 11, 2019 Update: There is a 'RESET' Node by DomC that also does the Trick of updating a Marionette Object after it's Parameters have been changed. He uses it with the "Set Marionette OIP field" node. I could see how the "RunScript" Worksheet function would be able to trigger that in theory, but I don't see how to prevent that from happening each time a worksheet is updated, which then in turn would trigger all the marionettes to update, which takes too long. I ended up NOT implementing it, mainly because parameters read from the record fields regardless of the variable type come in as Strings, sometimes even with units, and first have to be converted to numbers by means of complicated string operations ... too much for me. 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.