Hi there,
is there a way to define functions by my own?
I'm thinking about a widget that shows me a bar diagramm with a connecting line from bar to bar. The problem is the connecting "line", because I have to define it as a rectangle with a rotation. So I want to design a function with the paramters x1, y1, x2, y2 (the two points that I want to connect) that give me back the rotation and the distance. I know I can do it in a seperate flow and set my variables to the local vars of the flow but then I can use it only once per script-action and I have to know the paramters before the script-action but normaly I get the paramters during the runtime of the script-action.
Thanks
Manuel
userdefined functions
Moderator: Martin
Re: userdefined functions
Hi,
Automagic does not allow to define your own script functions. As a workaround you could try to use function eval to evaluate a piece of code that uses the local variables to modify a line.
Regards,
Martin
Automagic does not allow to define your own script functions. As a workaround you could try to use function eval to evaluate a piece of code that uses the local variables to modify a line.
Regards,
Martin