ulikilian
03-18-2009, 06:09 AM
Okay guys, can't figure it out and haven't found it in the docs nor in the forum.
And it's five o'clock in the morning and I have to go to bed. Maybe sleeping brings the answer....
I simply want to define a global function in a Script Operator in PF.
How the hell does that work? I'm sure the answer is quite simple....
This does work:
on Init pCont do
(
fn test = print "please do it"
test()
)But then I can't call the function in "Proceed" or "Release" handler because it remains local.
But trying to put a "global" in front of it throws an error.
And defining it somewhere else doesn't work either...
I hope I made it clear (yawn).
Please give me a hint.
Thanks a lot
Uli
And it's five o'clock in the morning and I have to go to bed. Maybe sleeping brings the answer....
I simply want to define a global function in a Script Operator in PF.
How the hell does that work? I'm sure the answer is quite simple....
This does work:
on Init pCont do
(
fn test = print "please do it"
test()
)But then I can't call the function in "Proceed" or "Release" handler because it remains local.
But trying to put a "global" in front of it throws an error.
And defining it somewhere else doesn't work either...
I hope I made it clear (yawn).
Please give me a hint.
Thanks a lot
Uli
