Skip to content

Easiest way to edit arbitrary scene parameters in Python #1239

Answered by njroussel
treder asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @treder

We don't provide any utilities for such changes currently. The mi.traverse() function is only useful for tuning parameters of a plugin, not changing entire plugins.

I have personally found it convenient to use a Python XML parser to extract the tree from the file, modify it, write it a new temporary file and then mi.load_file this temporary file.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@treder
Comment options

Answer selected by treder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants