how to press dot.net button?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
Old 04 April 2014   #1
how to press dot.net button?

I have to give command in code that given button should be pressed.
In maxscript it`s: button_name.pressed() and how can I do this same in case of dotnet button.
Action for my button is:

on ckb56_efects mouseDown senderArg arg do
(
action.....
)
Can anybody have a any clue with this?
 
Old 04 April 2014   #2
Put the "action" code to a function. Then you can use:

on ckb56_efects mouseDown senderArg arg do
 (
    call the function
 )


and anywhere in your script you can call the same function, which is the same as pressing the button.
 
Old 04 April 2014   #3
but i have 100 buttons and tons of code,is there any different way?
 
Old 04 April 2014   #4
Originally Posted by kredka: but i have 100 buttons and tons of code,is there any different way?

you can do it on the fly but only for dotnet button objects (not controls)
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:24 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.