Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New plugin: Bunch o' Screenshots #522

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

Fer-Jg
Copy link

@Fer-Jg Fer-Jg commented Apr 30, 2024

Hi hi, I just created this plugin, its purpose is to allow users to take Screenshots of multiple models in a single run without having to go through confirmation windows and fixing the posture of every model/camera, making the process as straightforward and quick as possible.
I saw some people (including me) making Java to Bedrock pack conversions and needing multiple sprites creation in a simple way so I think it will be very useful for them.

Fixed previous issues and conflicting change, hope this works now :)

@Fer-Jg Fer-Jg changed the title New plugin: New plugin: Bunch o' Screenshots Apr 30, 2024
}

// When updating, apply meta data changes to plugins.json entry!
BBPlugin.register("plugin", {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ensure ID consistency. The plugin directory currently has a different ID compared to the one specified in plugins.json, and the name here plus the file name is just "plugin" when it should be the proper plugin ID.

Settings.openDialog();
Settings.dialog.close(0);
BosSettings["BoSoutputDirectory"].set(fallbackDirectory);
Blockbench.showMessageBox({
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error message seems to pop up when first installing the plugin.

const projectName = Project
? Project.name.replace(/\.geo$/, "")
: "screenshot";
savePath = `${currentSettings.outputDirectory}\\${projectName}.png`;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The backslash for file paths is only going to work on Windows. Please use the character that works for the respective system. You can use the NodeJS path module (PathModule) to make this easier and more reliable.

type: "click",
click: function () {
let dialog = new Dialog({
title: "WIP",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem to do anything, you should comment it out.

if (BosSettings == null) {
doLog("create settings");
BosSettings = {
BoSdevMode: new Setting("BoSdevMode", {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just spell out names with spaces in between, no need to cram it all into one word.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants