Re: [Maya-Python] MFnMesh.setVertexNormal Huge performance issue

2017-02-25 Thread Christopher Crouzet
. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/11408607-bfc6-4faa-a852- > 20756b39921e%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/11408607-bfc6-4faa-a852-20756b39921e%40googlegroups.com?utm_medium=emai

Re: [Maya-Python] Subprocess and deadlock

2017-02-22 Thread Christopher Crouzet
ail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBX--vbvpOzUDP%2BsiX04MpT-yBMaj6DXwao2sk%3DFz6nPw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Christopher Crouzet *https:/

Re: [Maya-Python] Subprocess and deadlock

2017-02-22 Thread Christopher Crouzet
wrote: > Thanks Christopher. > > Maybe readline() is one of these, meaning that it won’t return until it > receives something, which might never happen in your case after exiting > Maya? > > That’s right, readline() blocks until something is passed, via send() in > th

Re: [Maya-Python] Subprocess and deadlock

2017-02-22 Thread Christopher Crouzet
//groups.google.com/d/ > msgid/python_inside_maya/CAFRtmOATTheY4DsCQbrLugUQxJgq7 > OSyNdHTUY%3Db%3DWvU1kZ_HQ%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOATTheY4DsCQbrLugUQxJgq7OSyNdHTUY%3Db%3DWvU1kZ_HQ%40mail.gmail.com?utm_medium=email&utm_source

Re: [Maya-Python] mayapy questions

2017-01-19 Thread Christopher Evans
ing pipe before, but it wasn't really working. I believe the issue is that I am running this popen from here: https://github.com/chrisevans3d/mayaTaskServer/blob/master/server.py#L275 On Thu, Jan 19, 2017 at 7:17 PM, Justin Israel wrote: > > > On Fri, Jan 20, 2017 at 10:34 AM Christoph

Re: [Maya-Python] mayapy questions

2017-01-19 Thread Christopher Evans
obably one or both of those in the past as well, without an > issue in collecting stdout for display. > > @Christopher, we probably need to see a small example of what you are > doing, that isn't working as expected. > > >> On Thu, Jan 19, 2017 at 5:34 AM, Marcus Ottosson

[Maya-Python] mayapy questions

2017-01-18 Thread Christopher Evans
I am making a freely available maya task server. If you'd like to help lemme know. Basically you send it maya files and tasks to run on them, like batching animations to FBX, validating files, publishing files, etc. Anyway, I have been having a difficult time getting the stdout of a mayapy launche

Re: [Maya-Python] bakeresults in Python is super slow

2016-12-24 Thread Christopher Crouzet
from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/CAKq4km-qgWqQZpVMa9biYMuTTvSh8GiKdfM7y > 1xmNYZ%2BeivpKQ%40mail.gmail.com &g

Re: [Maya-Python] Re: Python API - How to extract all the infos from a MSelectionList() ?

2016-09-11 Thread Christopher Crouzet
ogle.com/d/ > msgid/python_inside_maya/69b5b759-2e21-46f3-86ba- > 1eb36b306c9e%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/69b5b759-2e21-46f3-86ba-1eb36b306c9e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more optio

Re: [Maya-Python] Re: Python API - How to extract all the infos from a MSelectionList() ?

2016-09-11 Thread Christopher Crouzet
ide_maya/cfccff47-61ad-49d6-8368-a1952026ca57%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Christopher Crouzet *http://christophercrouzet.com* <http://christophercrouzet.com> -- You recei

Re: [Maya-Python] Re: Python API - How to extract all the infos from a MSelectionList() ?

2016-09-11 Thread Christopher Crouzet
44a7e%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/1ee3bade-2249-4dd2-9767-3bfbf5f44a7e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Christopher Crouzet *h

Re: [Maya-Python] Import Skin Weight maps without DialogBox

2016-09-11 Thread Christopher Crouzet
0e2-baaf-7110c65d9382%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Christopher Crouzet *http://christophercrouzet.com* <http://christophercrouzet.com> -- You received this message because you are

Re: [Maya-Python] Python API - How to extract all the infos from a MSelectionList() ?

2016-09-11 Thread Christopher Crouzet
group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/bf9d3aa6-1566-418b-aaf1- > f3ebbfa9395f%40googlegroups.com > <https://group

Re: [Maya-Python] Sphinx issues with OpenMaya?

2016-09-07 Thread Christopher Crouzet
tation refers to? > > Hi Christopher, Mark was referring to this by name in the original > question as one of the requirements for his document generation. > > For completeness, here it is again. > > > all our unitTests run fine and those all call the same Maya boot > sequen

Re: [Maya-Python] Sphinx issues with OpenMaya?

2016-09-07 Thread Christopher Crouzet
PS: the mock code isn't mine and I failed to credit the original author in my repository, so here it is for now: http://stackoverflow.com/a/23573376/1640404. I'll add the link in a future commit. On 7 September 2016 at 17:13, Christopher Crouzet < christopher.crou...@gmail.com>

Re: [Maya-Python] Sphinx issues with OpenMaya?

2016-09-07 Thread Christopher Crouzet
medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Christopher Crouzet *http://christophercrouzet.com* <http://christophercrouzet.com> -- You received this message because you are subscribed to the Google Groups &q

Re: [Maya-Python] Sphinx issues with OpenMaya?

2016-09-07 Thread Christopher Crouzet
sp6eXVAbMOnrRBQ%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD6ZVDM6dcxH6gh3NMqFh8FyvPt9pksp6eXVAbMOnrRBQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Christop

Re: [Maya-Python] Sort a list using another list

2016-08-21 Thread Christopher Crouzet
Thanks to both of you for your rapid responses! Using Christopher's > example I was able to get it working to where it could sort the uvs by > their shell (I must confess I don't exactly understand how the > sort_uvs_by_shells function works, but I'll study up on it and

Re: [Maya-Python] Sort a list using another list

2016-08-17 Thread Christopher Crouzet
stand something! :) On 18 August 2016 at 11:41, Justin Israel wrote: > > > On Thu, Aug 18, 2016 at 4:40 PM Justin Israel > wrote: > >> On Thu, Aug 18, 2016 at 4:34 PM Christopher Crouzet < >> christopher.crou...@gmail.com> wrote: >> >>> If I'm

Re: [Maya-Python] Sort a list using another list

2016-08-17 Thread Christopher Crouzet
end an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/f2705166-dc4d-47b9-a3f0- > 4272923fc084%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside

Re: [Maya-Python] trying to understand the handles in API

2016-08-10 Thread Christopher Crouzet
receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/d7383962-8cee-4e9c-b57d- > df86ea8226f0%40googlegroups.com > <https://groups.google

Re: [Maya-Python] quick MVector question

2016-07-18 Thread Christopher Crouzet
7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Christopher Crouzet *http://christophercrouzet.com* <http://christophercrouzet.com> -- You received this message because you are subscribed to the Goo

[Maya-Python] MIteratorType::setFilterList not working with some types?

2016-07-04 Thread Christopher Crouzet
rator = OpenMaya.MItDependencyNodes(iterator_type) count = 0 while not iterator.isDone(): count += 1 iterator.next() print(count) In this snippet I'd expect `count` to be 1 but instead no nodes were found. Tested on Maya 2016 SP6. Cheers! -- Christopher Crouzet *http://christophercrouzet.

Re: [Maya-Python] args & kwargs

2016-06-05 Thread Crest Christopher
AM On 2 Jun 2016 1:03 AM, "Christopher." <mailto:crestchristop...@gmail.com>> wrote: > > I'm hoping someone can re-interpret how to use *args & **kwargs ? def foo(*args, **kwargs): print(args) print(kwargs) *args means the function/method accepts any number of ar

Re: [Maya-Python] args & kwargs

2016-06-05 Thread Crest Christopher
I think, I hope, I understand it by this point ;-) Rudi or anyone else ;-) In the video correct me if I'm wrong but he was debugging code within Sublime text ? Cesar Saez wrote: On 2 Jun 2016 1:03 AM, "Christopher." mailto:crestchristop...@gmail.com>> wrote: > >

Re: [Maya-Python] args & kwargs

2016-06-01 Thread Crest Christopher
<https://groups.google.com/d/msgid/python_inside_maya/CACqGScisHLKQc3CoNf5LhXdadRAMEvDM1%3DAk%3DkgKqskfQVwqrg%40mail.gmail.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. Christopher. <mailto:crestchristop...@gmail.com> Wednesday, June

[Maya-Python] args & kwargs

2016-06-01 Thread Christopher.
Hi, I understand what a non-keyword is, basically an argument, while a keyword is an variable inside and argument. What I'm having trouble understanding is *args & *kwargs. I found this site but I'm still stuck.

Re: [Maya-Python] Query created Object ?

2016-05-18 Thread Crest Christopher
I'm more glad then you are. Justin Israel wrote: Awesome! Glad you got it working! On Thu, May 19, 2016 at 2:21 PM Christopher. mailto:crestchristop...@gmail.com>> wrote: Ah, so my original method wasn't too far off, good to know :) Thanks. All my other python issues

Re: [Maya-Python] Query created Object ?

2016-05-18 Thread Christopher.
Ah, so my original method wasn't too far off, good to know :) Thanks. All my other python issues in the past got resolved as well recently. On Wednesday, May 18, 2016 at 9:16:48 PM UTC-4, Justin Israel wrote: > > > > On Thu, May 19, 2016 at 1:09 PM Christopher. > wrote: &

[Maya-Python] Query created Object ?

2016-05-18 Thread Christopher.
How do you query something that was created, simply such as this; rad = maya.cmds.polyCube (width=2.0, height=4.0); -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving email

Re: [Maya-Python] Re: Python Modules in System Environment Variable ?

2016-04-04 Thread Crest Christopher
Justin Israel <mailto:justinisr...@gmail.com> Monday, April 04, 2016 7:55 PM On Tue, Apr 5, 2016 at 11:53 AM Crest Christopher mailto:crestchristop...@gmail.com>> wrote: my_python_stuff folder as you have in your system; is stated in PYTHONPATH in your Maya.env f

Re: [Maya-Python] Re: Python Modules in System Environment Variable ?

2016-04-04 Thread Crest Christopher
ts execute ? Justin Israel <mailto:justinisr...@gmail.com> Monday, April 04, 2016 7:49 PM On Tue, Apr 5, 2016 at 11:43 AM Crest Christopher mailto:crestchristop...@gmail.com>> wrote: Justin can you make a video of your Maya.env including the Maya.env, including PYTHONPATH as we

Re: [Maya-Python] Re: Python Modules in System Environment Variable ?

2016-04-04 Thread Crest Christopher
one match and see where there is a inconsistency. Justin Israel <mailto:justinisr...@gmail.com> Monday, April 04, 2016 7:37 PM On Tue, Apr 5, 2016 at 11:15 AM Christopher. mailto:crestchristop...@gmail.com>> wrote: It sounds as if there is absolutely no way for the Py

[Maya-Python] Re: Python Modules in System Environment Variable ?

2016-04-04 Thread Christopher.
y Maya.env file restart and presto it would work. On Monday, March 28, 2016 at 10:00:37 PM UTC-4, Christopher. wrote: > > I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path used > for the modules to append to a system environment > variable; C:\Python27\modules

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-02 Thread Christopher.
On Saturday, April 2, 2016 at 7:24:20 PM UTC-4, Justin Israel wrote: > > > > On Sun, Apr 3, 2016 at 10:56 AM Christopher. > wrote: > >> >> >> On Saturday, April 2, 2016 at 5:05:08 PM UTC-4, Justin Israel wrote: >> >>> >>>

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-02 Thread Christopher.
On Saturday, April 2, 2016 at 5:05:08 PM UTC-4, Justin Israel wrote: > > > > On Sun, Apr 3, 2016 at 12:28 AM Christopher. > wrote: > >> >> >> On Saturday, April 2, 2016 at 12:04:27 AM UTC-4, Justin Israel wrote: >> >>> >>> I was hopin

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-02 Thread Christopher.
n the userSetup.mel, enter the path name to which where my python scripts are stored on my system restart Maya and those python scripts should work as they can find the Python modules, that as well is not the case and didn't work. On Saturday, April 2, 2016 at 7:28:29 AM UTC-4, Christop

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-02 Thread Christopher.
On Saturday, April 2, 2016 at 12:04:27 AM UTC-4, Justin Israel wrote: > > > > On Sat, 2 Apr 2016 4:52 PM Christopher. > wrote: > >> >> >> On Friday, April 1, 2016 at 11:37:06 PM UTC-4, Justin Israel wrote: >> >>> >>> >>> On S

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Christopher.
On Friday, April 1, 2016 at 11:37:06 PM UTC-4, Justin Israel wrote: > > > > On Sat, 2 Apr 2016 3:50 PM Christopher. > wrote: > >> There was extras related to other plug-ins I removed them and kept it to >> the relevant information to which the command spit

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Christopher.
> > > On Sat, 2 Apr 2016 12:56 PM Crest Christopher > wrote: > >> That wasn't the case when the Python Module path was in my system >> environment variable; I didn't need to have all my Python Maya scripts in >> the Python Modules path location ? &

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Crest Christopher
t;https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AvNa-k%3DJ5em7QATNpTqJihSLJkgVDsbSgg4iRrfnX4Q%40mail.gmail.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. Crest Christopher <mailto:crestchristop...@gmail.com> Friday, April 01

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Crest Christopher
/groups.google.com/d/msgid/python_inside_maya/CAPGFgA2FDNvxBZLYWDQ8RPxRiGAbV8o2bxR9j6HV50CeLfjcVg%40mail.gmail.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. Crest Christopher <mailto:crestchristop...@gmail.com> Friday, April 01, 2016 4:20 PM No. When I had a system e

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Christopher.
gt; located? > Obviously your standard environment has those locations in the PYTHONPATH > and Maya's env does not. > > It isn't a complicated concept. If you add the locationa of your scripts > and dependencies to the sys.path in Maya, then you should be able to import

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Crest Christopher
No. When I had a system environment variable set for Python modules, I didn't have all the Python scripts in the Python modules path and the scripts worked perfectly. Justin Israel wrote: Are you python scripts inside that location? On Sat, Apr 2, 2016 at 8:04 AM Christ

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-04-01 Thread Christopher.
, the Python modules continue not to be found ? On Wednesday, March 30, 2016 at 3:41:38 PM UTC-4, Christopher. wrote: > > I meant, *what we all know*, in other words, if scripts can't find python > modules, *most* of the time they won't execute. > > All python scripts are re

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-30 Thread Christopher.
at 3:11:31 PM UTC-4, Justin Israel wrote: > > > > On Thu, 31 Mar 2016 8:00 AM Christopher. > wrote: > >> If you were implying that I should use the path >> Python27/Lib/site-packages instead of Python27/modules; I tried the change >> but the result was the sam

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-30 Thread Christopher.
gt; live under > Python27/Lib/site-packages? > > On Thu, 31 Mar 2016 1:05 AM Christopher. > wrote: > >> I have a custom MAYA_APP_DIR in the system environment variable to which >> that creates a custom default maya installation path, rather it being >> MyDocuments>

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-30 Thread Christopher.
hich searched for Python modules and nothing ? On Wednesday, March 30, 2016 at 3:08:58 AM UTC-4, Justin Israel wrote: > > He was just showing you how to append any number of paths,if your have > multiple locations. It sounds like you only need one. > > On Wed, 30 Mar 2016 2:49 PM

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-29 Thread Christopher.
y modules there you want to load > automatically. > if you have a package you would like to load, then it's best to put it in > the site-packages directory in your maya install > > > On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher > wrote: > >> Thanks for t

Re: [Maya-Python] Python Modules in System Environment Variable ?

2016-03-28 Thread Crest Christopher
_source=footer>. For more options, visit https://groups.google.com/d/optout. Christopher. <mailto:crestchristop...@gmail.com> Monday, March 28, 2016 10:00 PM I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path used for the modules to append to a system environment

[Maya-Python] Python Modules in System Environment Variable ?

2016-03-28 Thread Christopher.
I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path used for the modules to append to a system environment variable; C:\Python27\modules\modules ? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To uns

Re: [Maya-Python] Restarting Script Message ?

2016-02-26 Thread Christopher.
Israel wrote: > > > > On Sat, Feb 27, 2016 at 8:08 AM Christopher. > wrote: > >> I understand there is not enough information; but that is all the >> information I'm given in the script editor, it's not an error. As I said, >> when I restart Maya, I

Re: [Maya-Python] Restarting Script Message ?

2016-02-26 Thread Christopher.
aya, I can run the script just fine, when I close the script and try to run it again; this is what the script editor spits out ? On Friday, February 26, 2016 at 1:43:40 PM UTC-5, Justin Israel wrote: > > > > On Sat, 27 Feb 2016 5:32 AM Christopher. > wrote: > >> Any ide

[Maya-Python] Restarting Script Message ?

2016-02-26 Thread Christopher.
Any idea as to why I can execute a script once when Maya restarts; although when closing the script and trying to execute the script again, I get the following, message ? // Result: > scriptEditorPanel1Window|TearOffPane|scriptEditorPanel1|formLayout134|formLayout136|paneLayout5|formLayout137|t

Re: [Maya-Python] Re: Retain polygon position but make planar

2016-02-09 Thread Crest Christopher
less important than having the right vertex normals for good lighting. On 10 February 2016 at 14:22, Crest Christopher mailto:crestchristop...@gmail.com>> wrote: Why does Maya have this toggle option to begin with, I say this because, if you have a clean mesh, nice edge loops

Re: [Maya-Python] Re: Retain polygon position but make planar

2016-02-09 Thread Crest Christopher
n do. On Sunday, 31 January 2016 18:31:00 UTC+11, Christopher. wrote: I was going to make a video; but you understood perfectly. If the edge flow is how it should be by design; how do I change it without triangulating ? I've tried deleting the faces and recreating the faces

Re: [Maya-Python] Re: Retain polygon position but make planar

2016-01-30 Thread Christopher.
re's really any wiggling you can do to the verts that will make > all those faces planar. You'd have to triangulate those three faces, or > completely change the edge flow. > > > On Thursday, 28 January 2016 04:55:04 UTC+11, Christopher. wrote: >> >> I tried

Re: [Maya-Python] Re: Retain polygon position but make planar

2016-01-27 Thread Christopher.
a non planar face to make it planar, a > previously adjacent planar face may become non-planar... > > 2016-01-27 18:18 GMT+01:00 Christopher. >: > >> It should move the vertices, I assume very subtle; otherwise if it's too >> exaggerated the angle or flow of the polyg

[Maya-Python] Re: Retain polygon position but make planar

2016-01-27 Thread Christopher.
split the polygon? > > Finding non-planar faces and triangulating them is quite simple, as Maya > has commands to do each of those things. > > Moving verts would take some maths. > > > On Wednesday, 27 January 2016 02:09:00 UTC+11, Christopher. wrote: >> >> Hi,

[Maya-Python] Retain polygon position but make planar

2016-01-26 Thread Crest Christopher
Hi, I'm hoping someone on this list can help. I'm looking for a script that can retain the current polygon(s) rotation as modeled on an object, not to destroy the appearance of the mesh, of course. Even the polygons out so they go from non-planar to planar; I hope that was understood ? Thank

[Maya-Python] Re: cmds.xform with 'reflection'

2016-01-11 Thread Christopher Evans
So it looks like the reflection flag is not a reflection matrix, but the ability to transform two nodes at once. It uses the axxis you set to find a mirror node with a tolerance and then applies the xform to both nodes? On Tue, Jul 15, 2014 at 1:05 PM, Christopher Evans wrote: > I was wonder

[Maya-Python] Re: Duplicate output window ?

2015-12-16 Thread Christopher.
igg.com/maya-scripts/dockable-output-window > > On Friday, 19 June 2015 17:46:38 UTC-7, Christopher. wrote: >> >> Can we not feed what the output window produces into another output >> window with line numbers and such for easier debugging and cutting and >> pasting ? Ma

Re: [Maya-Python] Scripts and Management

2015-10-25 Thread Crest Christopher
No, nothing changed ? Justin Israel wrote: Did your script name just change since the last example you gave? On Mon, 26 Oct 2015 8:19 AM Christopher. <mailto:crestchristop...@gmail.com>> wrote: Same error, No module named; SuperScript.SuperScript (Package \ Script name

Re: [Maya-Python] Scripts and Management

2015-10-25 Thread Christopher.
Same error, No module named; SuperScript.SuperScript (Package \ Script name) On Sunday, October 25, 2015 at 2:46:03 PM UTC-4, Justin Israel wrote: > > > On Mon, 26 Oct 2015 4:30 AM Christopher. > wrote: > > I followed the instructions you posted and I got an error; > >

Re: [Maya-Python] Scripts and Management

2015-10-25 Thread Christopher.
Same error, No module named ? On Sunday, October 25, 2015 at 2:46:03 PM UTC-4, Justin Israel wrote: > > > On Mon, 26 Oct 2015 4:30 AM Christopher. > wrote: > > I followed the instructions you posted and I got an error; > > #Error: ImportError: No module name Supe

Re: [Maya-Python] Anonymous Script ?

2015-10-25 Thread Crest Christopher
26 Oct 2015 6:26 AM Crest Christopher mailto:crestchristop...@gmail.com>> wrote: Figure of speech ;-) Nicolas Combecave wrote: Mmm I think nobody here understood mel scripting in 5 seconds... 2015-10-25 16:37 GMT+01:00 Christopher. mailto:crestchristop...@gmail.com>>:

Re: [Maya-Python] Anonymous Script ?

2015-10-25 Thread Crest Christopher
Figure of speech ;-) Nicolas Combecave wrote: Mmm I think nobody here understood mel scripting in 5 seconds... 2015-10-25 16:37 GMT+01:00 Christopher. <mailto:crestchristop...@gmail.com>>: combi reply was informative and so what yours, Justin. From your reply Justi

Re: [Maya-Python] Anonymous Script ?

2015-10-25 Thread Christopher.
x27;s not happening ;-( On Sunday, October 25, 2015 at 3:47:19 AM UTC-4, Justin Israel wrote: > > > > On Sun, Oct 25, 2015 at 11:57 AM Christopher. > wrote: > >> From what I know, one should typically encapsulate MEL script in a >> GlobalProc, then that name of the GlobalP

Re: [Maya-Python] Scripts and Management

2015-10-25 Thread Christopher.
25, 2015 at 3:16:52 AM UTC-4, Justin Israel wrote: > > > On Sun, 25 Oct 2015 4:15 PM Crest Christopher > wrote: > > The script calls to be executed as such; Superscript.ui() ? > > > No. "Superscript" is the name of the package (directory). Then you have > som

Re: [Maya-Python] Scripts and Management

2015-10-24 Thread Crest Christopher
The script calls to be executed as such; Superscript.ui() ? AK Eric wrote: tl;dnr this whole thread. But you'd need to: import SuperScript.myModule SuperScript.myModule.myFunc() That's executing the myFunc function in the my myModule.py module living under /SuperScript dir. x:/../../python

Re: [Maya-Python] Anonymous Script ?

2015-10-24 Thread Christopher.
ou want to do it correctly with an understanding, that takes time, for some more time then others. On Saturday, October 24, 2015 at 6:37:49 PM UTC-4, Christopher. wrote: > > The script can't be renamed anything but rotateProjection or it doesn't > matter ? > > Justin I

Re: [Maya-Python] Scripts and Management

2015-10-24 Thread Christopher.
script, correction from previous, I get the error *SuperScript* is not defined ? On Saturday, October 24, 2015 at 2:58:17 PM UTC-4, Justin Israel wrote: > > > On Sun, 25 Oct 2015 4:10 AM Christopher. > wrote: > > Justin the __init__.py file should be in the location of the res

Re: [Maya-Python] Anonymous Script ?

2015-10-24 Thread Crest Christopher
The script can't be renamed anything but rotateProjection or it doesn't matter ? Justin Israel wrote: On Sun, 25 Oct 2015 3:35 AM Christopher. <mailto:crestchristop...@gmail.com>> wrote: I added the source command, and I used the globalProc within the script to

Re: [Maya-Python] Scripts and Management

2015-10-24 Thread Christopher.
thing wrong in either your environment, or you put it in a > sub-directory that doesnt have an __init__.py > > Python scripts should not go in your mel script path. > > On Mon, Oct 19, 2015 at 1:33 PM Christopher. > wrote: > >> I know there isn't a good err

Re: [Maya-Python] Anonymous Script ?

2015-10-24 Thread Christopher.
annot find Procedure* error ? On Saturday, October 24, 2015 at 2:07:11 AM UTC-4, Justin Israel wrote: > > > > On Sat, Oct 24, 2015 at 6:35 PM Crest Christopher > wrote: > >> I hoped to get it to work. >> > > And did my last reply help at all? > > >>

Re: [Maya-Python] Anonymous Script ?

2015-10-23 Thread Crest Christopher
I hoped to get it to work. Justin Israel wrote: On Sat, 24 Oct 2015 1:51 PM Christopher. <mailto:crestchristop...@gmail.com>> wrote: Safe to assume no one has the answer and I need to put it in the trash bin ? It's safe to assume that people have tried to he

Re: [Maya-Python] Anonymous Script ?

2015-10-23 Thread Christopher.
Safe to assume no one has the answer and I need to put it in the trash bin ? On Sunday, October 18, 2015 at 6:47:29 PM UTC-4, Christopher. wrote: > > Source. I originally though the global function was rotateProjection, > until I realized it didn't encapsulate the entire scr

Re: [Maya-Python] Re: Scripts and Management

2015-10-19 Thread Crest Christopher
Hi, sorry I didn't quite understand how your tool behaves ? ;-) Rémi Deletrain wrote: Hi, If ever it can help you. It's not a cleaned script but it works https://github.com/RDelet/Maya_Tools/blob/master/Divers_Tools/plugin_manager.py I create this tool for laod all my scripts when maya loading

Re: [Maya-Python] Scripts and Management

2015-10-18 Thread Crest Christopher
import it, then you have something wrong in either your environment, or you put it in a sub-directory that doesnt have an __init__.py Python scripts should not go in your mel script path. On Mon, Oct 19, 2015 at 1:33 PM Christopher. mailto:crestchristop...@gmail.com>> wrote: I know there

Re: [Maya-Python] Scripts and Management

2015-10-18 Thread Christopher.
, if the script doesn't require On Sunday, October 18, 2015 at 1:02:57 AM UTC-4, Christopher. wrote: > > I'm going to check over the paths once again, maybe something is > conflicting. > > On Sunday, October 18, 2015 at 12:04:41 AM UTC-4, Chris Lesage wrote: >> >>

Re: [Maya-Python] Anonymous Script ?

2015-10-18 Thread Christopher.
a global proc that can > be called? > > On Sun, 18 Oct 2015 4:09 PM Christopher. > wrote: > >> From what I know, if a MEL script doesn't have a command to which one >> should use, you can look for the global function, and run the function >> name; what if

Re: [Maya-Python] Scripts and Management

2015-10-17 Thread Christopher.
n running the script command". > > *Paste exactly what you are trying to execute.* > > > On Sat, Oct 17, 2015 at 11:51 PM, Justin Israel > wrote: > >> >> >> On Sun, Oct 18, 2015 at 4:36 PM Crest Christopher > > wrote: >> >>> >>&

Re: [Maya-Python] Scripts and Management

2015-10-17 Thread Crest Christopher
Justin Israel wrote: On Sun, 18 Oct 2015 1:56 PM Christopher. <mailto:crestchristop...@gmail.com>> wrote: General question about scripts, some scripts tell you to place them in your python directory, whether that is your Maya default installation directory or a custom

Re: [Maya-Python] Re: docking

2015-10-17 Thread Christopher.
Saving preferences didn't help, this time I closed Maya clean and my custom UI was not restored even after saving the current layout ? On Saturday, October 17, 2015 at 8:57:39 PM UTC-4, Christopher. wrote: > > I may not have done that after customizing the U.I, will do next time, no

[Maya-Python] Anonymous Script ?

2015-10-17 Thread Christopher.
>From what I know, if a MEL script doesn't have a command to which one should use, you can look for the global function, and run the function name; what if that is giving, no procedure found and you know it's not a paths problem ? -- You received this message because you are subscribed to the

Re: [Maya-Python] Re: docking

2015-10-17 Thread Christopher.
I may not have done that after customizing the U.I, will do next time, now I must start from scratch ! On Saturday, October 17, 2015 at 12:36:52 PM UTC-4, Chris Lesage wrote: > > Hey Christopher, > > After you've made your custom layout, click File -> Save Preferences. No

[Maya-Python] Scripts and Management

2015-10-17 Thread Christopher.
General question about scripts, some scripts tell you to place them in your python directory, whether that is your Maya default installation directory or a custom directory set forth by your maya env variable file. At the moment my scripts are all throw in a custom python scripts folder, quite

[Maya-Python] Re: docking

2015-10-17 Thread Christopher.
, Christopher. wrote: > > When docking a panel, in this case, the outliner. Most of the code I find > start with outlinerWindow, yet the docs only mention outlinerEditor & > outlinerPanel ? > -- You received this message because you are subscribed to the Google Groups "Python

Re: [Maya-Python] Question (MEL)

2015-10-14 Thread Christopher.
, Oct 14, 2015 at 11:20 AM, Christopher. > wrote: > >> rotate -r -rotateY 300 0 0 ($bballArray[1]); >> >> How come the above code works, shouldn't 300 represent (X) and the next >> numeric value represent (Y) ? It appears MEL does the following, if you >> w

[Maya-Python] Question (MEL)

2015-10-14 Thread Christopher.
rotate -r -rotateY 300 0 0 ($bballArray[1]); How come the above code works, shouldn't 300 represent (X) and the next numeric value represent (Y) ? It appears MEL does the following, if you want to rotateY then the first numeric value is Y ! -- You received this message because you are subscrib

[Maya-Python] Ticks in MEL ?

2015-10-07 Thread Christopher.
The purpose of ticks in MEL ? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view th

Re: [Maya-Python] userSetup Script

2015-10-05 Thread Crest Christopher
I'm not exactly following probably due to my lack of Python knowledge; what must be done, will more in-depth code post be more helpful ? haggi.k...@gmail.com wrote: I saw your function name: menuImport. We had to realize that the userSetup.py is exectured before any UI elements are loaded wha

Re: [Maya-Python] userSetup Script

2015-10-04 Thread Christopher.
script to automatically run when Maya starts ? On Sunday, October 4, 2015 at 7:34:36 PM UTC-4, Justin Israel wrote: > > > > On Mon, Oct 5, 2015 at 12:28 PM Christopher. > wrote: > >> How do you add a script to the userSetup.py file. Do you do it place >> after the - exe

[Maya-Python] userSetup Script

2015-10-04 Thread Christopher.
How do you add a script to the userSetup.py file. Do you do it place after the - execfile('') ? Then define it as such def menuImport(); import -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe

Re: [Maya-Python] color switch

2015-10-04 Thread Crest Christopher
alse; } } return true; } if (equalColors($myColor2, $redColor)) { print "RED!"; } else if (equalColors($myColor2, $whiteColor)) { print "WHITE!"; } else if (equalColors($myColor2, $blueColor)) { print "'merica!"; } else { print &q

Re: [Maya-Python] color switch

2015-10-04 Thread Christopher.
Vectors: > > http://download.autodesk.com/global/docs/maya2014/en_us/index.html?url=files/Arrays_vectors_and_matrices_Vectors.htm,topicNumber=d30e790326 > > On Mon, 5 Oct 2015 7:15 AM Christopher. > wrote: > >> I want to change the color of a sphere using Switch in MEL this is w

[Maya-Python] color switch

2015-10-04 Thread Christopher.
I want to change the color of a sphere using Switch in MEL this is what I have thus far, it is not working ? Can you store RGB values in a int ? string $obj_sphere = pSphere1; int $color = 22, 204, 61; switch ($color) { case $obj_sphere: 104,160,60; break; } -- You received this m

Re: [Maya-Python] docking

2015-10-04 Thread Crest Christopher
Is this script one in the same as your question, Justin ? Justin Israel wrote: On Sunday, October 4, 2015 at 10:07:54 AM UTC+13, Christopher. wrote: I want to dock the outliner, but as Arvid mentioned; it will only save per session; upon restarting Maya, all is lost. You have to

Re: [Maya-Python] docking

2015-10-04 Thread Crest Christopher
k for ? Script Job I'm UN-familar with ? Justin Israel wrote: On Sunday, October 4, 2015 at 10:07:54 AM UTC+13, Christopher. wrote: I want to dock the outliner, but as Arvid mentioned; it will only save per session; upon restarting Maya, all is lost. You have to continuously ru

Re: [Maya-Python] docking

2015-10-03 Thread Crest Christopher
I want to dock the outliner, but as Arvid mentioned; it will only save per session; upon restarting Maya, all is lost. You have to continuously run the same code to dock the outliner. ;-( Justin Israel wrote: On Sun, 4 Oct 2015 9:54 AM Crest Christopher mailto:crestchristop

  1   2   3   >