hi
from a custombutton for change text display on "Text" object...
when I am using :
(script) (mode: expression)
decl stateLabels = {'String','Noise','click'};
decl MAX = 3;
id += 1;
id %= MAX;
setattribute(Text,'content', stateLabels[id] );
Lemur editor crash when i'm loading the template. if i write the code and try it all is ok, but if I close lemur editor, launch it and load the template lemur editor crash at open...
Is there something wrong ???
If you have an idea to solve it ???
I'm using Version 4.0.3 on osx 10.7.5
best
0-0
Text -lemur editor crash at open- [report]
-
- Newbie
- Posts: 39
- Joined: 18 Dec 2011 17:30
Re: Text -lemur editor crash at open- [report]
on expression what?
and id is what?
and id is what?
-
- Newbie
- Posts: 39
- Joined: 18 Dec 2011 17:30
Re: Text -lemur editor crash at open- [report]
hi
id is just a counter : 1 / 2/ 3 /1 /2 /3 /...
when custombutton.x change id increase of 1...
expression = "On expression"
id is just a counter : 1 / 2/ 3 /1 /2 /3 /...
when custombutton.x change id increase of 1...
expression = "On expression"
Re: Text -lemur editor crash at open- [report]
Im sorry but Im not understanding...
from the code you posted above "id" is NOT declared as a variable anywhere....I guess you have it defined as a custom variable but thats only a guess.
Also "on expression" is not enough - next to "on expression" you need to define on expression of "some" variable - be it x, y, z or a custom one.
If what you are trying to achieve is the custom button to change the text on each subsequent press then you need this
from the code you posted above "id" is NOT declared as a variable anywhere....I guess you have it defined as a custom variable but thats only a guess.
Also "on expression" is not enough - next to "on expression" you need to define on expression of "some" variable - be it x, y, z or a custom one.
If what you are trying to achieve is the custom button to change the text on each subsequent press then you need this
- Attachments
-
- setText.jzml
- (2.43 KiB) Downloaded 81 times