Re: [Maya-Python] Re: [QUATERNION] Slerp

2017-09-20 Thread RĂ©mi Deletrain
I did not risk using it in this case the ... :) The api 2.0 is really better. I have seen post with people who had a lot of problems with that. That's why we stayed on the 1.0. I have not yet had time to make a test scene. I have bee overworked since the begenning of the week. I do this as soon

[Maya-Python] How to capture the contents of this file.

2017-09-20 Thread jettam
I am trying to capture the contents of this text document so I can operate on it. The contents is several lines making a paragraph. This is the approach I was taking but its not working. Any other suggestions ? inFile = r'E:\ProfessionalDevelopment\python\Python Scripting in Maya\week4\famou

[Maya-Python] [API] Is there a way to return a list of nodes from a imported scene using open maya?

2017-09-20 Thread I73
This is not really a python it's a C++ question but Open maya can work here, since there is no 'C++ programming for Autodesk Maya' google group. Python 'cmds.file(file, i = True) returns a list of nodes, but looking through the API there is no such function to return that list. The tool opens

[Maya-Python] Re: Import plugin (MPxFileTranslator)

2017-09-20 Thread I73
Hey Micheal, I create plugins in the C++ API so pardon if I don't have all your answers, MPxFileTranslator exists in the open maya module (class) This is the hook to the API, an example can be found here: http://download.autodesk.com/us/maya/2010help/API/custom_node_file_translator_8py-example.

Re: [Maya-Python] [API] Is there a way to return a list of nodes from a imported scene using open maya?

2017-09-20 Thread Justin Israel
C++ topics are fine, regardless of the title of the group. We tend to chat about anything related to VFX development, but commonly it is Maya development. I think your two options through the C++ api are to either 1) save the current list of node, do the import, and then get the difference betwee

Re: [Maya-Python] [API] Is there a way to return a list of nodes from a imported scene using open maya?

2017-09-20 Thread Nicolas Combecave
Did not test, but there is this flag you can pass to the command: file -import -returnNewNodes The doc says it will return the nodes added to the scene... - Nicolas 2017-09-20 21:41 GMT+02:00 Justin Israel : > C++ topics are fine, regardless of the title of the group. We tend to chat > about

Re: [Maya-Python] How to capture the contents of this file.

2017-09-20 Thread Justin Israel
On Thu, Sep 21, 2017, 5:49 AM jettam wrote: > I am trying to capture the contents of this text document so I can operate > on it. The contents is several lines making a paragraph. > > This is the approach I was taking but its not working. Any other > suggestions ? > > inFile = r'E:\ProfessionalDe

Re: [Maya-Python] [API] Is there a way to return a list of nodes from a imported scene using open maya?

2017-09-20 Thread Wesley Keeling
Currently my work around is importing with a name space. I was thinking of comparing but there is just too many nodes. 2) do the import through MGlobal::executeCommand and get the nodes from the command apis high level import Do you have a suggestion on how to do this? I did not know I could retu

Re: [Maya-Python] [API] Is there a way to return a list of nodes from a imported scene using open maya?

2017-09-20 Thread Justin Israel
On Thu, Sep 21, 2017, 7:50 AM Wesley Keeling wrote: > Currently my work around is importing with a name space. I was thinking of > comparing but there is just too many nodes. > > 2) do the import through MGlobal::executeCommand and get the nodes from > the command apis high level import > > Do yo

Re: [Maya-Python] [API] Is there a way to return a list of nodes from a imported scene using open maya?

2017-09-20 Thread Nicolas Combecave
Mmmm I just misread the very first mail, where you specify you need to do it with the api.. Sorry for the noise. 2017-09-20 21:59 GMT+02:00 Justin Israel : > > > On Thu, Sep 21, 2017, 7:50 AM Wesley Keeling > wrote: > >> Currently my work around is importing with a name space. I was thinking >>

Re: [Maya-Python] [API] Is there a way to return a list of nodes from a imported scene using open maya?

2017-09-20 Thread Wesley Keeling
You are correct, for some reason I missed the ref params :/ On Wed, Sep 20, 2017 at 12:59 PM, Justin Israel wrote: > > > On Thu, Sep 21, 2017, 7:50 AM Wesley Keeling > wrote: > >> Currently my work around is importing with a name space. I was thinking >> of comparing but there is just too many