Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Maxunderground news unavailable

creating UI script question
show user profile  coss
hey guys

im creating a animation preview script. but i have found an issue i dont know how to solve.

im stating a label for the ui to hold the output image Width and Height respectively:

label LblWidthRes "" pos:[25,145]
label LblHeightRes "" pos:[65,145]

then, on the dialog creation i want these labels' text to be filled with the current W and H of the scene render options:

on RolloutPrvOpt open do LblWidthRes.text = (renderWidth as string)
on RolloutPrvOpt open do LblHeightRes.text = (renderHeight as string)

the problem is that max for some reason doesnt refresh the Height label. and if i comment the Width label the Hegth is loaded. I dont know how this works or whats the logic behind this behavior

any idea would be appreciated

coss ----------------------------------
rigger/character setup
read 364 times
8/28/2009 12:03:45 PM (last edit: 8/28/2009 12:03:45 PM)
show user profile  coss

such a noob question :P

i solved it

on mPrvOpt open do (
LblWidthRes.text = (renderWidth as string)
LblHeightRes.text = (renderHeight as string)

lol... well you have to understand that sometimes the human mind gets cluttered


rigger/character setup
read 358 times
8/28/2009 12:07:01 PM (last edit: 8/28/2009 12:07:01 PM)
#Maxforums IRC
Open chat window