ToolData



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/06/2011 at 08:55, xxxxxxxx wrote:

    Hy there,

    I implemented a simple ToolData Plugin, which doesn't do anything useful yet. I wonder how I can implement the "Default" behavior for the mouse. So I would like that the user can switch to Point Mode and select some points. The same with the Edge Mode.

    Right now, the mouse does not seem to be interactive with the scene (I guess, that is my part to implement). So, how can get the MouseInput(..) Method to behave in the default manner?
    I want to do some actions once a certain selection has been done ...

    Thank you,
    maxx



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/06/2011 at 15:46, xxxxxxxx wrote:

    Have you checked out the LiquidPainter example?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 26/06/2011 at 15:59, xxxxxxxx wrote:

    Yes, actually its based on that one.

    But in the Liquid-Painter there is no "default" behavior ? Ie. it is not possible to select an edge or a point of an object (as it is not implemented).

    Maybe I need to call the parents MouseInput(..) method to get the default behavior ?

    Thank you,
    maxx



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/07/2011 at 12:38, xxxxxxxx wrote:

    Push ...

    Does anyone know how to implement the MouseInput(..) in order to get the Cinemas default behavior?

    Thank you,
    maxx



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/07/2011 at 14:20, xxxxxxxx wrote:

    AFAIK you can't be inside of a Tool plugin and ask it to go into "ignore mode" while you do something else like selecting a point. You have to exit the tool to do that.

    I haven't had the chance to use Tool plugins much myself. Still lots I don't know about them.
    But I can offer you this simple example that moves the active object when the mouse is clicked. And rotates the active object if the arrows keys are pressed:ToolPlugin

    The guys in the C++ forum might be able to give you some pointers too.

    -ScottA



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 06/07/2011 at 11:47, xxxxxxxx wrote:

    Hy Scott,

    thank you for the code, always very useful.

    I thought the ToolData is the way to go, but I made a CommandData now. So, the user just creates the selections and then calls that command.

    Thank you,
    maxx


Log in to reply