Can't activate custom tool in Python???

AhmidouAhmidou Posts: 179 ✭✭
edited March 23 in Extensions

Hi, I'm trying to find a way to switch between multiples surface manipulators on the same object by script, but I can't even get the current one activated.
It can be tested by loading the manipulation_surfacepainting example and running tht following script (mostly ripped off from the C++ plugin)

import FabricEngine.Core
contextID = cmds.FabricCanvasGetContextID()
client = FabricEngine.Core.createClient({'contextID':contextID})

eventDispatcherHandle = client.RT.types.EventDispatcherHandle()
mEventDispatcher = eventDispatcherHandle.callMethod("EventDispatcher", "getEventDispatcher")
#mEventDispatcher.callMethod("", "pushManipulator", "'+manipName.getSimpleType()+'")
mEventDispatcher.callMethod("", "activateManipulation")

But it's doing nothing..
Any idea?

Sign In or Register to comment.