Mouse actions?

 
 
 
Posted by:mbreidt
Data created:18 October 2012

Is there a way to use the mouse click drag events during creation of a Lab geometry plugin? Just like what is happening when creating a box or a sphere: first click defines the origin, size is defined while dragging and release finalizes the size.

Martin

Martin

 

This could be a useful feature but there would need to be a way of specifying which click and drag you want to drive which parameter and how. This could almost be another graph with each input representing a sequential drag and you can wire it into your actual plugin's graph. But it seems too convoluted that way.

For now I can do something basic like just making the first drag position the object in the viewport.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

How about providing a list of positions that contain the first click on the grid, the position of release and optionally the position of the 3rd/4th click?

Right now, the Lab Geometry object/pivot is always placed at 0/0/0, regardless where I click, which is very unlike 3ds Max.

Martin

Martin

 

Would this list of positions be fed into a graph as input? If so, how would it know to stop using them after the creation process is done?

I was thinking more along the lines of a simple text file or Max script in addition to each graph which would allow to specify how to drive its parameters with each click. Like:

  • Click1 -> Graph.Position
  • Click2 * 2.0 -> Graph.Length
  • Click3 + 5 -> Graph.Height

Don't know if its the best idea though

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I was rather thinking of providing those clicks as constants to the graph...?

Martin

Martin