Python API call to "Save Node Type" on a digital asset

   879   2   1
User Avatar
Member
59 posts
Joined: April 2006
Offline
With an unlocked OTL you can link parms from the top level to nodes inside (Copy Parmeter/Paste Relative References) and then right-click and choose "Save Node Type" in order to make those references part of the OTL definition prior to matching the current definition to lock it back up again.

But in Python:
new_otl = subnet.createDigitalAsset(...)
setupMyParms(new_otl)
new_otl.saveNodeType()  # <-- This doesn't exist???
new_otl.matchCurrentDefinition()

Am I just not seeing the saveNodeType() method in the docs? Without a method like this, creating links between parms does not get saved with the OTL definition after calling matchCurrentDefinition().
User Avatar
Member
8599 posts
Joined: July 2007
Offline
I assume it would be something like this

new_otl.type().definition().updateFromNode(new_otl)
new_otl.matchCurrentDefinition()
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
59 posts
Joined: April 2006
Offline
Thank you, sir!
  • Quick Links