Giter Club home page Giter Club logo

loki3's Introduction

loki3

this is a copy of loki render(https://sourceforge.net/projects/loki-render/).

there are two problems:

1.The output dir has nothing,bacause the rendered file path is around with single quotes (') in new blender,so loki obtains a wrong file name with single quotes(e.g. 001.png'),so loki can not move tmp render file to output dir.below is my correct codes in /loki/src/net/whn/loki/CL/CLHelper.java#L85.

public static String blender_getRenderedFileName(String stdout) {
    //old example "Saved: /home/daniel/.loki/tmp/0001.png Time: 00:00.31" 
    //new example "Saved: '/home/googlewell/.loki/tmp/0005.png' Time: 00:00.3"

    String tmp = null;

    Pattern pattern = Pattern.compile("Saved:\\s('?\\S*.png'?)");
    Matcher matcher = pattern.matcher(stdout);

    if (matcher.find()) {
        tmp = matcher.group(1);
        if (tmp.startsWith("'") && tmp.endsWith("'")) {
            tmp = tmp.replace("'", "");
        }
        return tmp;
    }
    return null;

}

2.There have no render time in the grunts list and job details list.The same reason,the bledner render console output letters have changed. below is my correct codes in /loki/src/net/whn/loki/CL/CLHelper.java#L104.

public static String extractBlenderRenderTime(String stdout) {
    Pattern pattern = Pattern.compile("\\sTime:\\s(\\d{2}:\\d{2}.\\d{2})\\s\\(Saving:\\s\\d{2}:\\d{2}.\\d{2}\\)");
    Matcher matcher = pattern.matcher(stdout);

    if (matcher.find()) {
        return matcher.group(1);
    }

    return null;

}

loki3's People

Contributors

googleweb avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.