Open Hammers69 opened 6 years ago
I tried the example file and had a look to see what was different. My Ps exported is creating html files with the images in a subfolder. If I move the images up to the parent 'sprites' folder, it seems to work. Strange? I have the latest exporter and plugin from here.
Hi, hmm.. this is strange. Is it possible for you to share a psd file and the sprites with json file that got exported so I can take a closer look?
Which OS do you use? Usually the exported sprites should be always located in the sprites directory.
Hi Andreas, I'm using CS6 on Mac OS 10.12.6 I guess it's something going on with Photoshop. It's definitely exporting html as well and nesting the images below that. Very odd. I'm attaching my .psd and the files I got on export. Like I say, as long as I move the images up, all seems OK (except spritesheets, which I couldn't exactly get working, but happy to use slots). Thanks for looking, and the amazing tool! AndreasTest.zip
Ok I may have found the problem, and I think it is an old bug in Photoshop (though it may still exist in CC, don't know).
It seems to relate to 'save for web'. I have used that in the past, and had it set to save html and images. It seems that somehow your script is picking up that setting I guess. I went in and did a SFW save, switching to 'images only'. Then did another Blender export and it behaved as expected with the images directly in the 'sprites' folder.
Not sure if this is something that's even fixable in the script, or whether it's just a Ps oddity. Either way, at least we've found a workaround if it crops up.
I'm on Mac, 2.79, latest Ps and Blender plugins.
I seem to be unable to load json sprites. I can create new Sprite Object, but then when I click re/Import sprites, I select my .json and get the below error. I can manually import images, but not with correct placement sizing etc.