I've been writing some light linking tools that edit the vrscene using the Post-Translate Python Callback, but I seem to be unable to set the value of the ignored_lights parameter on the SettingsLightLinker plugin.
The type of this parameter appears to be a list of lists, with each list containing a light plugin followed by the excluded shape node plugins:
When trying to use the set() function in the vray.utils python module for the ignored_lights parameter, I get no change in the parameter's value. I've tried various permutations of the data structure, like using the plugin names rather than the plugin objects themselves, but nothing seems to yield a result.
Maybe this functionality of setting a value to a list of lists is not yet implemented? Or maybe there is a custom V-Ray type that I am not seeing? I'd like to use the provided functions and not have to resort to a hacky solution like parsing the .vrscene directly.
Has anyone successfully edited the ignored_lights parameter of the SettingsLightLinker plugin using Python V-Ray Scene Access in Maya? Does this functionality even exist?
The type of this parameter appears to be a list of lists, with each list containing a light plugin followed by the excluded shape node plugins:
Code:
SettingsLightLinker settings_lightlinker { ignored_lights=List( List( light1Shape, pSphereShape1@node ) ); ignored_shadow_lights=List(); }
Maybe this functionality of setting a value to a list of lists is not yet implemented? Or maybe there is a custom V-Ray type that I am not seeing? I'd like to use the provided functions and not have to resort to a hacky solution like parsing the .vrscene directly.
Has anyone successfully edited the ignored_lights parameter of the SettingsLightLinker plugin using Python V-Ray Scene Access in Maya? Does this functionality even exist?
Comment