userdefined functions

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
TheBrain1984
Posts: 137
Joined: 07 Aug 2013 08:17
Location: Germany

userdefined functions

Post by TheBrain1984 » 16 Jan 2015 13:33

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: userdefined functions

Post by Martin » 16 Jan 2015 15:37

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

Post Reply