Add to Key-Value parameter through Python

   2199   3   0
User Avatar
Member
83 posts
Joined: April 2014
Offline
I have a Key-Value parameter on an OTL, and I was wondering how I could add, set, and remove the entries into the parameter through Python.
User Avatar
Member
390 posts
Joined: Jan. 2012
Offline
parm.set({'x':'y'})
.
User Avatar
Member
83 posts
Joined: April 2014
Offline
Awesome, thanks man. Would you know how to remove am individual instanced based on the index? Or just remove all of them?
Edited by Tyler Britton2 - Aug. 14, 2019 20:09:21
User Avatar
Member
390 posts
Joined: Jan. 2012
Offline
I'm not sure how to remove just one. But yeah as a hack you can rebuild the dict without the keys you don't want.
.
  • Quick Links