Notifications
Clear all

[Closed] rollout question

Hi all,

I have a pb with the Xref, i would like to use it but with Xref i loose all my customAttributs and so all the special links for setup…so my character is totaly break.
So i would like to try something else and would like to know if you feels that could works:
I would like to create a rollout where i connect all the special link for setup (like StrechAndSquesh On/Off button);
So i try something but doesn’t work, if someone could help me, would be very nice

[color=white]rollout[/color] testXref “Test Xref”
(
[size=1] group “rototoWire”[/size]
[size=1] ([/size]
[size=1] spinner spn_scBrG “ScaleBrasG” range:[0,100,0];[/size]
[size=1] checkbutton ckBt_StrOnBrG “StrechOnBrasG”;[/size]
[size=1] )[/size]
[size=1] on ckBt_StrOnBrG changed state do[/size]
[size=1] ( [/size]
[size=1][color=white] on spn_scBrG changed true do[/color][/size]
[size=1] ( $Sphere01.radius=spn_scBrG.value –this is an example[/size]
[size=1] )[/size]
[size=1] )[/size]
[size=1] creatDialog testXref[/size]
[size=1])[/size]
[size=1][/size]
[size=1]so with this script i thnik that I cannot mix 2 “on…Changed…do” functions; because nothing happen?[/size]
[size=1][/size]
[size=1]If someone understood me (sorry for my english) and could help me…THANKS A LOT[/size]
[size=1][/size]
[size=1][/size]
[size=1] ++[/size]
[size=1][/size]
[size=1] Alex
[/size]

5 Replies

rollout abc “abc”
(
—interface define—
spinner inter_spinner “spinner” range:[0,10000,10]
checkbutton inter_checkbutton “checkbutton” checked:on

—fn define —
fn dosomething imSpinner:”” imcheckbutton:””=
(
print (“i love u_”+imspinner+imcheckbutton)
— do something u like
)

—action define—
on inter_spinner changed arg do dosomething imspinner:(arg as string)
on inter_checkbutton changed arg do dosomething imcheckbutton:(arg as string)

) createdialog abc

Thanks For your help,
But i am starting with maxScript and I would like that le spinner value could only use if the checkbutton state is true but cannot mix the both in one fonction and use them after with the “on…do” fonction.
Can i just say sommething like this (but this doesn’t work I suppose that i have to use the “on…changed arg do…” fonction):

if inter_checkbutton.state==true
then $Sphere.radius=inter_spinner.value
else $Sphere.radius=10

THANKS

for checkbutton :
eg: u define a checkbutton as : checkbutton my_checkbutton “abc”
so for test the checkbutton :
if my_checkbutton.checked then … else …

u can mail me . or add me in or msn or google talk name list .


You can’t write like you did
Spot the defferences !

rollout testXref “Test Xref”
(
group “rototoWire”
(
spinner spn_scBrG “ScaleBrasG” range:[0,100,0];
checkbutton ckBt_StrOnBrG “StrechOnBrasG”;
)
on ckBt_StrOnBrG changed state do
(
spn_scBrG.enabled=not state – dsable the spinner
)
on spn_scBrG changed val do
( – check for the checkBow state
if ckBt_StrOnBrG.state do $Sphere01.radius=val –this is an example
)
creatDialog testXref
)