Support » Plugin: STL Viewer » Works, but some setup is required (read on how):

  • … but needs some config.

    1. Enable .stl file upload (or any other file type or file-extension)
    You have to disable FILTER upload before be able to upload an .STL file. Just add

    // -- allow all files to be uploaded
    define('ALLOW_UNFILTERED_UPLOADS', true);

    somewhere in your config.php file.

    2. Refer your .STL files correctly
    Then make sure you refer your .STL files correctly!
    If your domain is:
    http://www.yourdomain.com

    Your uploads will go to maybe:
    http://www.yourdomain.com/uploads/2015/10/myfile.stl

    So refer the stl file as:

    /2015/10/myfile.stl

    because http://www.yourdomain.com/uploads/ is added by the plugin itself.

    3. Example:
    Insert code is not documented within the plugin, which is a shame. So here it is:

    [stl file="/2015/10/3dprinted-wrench.stl" /]

    Hope that helps.

    4. Setup Background
    I was not able to set the background, which seems to be just a black color by default.
    There is a way within the plugin to setup a tile (image) but it did not work correctly. (Just a small stripe is shown.)

    I’m using it here:
    http://www.flagsoft.com/cmswp/3d-printing/wrench-3d-printed/

    I did try:
    [stl file="myfile.stl" background="#f8f8f8" /]
    but does not seems to work for me.

    Question
    If someone knows how to setup Background color (mono, fix), or tile image, please let me know!

  • The topic ‘Works, but some setup is required (read on how):’ is closed to new replies.