Researching MEL UI possibilities?

Hi guys,

I've been reading up on the various forums and other internet sites to see if some MAYA UI ideas are possible. This is mainly for game development, not high-end scenes.

While I'll continue to dig around, I thought I'd see if you guys had any immediate answers. (So I don't go run down a deadend road!)

(please excuse me if these seem obviously fundamental, I'm still peeling apart Maya-specific foundamentals)

Heavy questions:

1) Is there a way to draw a simple line, planting points-to-grid and having the final line be used to slice directly through a mesh to cut in half?

(I've seen scripts do a similiar boolean, but they snap to existing verts or they subdivide evenly between edges. This idea isn't restricted to the selected mesh verts, edges or polys. It's only restricted to the current world
grids size. Not to really be used in persective, just top or side windows.)

2) Draw (or create a poly in this method (vert snap to grid by enclosing the line). Or is NURBS the answer?

3) Can Maya have 'handles' around meshes?

(a square box the surrounds the selection with handles to scale, instead of selecting the scale tool and having it scale around the pivot or axis)

4) Would it be possible to create a "point-of-interest" axis in the scene? This would act as a moveable global pivot point for any objects selected, a creation point for new meshes or clipboard objects, and a way to center view focus or snap-to camera.

Some Lighter questions:

5) No Mouse Scroll Wheel support through MEL? I read it's not possible to bind or use this. I thought I heard it exists in Maya 6.0 however.

6) Can you bind hotkeys to any action or script?

7) Is it possible to tear off user-made boxes or windows from say, a tabbed list window?

8) Is there a way to have Maya remember the state where windows scaled/placed on start-up? Or have the new scene command "open" a pre-arranged empty level?

TIA!

all of the others are simple with the exception of 4 wich is trickiest to implement.

1) not realy a ui quetstion at all is it, but rather a modelling one!

Anyway yes maya has a tool for this. And snapping like this is rather easy just hit x down.

So yes it can be done quite easily.

2) use create polygon tool, Altough a line can be convertted to polys rather easily using planar. or even mel. However closing a line by connecting to the first point is not a maya feature by default. It could be done but with a scriptjob since maya is more of a action based prog its not realy designed to do thiskind of speculations. Use oben close curves instead.

3) Yes! Rigging is the key. I think i have a ple demo floating around at my site somewhere.

4) Yes! This is actualy the heaviest question as it depends on many things to be bound dapands rtealy how you want it to operate.

Only pivot relocating is difficult, and even then only if you want the pivot to jump to the point on sleection without any other input. But quite doable none the less.

5) No, its hardcoded to zoom on behalf of request form users... Its like the alty button hardcoded so you cant bind anything esle to it (unless you gind the camera atributes to this, but iy would still zoom the cam)

6) yes, us ethe hotkey editor, or mel for this also shift and alt can functiuon as modifers and the button may lauch a markingmenu to facilaite more actions per button.

7) yes its possible to make them tearable with a bit of code.

8) maya does this by default.

3) You can have a lattice that acts that way.
But its simple to move the pivot at every mesh selection. You can also use the object pivot when scaling (or rotating) mesh components, not the selection centre (as usual).

6) Hotkeys is the force!!! I got set up lots of! Context-sensitive ones too.

3) or for a cube its rather simple, make 2 locators, parent the cube to one locator and move it s taht that the lower corner is in local 0 0 0 and upper in local 1 1 1, then parent the second locator to the first and and move itt to local 0 0 0 freeze delete history, move it to local 1 1 1, then connect its translate to cubes scale. now the cube will allways me done frm ne lecator to the next.

If you wish more global movement make a 3 locator and point cotrain the local one to it.

Als the frist locator defines the plane in wich the cube lies, one could make a locator with aim costraint to act as this one too.

6) and the single most usefull prebuilt hotkey is g!

Thanks for the replies Joojaa & ewerybody!

1) Good point; I'm looking into the myrid of modeling techinques Maya has right now. I'd almost prefer the snapping to be by default, rather than the other way around. Is there a way to make snapping always on and using X as a way to hotkey it off?

2) Thanks for the curve feedback! I'll add this to the research to-do-list.

3) Lattices! (of course) . For most of the game-world building, the object's pivot point isn't needed until the last step (if at all) before exporting. By not worrying about where each individual pivot point on each object, it cuts out the number of steps to modify it. This is where #4 came into play. It acts as a always-visibile-moveable pivot point for any selection.

Jooja, what did you mean by "ple demo" ? I tracked down your website and couldn't find anything but your linxz. (the old Tripping the Rift is fantastic!)

I can see where you're going with the Locator idea. I'll have to read up on locators. Were you suggesting setting this up for each object, or would it act as a script that occurs everytime you select an object?

4) This feature would act as (previously said) a pivot point for anything selected. There'd be no need to reposition an object's unique axis or group a series of objects and change that parent's axis before rotation or scaling.

It would be tied into hotkeys, but always on (never need to select it). For moving around one key would snap it's location to where your mouse arrow is. Then you'd select an object (revealing it's rigging or lattice cube). From there you could hold down one key to use the "hot-spot" as a rotation axis for the selected object(s) with mouse movement. The same could apply towards scaling. This would also act as an insertion location for creating or adding (importing or pasting) new objects.

I suppose it'd be like an always active parent group? Anything selected gets temporarily added to this invisible node when selected, therefore inheriting it's axis for scaling or rotation?

5) Wow. Too bad! It'd be great to bind it context-sensative options (a'la scroll for menus or scale for scaling objects?) Is this something API plugins could work around?

6) Good! glad to hear there's no real limitations to hotkeys! "G" is a fanastic action to have!

7) okay, I'll keep tearables in mind, but not high on the list. It would be nice for users to have their own layout, with easy cleanup (by closing all torn-off windows, they snap back into the main window as tabs).

8) I noticed Maya remebers its window states. It doesn't seem to work well with dual monitor's though. I found another forum post about creating a new scene that has pre-existing rules to it (like a template). That helps give me some direction

Thanks again for the feedback guys! My schedule is a bit hectic as the year ends. I don't want that to get in the way of researching new ways to use Maya, though!

1) push down the buttons on the statusline with the magnet icons on them! Its realy in the manual if i were you id start consulting it NOW not tomorrow or the near future hit f1 inside maya.

Anyway the mel exualients codes are.

snapMode -grid 1;
snapMode -curve 1;
snapMode -point 1;
snapMode -viewPlane 1;

3) no most of the things are tucked away under http://www.hut.if/~joojala2/highend because im not sure how much of them i can keep up without eatig too much bandwidth.

note that hotkey for moving pivot is any manip tool selected and insert. And objects can show their pivot, by enabling pivot displays (can be found under atribute editor ounder tsransform tabs pivot section, eco all to get the mel equalients). Pivot is showed a s a ball with a dot in middle. And yes you can move several pivots at once (play with the move settings of retain components on and off, using them of makes it possible to consolidate sevaral pivots at once)

you could do a script that makes this happen whenever you wish however you wish. Its not however wise to have scripts go of on their own like that on the long run.

as a 3 alternative you could use aapi to make a proper manipulator tool for this if you wish.

4) Again depends on how you wnat the operation of this feature work from yours standpoint. With a little (and with little i mean no noticable thing in workflow, jst smarter thinking) of user bending to maya workflow you can save a LOT of time of scripting.

5) NO! its permanently bound just like you cant remap the alt key, you could use the scrollwheel as long as your not in any viewpanell tough witha high probability.

6) note that G and g is a different hotkey!

7) maya does only like dual monitor setups whan the dual mode is set to spanning, itsa a alisa implementataion weakness as i se (and i mean its the only real weakness ive ever asessed from their part), and using any other mode is prolematic to say the least

anyway you can use mel to reposition them in a startup script.