State:New|TargetRelease:No Target|icon_bug|database:public|icon_mari|Resolution:Fixed|BugID:523616|
Problem summary
Using entityNodeGraphs=None in mari.session.utils.ExportSession() returns an error
Customer reported version
Mari 5.0v4
Customer reported platform
Linux
Steps to reproduce
1) Open an Example Project
2) Run the following snippet in the Python Console (replace the exportDir path with a valid path):
project = mari.session.types.Project.fromSession()exportDir = "C:/tmp"mari.session.utils.ExportSession(project, exportDir, geoEntities=None, geoPatches=None, entityNodeGraphs=None).start() >>> project = mari.session.types.Project.fromSession() ... exportDir = "C:/tmp" ... mari.session.utils.ExportSession(project, exportDir, geoEntities=None, geoPatches=None, entityNodeGraphs=None).start() Traceback (most recent call last): File "<string>", line 3, in <module> File "C:/Program Files/Mari4.8v1/Bundle/Media/Scripts\Mari\session\utils\export_session.py", line 427, in start if entity in self.entityNodeGraphs: TypeError: argument of type 'NoneType' is not iterable entityNodeGraphs - ([mari.EntityNodeGraph|mari.session.types.EntityNodeGraph]) A list of EntityNodeGraph objects to include in the dict. By default no entityNodeGraphs are included. If None is used all projectors are included. Defaults to []We're sorry to hear that
Please tell us why