How Do I Change The Dope Sheet Layout

Need to make my own dope sheet editor, and there doesn't seem to be any documentation on how to do it ... really all i want is the actual time line with tick marks for key frames and the ability to select them and move them... in a custom made window..

so far i've only been able to get the default dope sheet to show up.

Depends on what you mean with that. The dope sheet control is hard coded, but everything around it is changeable. So the gray area sis what it is, the buttons and the outliner part, marking menu, top menus are changeable.

Try reading the script fiels that build the dope sheet for starters (echo all and whatIs for whaile it should become obvious, usually the easiest wahy is t whatis the marking menu callback)

QUOTE
and there doesn't seem to be any documentation on how to do it

Documentation rarely works this way. It works in way that says how it works not how to do somethings specific. (since telling how something works implies how to do things, off course any document writer cant know what you are going to do if they did then they would have done it for you instead. So if the dcumentation would work in in this manner it would indeed be a stupid document, as theres no point in documenting something you wont be doing since its done allready)

yeah I'm looking in those files too...
basically i only want the actual dope sheet displayed, none of the menu or option at the top, not the outliner i've made my own that specific for this task.

however once I call scriptPanel -type "dopeSheetPanel" .....
it automatically starts to set up the default one regardless of the uiTemplate I set up and call with the -ut flag, and the dopeSheetEditor command doesn't seem to have the flag that says
-outlinerVisibility "false" or anything else I need to get rid of.

I would expect some documentation somewhere (including outside sources like complete maya programming books) to have a list of commands, and here's the flags on these commands, here's what they do... oh well.

thanks for your input.
:slight_smile:

QUOTE
however once I call scriptPanel -type "dopeSheetPanel" .....
it automatically starts to set up the default one regardless of the uiTemplate I set up and call with the -ut flag, and the dopeSheetEditor command doesn't seem to have the flag that says

Well i wouldnt even begin to think that taht would do anything since in essence scriptPanel -type "dopeSheetPanel" calls for the script a new and that deines its own template settings. You need to begin form scratch.

scriptPanel is not actually jsuta part of a gui item it IS the entire window declaration. All windows you amke for gui should also be scriptedPanel types if you want to be even remotely thorough

just call dopeSheetEditor when your gui container is set up.

also dopeSheetEditor has been crashing maya in my code... seems it has to be in some sort of panel and not just a formLayout...
unless when during testing I'm not including a flag that tells maya "don't crash when using this command"
lol

it even fatal errors maya when I just type in:
window;
formLayout;
dopeSheetEditor;
showWindow;

yes it has to be in a panel. For god of me dont know why but such is life.