I’m trying to set up a script for automating Landscape Grass Type creation using Python.
Although I can run the script through the menu, it’ll need commandline arguments and when I try to run the same command as seen in the output log I get an error:
Cmd: py D:/Dropbox/Work/Games/assets/Python/CreateLandscapeGrass.py
LogPython: Landscape Grass Creator 0.1
LogPython: ===========================
LogPython: Usage:
LogPython: py <path to script>/CreateLandscapeGrass.py [path to source StaticMesh folder] [path to existing Landscape Grass Type]
LogPython: e.g. py C:\CreateLandscapeGrass.py /Game/MyFoliage/Meshes/ /Game/MyLandscapeStuff/MyFoliage
LogPython: Beginning test script
LogPython: py D:/Dropbox/Work/Games/assets/Python/CreateLandscapeGrass.py
LogPython: Error: Could not load Python file 'D:/Epic Games/UE_4.19/Engine/Binaries/Win64/py D:/Dropbox/Work/Games/assets/Python/CreateLandscapeGrass.py' (resolved from 'py D:/Dropbox/Work/Games/assets/Python/CreateLandscapeGrass.py')
Any idea what’s up? I tried ensuring the permissions of the script made it available to everyone (I’m running on windows), but it was still a no go.