Jump to content

How can I reset a Marionette Object other than by moving it?


Olaf Pfeifer

Recommended Posts

  • Marionette Maven

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)

Link to comment

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?

update marionette.png

  • Like 1
Link to comment
  • Marionette Maven
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?

Link to comment
  • 4 weeks later...

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.
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...