<div dir="ltr">Hello Jacky, <div><br></div><div>Thank you for your effort, it is much clearer now. </div><div>Since Model has no property, then the dictionary in the .setShapeProperties() method should be empty? </div><div>But how do I input the model's directory into the QgsPoint3DSymbol() ? </div><div><br></div><div>Here is my attempt of doing so, for now it doesn't work : </div><div><br></div><div><br><i><b># get the layer named "arbre"<br>layer = QgsProject.instance().mapLayersByName('arbre')[0]<br><br>s = QgsPoint3DSymbol()<br><br># set 3d model to the symbol<br>model = qgis.analysis.Qgis.Point3DShape(7)<br>s.setShape(model)<br>s.setShapeProperties({"Model" : "C:/Users/atamort/Downloads/trees_low_poly.fbx"})<br><br>renderer = QgsVectorLayer3DRenderer(s)<br>layer.setRenderer3D(renderer)</b></i><br></div><div><i><b><br></b></i></div><div>Any help would be appreciated ! </div><div><br></div><div>Best, </div><div>Abdelghani</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 3 Jun 2024 at 17:44, Jacky Volpes via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <font face="Ubuntu">Hi </font>Abdelghani,<br>
    <br>
    Reading the source code, we can deduce the properties.<br>
    I agree that the documentation is too light here.<br>
    <font face="Ubuntu"><br>
<a href="https://github.com/qgis/QGIS/blob/master/src/3d/symbols/qgspoint3dsymbol.cpp#L172" target="_blank">https://github.com/qgis/QGIS/blob/master/src/3d/symbols/qgspoint3dsymbol.cpp#L172</a><br>
      <br>
      For a cylinder, the properties are "length", "radius" (default
      values are 10).<br>
      For a sphere: "radius" (default value is 10).<br>
      For a cone: "length" (default value is 10).<br>
      For a cube: "size"</font><font face="Ubuntu"> (default value is
      10).</font><br>
    <font face="Ubuntu">For a torus: "radius" (default value is 10),
      "minorRadius" (default value is 5).<br>
      For a plane: "size" (default value is 10).<br>
      For extruded text: "depth" (default value is 1).<br>
      For Model and Billboard: no property.<br>
      <br>
      I only did a "translator" job here :-)   and I don't know if the
      3D shapes that are listed make sense for you.<br>
      Regards,<br>
      <br>
    </font>
    <pre cols="72">Jacky Volpes

Ingénieur SIG - Oslandia</pre>
    <div><br>
      Le 03/06/2024 à 17:33, Abdelghani Tamort via QGIS-Developer a
      écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Howdy,
        <div><br>
        </div>
        <div>I want to know which are the keys of each shape in the 
          <span style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;color:rgb(0,0,0);font-size:14.4px;font-weight:700"><span style="box-sizing:border-box">setShapeProperties</span></span><span style="box-sizing:border-box;color:rgb(85,85,85);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;font-weight:700">(</span><em style="box-sizing:border-box;color:rgb(85,85,85);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;font-weight:700"><span style="box-sizing:border-box"><span style="box-sizing:border-box">self</span></span></em><span style="color:rgb(85,85,85);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;font-weight:700;background-color:rgb(240,240,240)">, </span><em style="box-sizing:border-box;color:rgb(85,85,85);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;font-weight:700"><span style="box-sizing:border-box"><span style="box-sizing:border-box">properties</span></span><span style="box-sizing:border-box"><span style="box-sizing:border-box">:</span></span><span style="box-sizing:border-box"> </span><span style="box-sizing:border-box"><span style="box-sizing:border-box">Dict</span><span style="box-sizing:border-box"><span style="box-sizing:border-box">[</span></span><span style="box-sizing:border-box">str</span><span style="box-sizing:border-box"><span style="box-sizing:border-box">,</span></span><span style="box-sizing:border-box"> </span><span style="box-sizing:border-box">Any</span><span style="box-sizing:border-box"><span style="box-sizing:border-box">]</span></span></span></em><span style="box-sizing:border-box;color:rgb(85,85,85);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;font-weight:700">)
          </span><span style="box-sizing:border-box;color:rgb(85,85,85);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px">method
          </span><span style="box-sizing:border-box;color:rgb(85,85,85);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px">of </span><span style="box-sizing:border-box;color:rgb(85,85,85);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;font-weight:700">qgis.analysis.Qgis.Point3DShape.
          </span><span style="box-sizing:border-box;color:rgb(85,85,85);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px">It
            would help me choose a 3d model as a point symbol. </span>
          <div><font face="Lato, proxima-nova, Helvetica Neue, Arial, sans-serif" color="#555555"><span style="font-size:14.4px">There is no
                mention of them in the PyQGIS docs (</span></font><a href="https://qgis.org/pyqgis/3.36/_3d/QgsPoint3DSymbol.html#qgis._3d.QgsPoint3DSymbol.shapeProperty" target="_blank">https://qgis.org/pyqgis/3.36/_3d/QgsPoint3DSymbol.html#qgis._3d.QgsPoint3DSymbol.shapeProperty</a>) </div>
        </div>
        <div><br>
        </div>
        <div>Cheers, </div>
        <div><br>
        </div>
        <div>Abdelghani TAMORT</div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
QGIS-Developer mailing list
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>