Notifications
Clear all
[Closed] passing multiple arguments to dotNet fns without breaking mxs syntax
Mar 21, 2014 12:27 am
I have a function in a dotNetClass which converts tif to png.
It takes two fiel path strings as arguments.
in C# it’s called like this:
myClass.tif2png(infile, outfile)
but in maxscript the syntax it won’t evaluate
myClass =dotNetClass "myClass"
myClass.tif2png(infile, outfile)
-- Syntax error: at ,, expected <factor>
-- In line: myClass.tif2png(infiule, o
elsewhere I’ve been able to do this with one parameter, why does it break with two?
2 Replies
Mar 21, 2014 12:27 am
isn’t just ?
fnname arg1 arg2
the reason the brackets work for 1 argument is
fnname (arg1)
or in the above case
fnname (arg1) (arg2)
Mar 21, 2014 12:27 am
yes that works.
I guess the fact that the syntax for one param looked C# -ish confused me.
there went one hour :banghead: