-
Notifications
You must be signed in to change notification settings - Fork 40
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
Script References Non-Existent PSDs #2
Comments
I think I forgot to rename the template on the google drive to With regards to the python script, what bash command are you using to execute it & have it work properly? Is it different to the command defined in the |
It seems like each there are a number of template names that As far the Python script, if I run it using the same command
|
Okay, so I figured some things out. The Python script wasn't executing because the location where // proxy.jsx
app.system("python " + filePath + "\\scripts\\get_card_info.py \"" + cardName + "\""); I had a similar issue with the location the Python script would create # get_card_info.py
path = os.path.dirname(sys.argv[0])
print("Dumping to: " + path);
with open(path + "\card.json", 'w') as f:
json.dump(json_dump, f) However, I'm still seeing some issues in the final output of the cards:
|
Hey again, Regarding the mana costs being left justified, I can't recreate that on my end but I may have found where the issue is originating from. Try updating your formatText.jsx file and see if the new version fixes it. For the sizes of mana costs and artworks, you can adjust the scaling of them in the text. Search for the number 160 in proxy.jsx and try replacing those instances with 80, and see if that fixes the mana cost. For the artwork, you can replace the number 100 on line 44 of frame.jsx with 50, and see if that fixes the artwork scaling issue. These scaling issues seem to crop up differently on everyone's PC's and I can't seem to recreate them, so this is the best I can do for now :/ (The lack of transparency in the top corners is due to the art scaling incorrectly, so this should fix it. However, in practice that issue doesn't matter anyway, because when adding the print bleed edge, it'll cover up the non-transparent corners.) There are a number of templates that the code references that I haven't made public - these are still in development, but I use this git for source control in the interim. Adding references to them doesn't break anything, since the main template can't support those card types anyway, so it's not worth adding another branch imo. I've also made an adjustment to the set symbol gradient function, so that should fix that issue too. |
@ndepaola I've been following the steps here (except for the change to get_card_info.py, as that made things worse). I'm still getting an error on line 43 of proxy.jsx when it hits |
hey - is |
Here is the code to fix the mana cost positioning. It should go after the formatText() line in the "Mana Cost" section.
|
I'm certainly not seeing any card.json. I've tried with Wasteland and Purphoros. I've tried a few different things with the path, thinking maybe that would work. No luck so far. |
The issue might be in your python installation then. Try running the |
Thanks for the response. That worked just fine from the terminal. And then if I try and run proxyAll, it works fine. So I'm guessing maybe it's not saving card.json in the right directory? Either that or something is wrong with how I'm inputting the card name? For the former, I've tried a few variations, including My art name is |
Are you on a Windows computer or a Mac? It seems like the script can run into permissions issues when trying to save |
I'm running Windows 10, Photoshop CS6. I've even tried running PS as an admin. |
Floris Warmenhoven nailed down the source of this issue on macOS a bit earlier today, and I've included the fix in the latest commit. I'm hoping the same issue is occurring on your system so it can be solved in the same way. Could you try downloading the latest version of |
@redsunsoft's code worked for me with the latest changes in the repo to correctly reposition the mana symbols. That solves all of my issues I had when I first opened this, so I'm going to close out this bug. |
I'm attempting to get your scripts to work with Photoshop CS6. However, I am getting an error from functions like
proxyNormal()
inproxy.jsx
which take a template name as an argument.It appears that the script is attempting to open a non-existent file:
.
If I hardcode these paths to reference the provided
Template.psd
, the output is mostly correct, but a few things are off:card.json
(although it works correctly when manually executed from bash)Should there be additional templates in the repo? Or should
new File()
create one if it doesn't exist?The text was updated successfully, but these errors were encountered: