dewlorr
02-16-2009, 05:38 PM
Hello,
I have a plugin which has several attributes. I want user to be able to tweak the attributes, but I don't want the changes to get applied until he has pressed some kind of 'Apply' button.
(The plugin is doing some heavy calculations, so each time you make a slightest change, the plugin has to recompute the modificiations. Which is not desired.)
I am looking for a way to create a button in the channelbox, where the attributes of my node are at the moment. Is it possible at all to do such a thing? According to the docs it seems there is no attribute type that matches a button GUI element, but on the other side, if I take a look at a normal box, pCubeShape1 tab in the channelbox, under the 'Displacement Map' rollout there is clearly a 'Calculate Bounding Box Scale' button.
Do you happen to know how to do this?
thanks,
dew
I have a plugin which has several attributes. I want user to be able to tweak the attributes, but I don't want the changes to get applied until he has pressed some kind of 'Apply' button.
(The plugin is doing some heavy calculations, so each time you make a slightest change, the plugin has to recompute the modificiations. Which is not desired.)
I am looking for a way to create a button in the channelbox, where the attributes of my node are at the moment. Is it possible at all to do such a thing? According to the docs it seems there is no attribute type that matches a button GUI element, but on the other side, if I take a look at a normal box, pCubeShape1 tab in the channelbox, under the 'Displacement Map' rollout there is clearly a 'Calculate Bounding Box Scale' button.
Do you happen to know how to do this?
thanks,
dew
