Change tool settings with python
-
On 08/04/2014 at 16:55, xxxxxxxx wrote:
Please help.
I can't figure out how to change the parameters of a tool (ie Knife, Brush, Extrude Tool etc) with python.An example would be a script that calls the Knife Tool and sets the Mode to Loop and turns off N-gons
This is nearly automatic with Coffee. Can it be done on python?
Please keep in mind that I'm a newb with any coding.All suggestions welcome and thanks for the help.
-
On 17/04/2014 at 12:30, xxxxxxxx wrote:
Unfortunately, the script log is not very promising. It forgets to add the definition of the tool()
function when modifying settings on the current tool.You can get the BaseContainer for the current tool using BaseDocument.GetActiveTooldata(), or
add this to the script log:def tool() : return doc.GetActiveToolData()
Best,
-Niklas