Hey Ravi,

I believe he already referenced this class via the plugin example, but was
confused as to how to use it in an editable manner. I too, not having used
this class directly, didn't see an obvious way to receive a callback of
edits being made to the table. What would be the approach to receiving
callbacks of updates, similar to how you would set a calback using
maya.cmds.scriptTable?


On Mon, May 21, 2012 at 5:06 PM, Ravi Jagannadhan <[email protected]> wrote:

> The 'MPxUITableControl' class in the API, rather :)
>
> On Mon, May 21, 2012 at 5:06 PM, Ravi Jagannadhan <[email protected]>
> wrote:
> > You can use the API to make a custom spreadsheet. The
> > 'MPxUITableControl' lets you do this.
> >
> > On Mon, May 21, 2012 at 5:04 PM, Justin Israel <[email protected]>
> wrote:
> >> I don't see any straightforward way that they expect you to be able to
> >> receive the callbacks for the table if you create them with that plugin
> via
> >> the API. I could be missing something since I have never used that
> approach
> >> to make interfaces before. Your best bet, if you are trying to avoid the
> >> dependency of Qt/PyQt, is to just use a scriptTable:
> >>
> http://download.autodesk.com/global/docs/maya2012/en_us/CommandsPython/scriptTable.html
> >> That apparently wraps around the API-based table, but also gives you a
> >> cellChangedCmd callback so you can handle edits.
> >>
> >>
> >>
> >> On Mon, May 21, 2012 at 3:47 PM, ogre <[email protected]> wrote:
> >>>
> >>> Hello
> >>> This question might be somewhat offtopic, but I couldn't get
> >>> information
> >>> elsewhere - perhaps someone can help.
> >>> So...
> >>> I need a sortof SpreadSheet control that is not connected to any
> >>> objects
> >>> and attributes.
> >>> Standard maya "spreadSheetEditor" lists nodes as rows and attributes
> >>> as
> >>> columns. How would I create a similar UI that is not dependand on any
> >>> nodes? I'd like to explicitly specify string arrays for rows and
> >>> colums,
> >>> and be able to read values from certain cells.
> >>> The bigger picture: I've got a list of lightGroups and list of
> >>> renderpasses/AOVs, and I'd like to set on/off relationship between
> >>> any
> >>> lightGrp/renderpass. Spreadsheets seems most convinient for this
> >>> purpose.
> >>> I found a devkit example "mathTableControl.py" using
> >>> MPxUITableControl,
> >>> but  I couldn't get it to accept interactive input.
> >>> Maybe it's possible with some kind of PyQT control ? However I'd like
> >>> to
> >>> stay away from external dependecies if that's possible.
> >>>
> >>> thanks for any tips
> >>> -michal
> >>>
> >>> --
> >>> view archives: http://groups.google.com/group/python_inside_maya
> >>> change your subscription settings:
> >>> http://groups.google.com/group/python_inside_maya/subscribe
> >>
> >>
> >> --
> >> view archives: http://groups.google.com/group/python_inside_maya
> >> change your subscription settings:
> >> http://groups.google.com/group/python_inside_maya/subscribe
> >
> >
> >
> > --
> > Where we have strong emotions, we're liable to fool ourselves - Carl
> Sagan
>
>
>
> --
> Where we have strong emotions, we're liable to fool ourselves - Carl Sagan
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to