On 11/02/2014 at 18:50, xxxxxxxx wrote:
Is it possible to run the initialize button in the object properties of the surface deformer using python?
Thanks in advance!
On 12/02/2014 at 10:57, xxxxxxxx wrote:
The file with the ID's for the Surface deformer are found here:
C:\Program Files\MAXON\YOUR VERSION\resource\modules\ca\res\description\ocasurfacedeformer.h
You can execute any button. On any deformer. The same way.
You just have to find the IDs for the deformer and the specific button you want to execute.
Then change the ID in the code.
The IDs for the other deformers are stored in .h files inside of this folder:
C:\Program Files\MAXON\YOUR VERSION\resource\modules\ca\res\description folder.
#This is how to execute the Initialize button on the Surface deformer object
def main() :
sd = doc.SearchObject("Surface")
#Executes the "Initialize" button
On 12/02/2014 at 11:09, xxxxxxxx wrote:
Very much appreciated, thank you ScottA!