Hi,
For 2D structures, you can use the Imageshape() command. There is no equivalent for 3D. If you can't build the structure out of the built in shapes of mumax, probably you will need to construct an OVF file with something like Python/Matlab, and then load it in.
There is no way to set the current direction to follow the structure automatically, but you should be able to do what you want by loading another OVF with the spatial profile of the current density. Again you will need to construct some sort of OVF with something like Python/Matlab. Depending on how complex the current density/structure is, you might need to compute it with a tool like Comsol, and then convert it to OVF.
Best,
Josh L.