Git Product home page Git Product logo

Comments (7)

abonander avatar abonander commented on May 26, 2024

I was thinking about requesting this feature before I saw this post.

But after more thought, I realized that configuration for a command to perform (via Runtime.exec()) would be exponentially more useful, possibly with a parameter for inlining the path to the final rendered image.

It'd also be easier to implement, since we're just passing the command to the shell, and optionally replacing a token in the string with the image path.

The command could invoke a shell script file (bash or bat) for more complex operations, or even start a native executable or another Java application, and pass it the image path to work on.

Though it'd really only be useful in headless mode, it could even start another Chunky process to render another scene, simulating a job queue in a sort-of singly linked list.

Windows, Mac OS X and Linux all have easy ways of shutting down from the command line, so it's not like we're losing that. An article on the wiki would be sufficient enough to guide users through setting it up.

It might be a good idea to have the command editing done in a dialog so the user can't accidentally change it without noticing; a typo in the right command could do a lot of damage.

A dialog would also help because a working directory and environment variables can be configured as well. It could possibly include tokens for retrieving the render time, SPP, SPS, etc. for e.g. an automated upload script.

from chunky.

abonander avatar abonander commented on May 26, 2024

@llbit Would it be better to have it be a global or per-scene setting?

from chunky.

llbit avatar llbit commented on May 26, 2024

If this gets implemented I think it should only remember the "shutdown" setting while Chunky is still rendering/running. It would be too easy to forget that you enabled the setting and next time you start Chunky and render for a bit your computer inexplicably shuts down.

I am not a fan of having Chunky run arbitrary shell commands. That should be done by scripting in the shell and using headless mode.

The shutdown thing was requested by a user on reddit or Minecraftforums. I can see the utility of that, since many people let their computer render overnight and when the render finishes it would be just as well to not waste more electricity by having it shut down.

from chunky.

abonander avatar abonander commented on May 26, 2024

Makes sense. I think I can drop this in really quick.

from chunky.

AEnterprise avatar AEnterprise commented on May 26, 2024

you might not be a fan of running shell scripts from chunky but sometimes it's just the easyest way to do it

from chunky.

abonander avatar abonander commented on May 26, 2024

@AEnterprise I have to agree with llbit. The user can already use shell scripting with headless mode which gives a lot more flexibility than we could provide in the program itself.

from chunky.

AEnterprise avatar AEnterprise commented on May 26, 2024

true, we all know how to do this but not all computer/chunky users are that advanced users as us. I regulary write chunky scripts for some friends cause they don't understand it. It's easy but not everybody wants to take the time to learn how to do it.

from chunky.

Related Issues (20)

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.