Il 03/10/2022 08:57, Raymond Nijssen via QGIS-Developer ha scritto:
Instead I need to add an underscore for the 3d module name:
from qgis._3d import QgsLayoutItem3DMap
In the Python console, the 3d library is automatically imported (if QGIS
is compiled with 3d support) with:
from qgis._3d import *
See:
https://github.com/qgis/QGIS/blob/95e00c50d219b39b2571dd6bff59a1393deb9b6a/python/console/console_sci.py#L59
Best regards.
Andrea Giudiceandrea
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer