Posted by
ctrueden on
URL: http://imagej.273.s1.nabble.com/vs-for-macro-converting-h5-to-vtk-tp3684246p3684249.html
Hi Vinay,
run("Load HDF5 File", "open=" + nuChild + ")");
This does not look correct to me. I don't know why you would add an extra
")" to the end of the filename. Have you tried:
run("Load HDF5 File", "open=" + nuChild);
Or if the filename contains spaces, use:
run("Load HDF5 File", "open=[" + nuChild + "]");
As for the backslashes, it is the macro language's escape character. For a
detailed explanation, see:
http://en.wikipedia.org/wiki/Escape_characterIn short, rest assured that it is normal to write two backslashes to
indicate a single one, and that when printing out the string value, you will
only see a single backslash between each path component.
HTH,
Curtis
On Tue, Jun 14, 2011 at 12:04 AM, vinaympai <
[hidden email]> wrote:
> Nathaniel Ryckman wrote:
> >
> > Try this command instead:
> >
> > run("Load HDF5 File", "open=" + nuChild + ")";
> >
> >
> I made a slight change to your command:
> run("Load HDF5 File", "open=" + nuChild + ")"); since it was complaining of
> missing the ending round bracket. The command then does not return an
> error
> and I get a message saying loading HDF5 File:.....
> and no image loads :(.
>
> I also do not quite understand how only one bracket can exist (does it not
> need closure?)?
>
> Could this possibly be a PC v Linux issues for hdf5 reader, maybe? I can
> use / instead of \\ and that also works.
>
> Vinay
> P.S. In my earlier message, I had a slip-up: note that nuChild and nuCur
> are
> the same (slip-up not obviously in the code but when typing it up for the
> msgboard)
>
>
> --
> View this message in context:
>
http://imagej.588099.n2.nabble.com/vs-for-macro-converting-h5-to-vtk-tp6471541p6471985.html> Sent from the ImageJ mailing list archive at Nabble.com.
>