State:Closed|icon_bug|icon_katana|database:public|Resolution:Fixed|TargetRelease:2.1v5|BugID:232531|
Problem summary:
The setter equivalent of the NodegraphAPI.Xio.Parameter_getValueDict() function -- Parameter_setValueDict() -- is not currently exposed via the __all__ list at the top of the module. This means that the function cannot currently be used, without explicitly importing (it from) the Xio module.
Furthermore, a couple of functions are named in the __all__ list that don't actually exist. This prevents wildcard imports from the Xio module.
The undefined functions are:
Steps to reproduce:
help(NodegraphAPI.Xio.Parameter_setValueDict)
from NodegraphAPI.Xio import * Expected behaviour:
Case 1: Help text including the docstring of the function is meant to be printed to the Python tab's result area.
Case 2: All functions (and other code objects) that are named in the __all__ list of the Xio module are available to use under their respective names.
Actual behaviour:
Case 1: A Python exception is raised, with the following error message:
AttributeError: '_VirtualModule' object has no attribute 'Parameter_setValueDict'
AttributeError: 'module' object has no attribute 'GetDocumentFromKatanaFile' Workaround:
Case 1: The function can be used after manually importing the Xio module, like so:
import NodegraphAPI.Xio The function can also be imported manually from the Xio module, like so:
from NodegraphAPI.Xio import Parameter_setValueDict Reproduced versions/platforms:
We're sorry to hear that
Please tell us why