Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-19 Thread Marcus Ottosson
Haha! On 19 Mar 2018 19:00, "Justin Israel" wrote: > > > On Mon, Mar 19, 2018, 10:45 PM Marcus Ottosson > wrote: > >> I find examples are often the best way of getting a point across, and I >> think what Justin is saying is that in place of this.. >> > > It's really a team effort. I'm more of a

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-19 Thread Justin Israel
On Mon, Mar 19, 2018, 10:45 PM Marcus Ottosson wrote: > I find examples are often the best way of getting a point across, and I > think what Justin is saying is that in place of this.. > It's really a team effort. I'm more of a big picture idea man, and you are like the front man in the band. i

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-19 Thread Marcus Ottosson
I find examples are often the best way of getting a point across, and I think what Justin is saying is that in place of this.. import maya.cmds as _temp_cmds You do.. import maya.cmds And then use maya.cmds wherever you would normally use _temp_cmds. This way, nothing is redefined and nothing n

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-18 Thread Justin Israel
On Mon, Mar 19, 2018 at 1:06 PM Michael Boon wrote: > > > On Friday, 16 March 2018 11:44:02 UTC+11, Justin Israel wrote: > > On Fri, Mar 16, 2018, 11:47 AM Michael Boon wrote: >> >>> No matter what name I import maya.cmds as (including simply importing it >>> as maya.cmds) I add that name to the

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-18 Thread Michael Boon
On Friday, 16 March 2018 11:44:02 UTC+11, Justin Israel wrote: > On Fri, Mar 16, 2018, 11:47 AM Michael Boon > wrote: > >> No matter what name I import maya.cmds as (including simply importing it >> as maya.cmds) I add that name to the global namespace. >> I think the robust approach is to cho

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-15 Thread Justin Israel
create >>>>> name >>>>> in the global python env that may not get used. >>>>> >>>>> >>>>>> >>>>>> On Thursday, 15 March 2018 14:32:43 UTC+11, Ian Jones wrote: >>>>>> >>>>>>> That

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-15 Thread Michael Boon
;>>>> >>>>>> >>>>>> On Wed, Mar 14, 2018, 7:27 PM Michael Boon wrote: >>>>>> >>>>>>> That works for Python plugins! It won't be quite so simple for a C++ >>>>>>> plugin (which my exporter is)

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-15 Thread Marcus Ottosson
Python plugins! It won't be quite so simple for a C++ >>>>>> plugin (which my exporter is) but I will give it a try and report >>>>>> back. >>>>>> >>>>>> @Ian Jones - I didn't know that wo

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-15 Thread Justin Israel
;>> >>>>> On Wednesday, 14 March 2018 21:00:14 UTC+11, Justin Israel wrote: >>>>> >>>>>> >>>>>> >>>>>> On Wed, Mar 14, 2018, 2:18 PM justin hidair >>>>>> wrote: >>>>>> >>>

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-15 Thread Michael Boon
od question tho >>>>>> >>>>> Help flag seems like a good suggestion, seeing as you don't have >>>>> control over the function that gets injected into the commands namespace >>>>> to >>>>> wrap your plugin.

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-15 Thread Justin Israel
t;>>> I haven't tried it, so this is just a brainstorm. What would happen if >>>> you manually set cmds.ExportModel.__doc__ at the end of >>>> your initializePlugin(mobject) function? Would it even let you? Would it >>>> then allow do

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-14 Thread Michael Boon
ould happen if >>> you manually set cmds.ExportModel.__doc__ at the end of >>> your initializePlugin(mobject) function? Would it even let you? Would it >>> then allow docstrings to work properly? >>> >>> >>> >>>> >>>> Sent from Mail

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-14 Thread Ian Jones
>>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for >>> Windows 10 >>> >>> >>> >>> *From: *Michael Boon >>> *Sent: *Wednesday, March 14, 2018 12:59 AM >>> *To: *Python Programming for Autodesk Maya

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-14 Thread Michael Boon
Would it > then allow docstrings to work properly? > > > >> >> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for >> Windows 10 >> >> >> >> *From: *Michael Boon >> *Sent: *Wednesday, March 14, 2018 12:59 AM >&

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-14 Thread Ian Jones
t; >> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for >> Windows 10 >> >> >> >> *From: *Michael Boon >> *Sent: *Wednesday, March 14, 2018 12:59 AM >> *To: *Python Programming for Autodesk Maya >> >> *Subject: *[Maya-Python]

Re: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-14 Thread Justin Israel
gt; Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *Michael Boon > *Sent: *Wednesday, March 14, 2018 12:59 AM > *To: *Python Programming for Autodesk Maya > > *Subject: *[Maya-Python] Can Maya plugins do any self-docume

RE: [Maya-Python] Can Maya plugins do any self-documentation?

2018-03-13 Thread justin hidair
I guess you can do a command with a help flag to accommodate as a workaround, that’s a good question tho Sent from Mail for Windows 10 From: Michael Boon Sent: Wednesday, March 14, 2018 12:59 AM To: Python Programming for Autodesk Maya Subject: [Maya-Python] Can Maya plugins do any self

[Maya-Python] Can Maya plugins do any self-documentation?

2018-03-13 Thread Michael Boon
I have a plugin called ExportModel*. If I do help(cmds.ExportModel ) I get Help on function ExportModel in module maya.cmds: > > ExportModel(*args, **keywords) > which is next to useless. Is there a way I can publish the expected arguments and return values of my plugin so that other scripters