Comments (7)
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.
@llbit Would it be better to have it be a global or per-scene setting?
from chunky.
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.
Makes sense. I think I can drop this in really quick.
from chunky.
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.
@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.
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)
- Biome blending setting isn't stored in the scene
- Add option to enable/disable biome map rendering at low zoom levels HOT 1
- Support LZ4 compressed region files HOT 2
- Flatpak HOT 17
- "Hide the water plane in loaded chunks" has inconsistent behavior
- Stripped logs cannot be rendered HOT 2
- Display entities HOT 1
- Singletons (mainly `Air#INSTANCE`) and constants are incompatible with `BlockSpec#maybeWaterlogged`
- Material tab doesn't update after import
- Other Types Of Display Entity Support (Item Displays & Text Displays) HOT 1
- Semver4j is not included in the README
- Errors and warnings reported in plugin loading are not presented to the UI as plugins are loaded before the receiver is set.
- Render items
- 24w10a
- 24w11a
- Armor trims
- Track scene changes and only prompt to save them if there are scene changes
- 24w13a
- Fancier Translucency makes black pixels transparent HOT 4
- FirstTimeSetupDialog ignores chunky.home sytem property
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chunky.