Page 1 of 1

bmd.scriptlib

PostPosted: Mon Jun 27, 2016 1:59 pm
by Stefan Kirste
Hey,

while switching to Fu8, i need to update all my scripts.
I have problems, using the builtin function in the bmd.scriptlib

bevor:

var = eyeon.parseFilename(xyz)

works
after:

var = bmd.parseFilename(xyz)

didnt work: error: "Attempt to call field 'parseFilename' (a nil value)

i added a new function to the scriptlib, this only print "test" .
when i put "bmd.test()" in the console, it works, but in my lua script i got the error as above.
Any suggestions?

Re: bmd.scriptlib

PostPosted: Mon Jun 27, 2016 9:50 pm
by michael vorberg
i cant replicate this

if i run (as a script):
Code: Select all
filename = "E:\\projekte\\MechTrailer\\Ref\\fafnir1.jpg"

print (bmd.parseFilename(filename).Name)


i got no error and the expected result

Re: bmd.scriptlib

PostPosted: Mon Jun 27, 2016 11:55 pm
by Peter Loveday
Are you using 8.1.1?

Re: bmd.scriptlib

PostPosted: Tue Jun 28, 2016 8:21 am
by Stefan Kirste
well, this is fixed! Thanks.

Re: bmd.scriptlib

PostPosted: Tue Jun 28, 2016 11:35 am
by Stefan Kirste
BUT!
by using the function "bmd.SV_GetFrames(sv)" i get an error on line 409 .

... = sv.Clip[TIME_UNDEFINED]

error: Unsupported key type!

same error by using TIME_UNDEFINED in a custom script, BUT it works in the console .