12-17-2022, 04:09 AM
(This post was last modified: 12-17-2022, 04:25 AM by GameBoy2936.)
(12-17-2022, 03:59 AM)GameBoy2936 Wrote:Quick update on this issue. I exported the python script the exact way you did it. Now there's just one more underlying issue. When I import Greninja's trmdl file into blender using the script, his body is completely black no matter what lighting I add to the world.(12-13-2022, 03:12 PM)RetroMB Wrote: Here is a 1 hour long uncut video of me ripping Meowscarada's 3d model and animations.
I've watched very closely on the first video to import Greninja's SV model into Blender before it gets approved on the Models Resource, but when I've imported the python script and import in the trmdl file, this comes up:
Can you see where the issue is here?Code:Python: Traceback (most recent call last):
File "C:\Users\Micha\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\PokemonSwitch.py", line 93, in execute
from_trmdl(directory, f, self.rare, self.loadlods, self.usedds)
File "C:\Users\Micha\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\PokemonSwitch.py", line 1324, in from_trmdl
material.node_tree.links.new(alb_image_texture.outputs[0], mix_color6.inputs[1])
UnboundLocalError: local variable 'alb_image_texture' referenced before assignment
EDIT: The original texture files have been converted to DDS, then to PNGs. I haven't got a clue if I've messed up somewhere.
EDIT 2: Had to re-do the DDS to PNG conversion. Now Greninja's loading with the correct textures.