Notifications
Clear all

[Closed] How to refresh rollout's text?

The question may strange,see my pictures below:

The text in button turns to bold after my script loaded, the position is right the place where my cursor’s position,other buttons text work fine.This happenes only when the button’s text need define again, for example,I defined a button:


rollout search "" 
(
   button my_button "button_text"
   on search open do my_button.text="butten_ok"
)

the problem I think is this code caused:

my_button.text="butten_ok"

for my script has lots of codes,4000+ lines,so load it completely would take about 1 sec or more,then,the button text turns bold,(only cursor moves there before load it completely),how to fix it?Or how can I refresh the button text to avoid this?

6 Replies

try:

my_button.caption = "butten_ok"
1 Reply
(@momo2012)
Joined: 11 months ago

Posts: 0

Just tested,has the same issue.

this is not a problem of your code. the max recently changed something in its UI drawing. i have this issue now too and not only with my tools but with native max tools as well.

3 Replies
(@momo2012)
Joined: 11 months ago

Posts: 0

No way to fix?

(@denist)
Joined: 11 months ago

Posts: 0

you don’t have to. the max must fix its bugs.
btw. how big is your code? could it be a memory issue?

(@momo2012)
Joined: 11 months ago

Posts: 0

OK,I see,thanks a lot,denisT

no ,absolutely not the codes or memory issue,5200 lines and more