Notifications
Clear all

[Closed] Using button pressed as a function?

Is it possible to call a button from within maxscript that ive already coded, hence using it in the same way to perform an operation without needing to double the code?

If that makes sence…

Somehting like this

Button1 pressed do
(
some operations
button2 pressed
some more operations
)

Button2 pressed do
(
operations
)

4 Replies

Maybe this does what you need:

buttonName.pressed()

Light

cool, so it should be easy to make an array that stores a repedative bunch of custom button presses to make mini macros accessable to the user?

To be able to use the same type of calls outside the scope of the dialog, you need to declare the dialog’s name as global and use something like this:

dialogName.buttonName.pressed()

Light

ok cool, thanks