Skip to content
Discussion options

You must be logged in to vote

Hi @CGCooke

  1. No, this is not currently supported. Once a scene has been loaded, only its parameters can be modified. No change of plugin types, or removal/addition of new plugins is possible.

  2. The only workaround is to reload a scene with the new desired description. Mixing Python dictionaries with XML descriptions is possible but limited. For example, you can load individual plugins (not an entire scene) through mi.load_string, mi.load_file or mi.load_dict and then combine these pre-built objects into a scene or another plugin with mi.load_dict. Like so:

import mitsuba as mi
mi.set_variant('llvm_ad_rgb')
bsdf = mi.load_string('<bsdf version="3.0.0" type="diffuse"/>')
cube = mi.load_dict

Replies: 1 comment 1 reply

Comment options

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

Answer selected by CGCooke
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