[QGIS-Developer] import 3d or _3d in python?
Andrea Giudiceandrea
andreaerdna at libero.it
Mon Oct 3 00:02:39 PDT 2022
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
More information about the QGIS-Developer
mailing list