[Maya-Python] No module named - frustration

2015-04-17 Thread Christopher.
I'm at a complete loss; I have downloaded a script and, it's late so I won't go into every last step I've tried. What is the problem, I continue to get "no module found". I have a maya environment file, all the paths are setup correctly, I added a module path hoping it would work, no success.

Re: [Maya-Python] No module named - frustration

2015-04-18 Thread Christopher.
On Saturday, April 18, 2015 at 1:17:14 AM UTC-4, Justin Israel wrote: > > Hey Christopher, > > I would be happy to help, but honestly there isn't a lot to go on here. > All I can tell you without seeing some more information, is to check your > PYTHONPATH again, and mak

Re: [Maya-Python] No module named - frustration

2015-04-18 Thread Christopher.
MAYA_SCRIPT_PATH = C:\[folder name]\[sub-folder-name]\scripts PYTHONPATH = C:\""\""\pythonscripts\ That is exactly how I have it laid out in my Maya.env file. All script get placed in the scripts folder, all python scripts, get placed in the python folder. In this case NSUV gets placed in the

Re: [Maya-Python] No module named - frustration

2015-04-19 Thread Christopher.
> for p in sys.path: > print p > > And confirm that you see the location where your NSUV python package > exists? > > On Sun, 19 Apr 2015 11:08 AM Christopher. > wrote: > >> MAYA_SCRIPT_PATH = C:\[folder name]\[sub-folder-name]\scripts >> PYTHONPATH =

Re: [Maya-Python] No module named - frustration

2015-04-29 Thread Christopher.
machine. > Did you try removing the custom Maya env and trying a standard install to > a scripts location? > > On Mon, 20 Apr 2015 1:46 AM Christopher. > wrote: > >> I can confirm I see the location where NSUV exists using the command you >> posted. >> >>

[Maya-Python] MEL questons ?

2015-05-20 Thread Christopher.
Is it safe to assume, I can ask MEL questions, beginner > expert on this list/group ? -- 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 py

[Maya-Python] Merge Edges - MEL

2015-05-23 Thread Christopher.
With two opposite edge loops selected, I want to run a script that merges each opposite edge loop to a approx center. polyMergeEdgeCtx -mergemode I get a invalid flag ? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group

Re: [Maya-Python] Merge Edges - MEL

2015-05-23 Thread Christopher.
olyMergeEdgeCtx.html#flagmergeMode > > On Sun, 24 May 2015 3:38 PM Christopher. > wrote: > >> With two opposite edge loops selected, I want to run a script that merges >> each opposite edge loop to a approx center. >> >> polyMergeEdgeCtx -mergemode >> >> I

[Maya-Python] Re: Merge Edges - MEL

2015-05-24 Thread Christopher.
polySewEdge -ws -t 1.3 -n "crsew" SewEdge had a threshold flag, I still get a parsing error, with two opposite edges selected, or a loop of edge loops ? On Saturday, May 23, 2015 at 11:38:14 PM UTC-4, Christopher. wrote: > > With two opposite edge loops selected, I want to r

Re: [Maya-Python] Re: Merge Edges - MEL

2015-05-24 Thread Christopher.
I forgot the boolean value for world space, ahh thanks so much :) On Sunday, May 24, 2015 at 3:20:22 PM UTC-4, Justin Israel wrote: > > > On Mon, 25 May 2015 6:32 AM Christopher. > wrote: > > polySewEdge -ws -t 1.3 -n "crsew" > > polySewEdge -ws 1 -t 1.3 -n

[Maya-Python] Context Face selection (MEL)

2015-05-24 Thread Christopher.
I want a context menu to select faces on a mesh what is that command, polySelectCtx only does edges ? Is there perspective command whereas I can do operation in a perspective view ? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Ma

[Maya-Python] Re: Context Face selection (MEL)

2015-05-26 Thread Christopher.
Hi, thanks I want this to be strictly MEL ;-) Whereas the users only option is to select polygons, then from there select faces, facing a camera and select a specific camera in the scene with a threshold. On Tuesday, May 26, 2015 at 6:58:34 AM UTC-4, Rémi Deletrain wrote: > > I don't really like

[Maya-Python] Re: Context Face selection (MEL)

2015-05-26 Thread Christopher.
What is the syntax for having a marking menu load in MEL, what I don' know ? :) On Tuesday, May 26, 2015 at 7:55:20 AM UTC-4, Rémi Deletrain wrote: > > I work in Python but it's same way in mel. > -- You received this message because you are subscribed to the Google Groups "Python Programming

[Maya-Python] Re: Context Face selection (MEL)

2015-05-29 Thread Christopher.
I looked at the code on the page. In other words you saying I need a function then add the menuItem syntax with flags ? Just want to break down what is explained on the page. On Tuesday, May 26, 2015 at 8:46:38 AM UTC-4, Rémi Deletrain wrote: > > I think you'll find everything you need on this

[Maya-Python] mel in python script calling

2015-05-31 Thread Christopher.
Hi, I have a script that uses the def() syntax, the problem is the original code is MEL, using the following syntax is not working ? def acme() [MEL code] acme() -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To u

Re: [Maya-Python] mel in python script calling

2015-05-31 Thread Christopher.
gt; unless it's Mel code that uses the python() function to call python code, > and visa versa. > > # some .py > def foo(): > # py syntax > foo() > > // some .mel > global proc foo() { > // Mel syntax > } > > On Mon, 1 Jun 2015 7:34 AM Christopher

Re: [Maya-Python] mel in python script calling

2015-06-01 Thread Christopher.
py files. > > How to call python code from your mel scripts: > > http://download.autodesk.com/global/docs/maya2014/en_us/Commands/python.html > > How to call mel code from your python scripts: > > import maya.mel as mm > mm.eval(SOME_MEL_CODE_STRING) > > ​ >

[Maya-Python] Re: mel in python script calling

2015-06-01 Thread Christopher.
Alright; import maya.mel as *whatever name* *whatever name*.eval ( ) Correct ? Converters are fine for some, I rather understand the guts :) On Sunday, May 31, 2015 at 3:34:38 PM UTC-4, Christopher. wrote: > > Hi, I have a script that uses the def() syntax, the problem is the > orig

[Maya-Python] Printing loop statement ?

2015-06-01 Thread Christopher.
You can print a loop, one thing I don't understand is the following; Suppose I have for j in range (0,5): First thing, what is the string 'j=' + str(j)) doing, I know what the second part of the loop is doing, converting the variable into a string or rather the float into a string, what is the

Re: [Maya-Python] Printing loop statement ?

2015-06-01 Thread Christopher.
ent examples here: >> http://www.diveintopython.net/native_data_types/formatting_strings.html >> >> On Mon, Jun 1, 2015 at 8:52 PM, Christopher. > > wrote: >> >>> You can print a loop, one thing I don't understand is the following; >>> Suppose I

[Maya-Python] Run python instead in sublime ?

2015-06-01 Thread Christopher.
Instead of using Script editor, can I use Sublime text to do my Python code and have syntax error highlighting while simultaneously code can be automatically executing in Maya, instead of copying and pasting to the script editor ? -- You received this message because you are subscribed to the

Re: [Maya-Python] Re: mel in python script calling

2015-06-02 Thread Christopher.
:28 PM UTC-4, Justin Israel wrote: > > > > On Tue, Jun 2, 2015 at 2:07 PM Christopher. > wrote: > >> Alright; >> import maya.mel as *whatever name* >> *whatever name*.eval ( >> >> ) >> Correct ? >> > > Yep. Where is a st

Re: [Maya-Python] Re: mel in python script calling

2015-06-03 Thread Christopher.
an example of your actual code. A big pink long probably > means you have a python syntax error. The Mel code should be in an actual > string so it should syntax highlight like a string. > > On Wed, 3 Jun 2015 1:36 AM Christopher. > wrote: > >> The beginning and end

Re: [Maya-Python] Re: mel in python script calling

2015-06-03 Thread Christopher.
g values, concatenating strings, wh? > > How are you coming up with these things? > ​ > > On 3 June 2015 at 16:58, Christopher. > > wrote: > >> import maya.mel as multiuvexport >> multiuvexport.eval ( >> "{ >> int $uMin=-1; >> int $u

Re: [Maya-Python] Re: mel in python script calling

2015-06-03 Thread Christopher.
Hi Joe, that works well, thank you, *but*, can I squeeze in a addition ? ;-) Can choose where to save & the resolution from 1024 to max 8192 res ? On Wednesday, June 3, 2015 at 1:28:46 PM UTC-4, Christopher. wrote: > > Hi Joe, before testing your code, I agree with you, the code is best

[Maya-Python] Query object ?

2015-06-06 Thread Christopher.
What is Query ? I know Query means to ask a question, how would this be used for example with, polySphere() radius ? -- 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 emai

Re: [Maya-Python] Query object ?

2015-06-06 Thread Christopher.
vs the examples > > r = cmds.polySphere( 'mySphere', q=True, r=True ) > > On Sun, 7 Jun 2015 11:27 AM Christopher. > wrote: > >> What is Query ? >> I know Query means to ask a question, how would this be used for example >> with, polySphere() radius ?

Re: [Maya-Python] Query object ?

2015-06-06 Thread Christopher.
>From my understanding if there was a sphere created, it's simply telling the new sphere I create to make the radius the same as the old sphere, correct ? On Saturday, June 6, 2015 at 7:55:25 PM UTC-4, Christopher. wrote: > > I know there are examples, what is the query doing for

[Maya-Python] Docking Panels

2015-06-10 Thread Christopher.
I want to dock the outliner (MEL). I know there is code online that can do this, I want to do it my way. The following code doesn't work, I'm thinking I have the wrong name for the outliner ? dockControl -area "left" -content "outliner" -- You received this message because you are subscribed t

Re: [Maya-Python] Docking Panels

2015-06-10 Thread Christopher.
ot; -content $panel; > > > On Thu, Jun 11, 2015 at 3:16 AM Christopher. > wrote: > >> I want to dock the outliner (MEL). I know there is code online that can >> do this, I want to do it my way. The following code doesn't work, I'm >> thinking I have t

Re: [Maya-Python] Docking Panels

2015-06-10 Thread Christopher.
-type "outlinerPanel" > > > On Thu, Jun 11, 2015 at 12:05 PM Crest Christopher > wrote: > >> I know, that is what I'm forgetting, how do I find the correct name of >> the panel, regardless if it has "1" added on it it or not (outliner1 >> example

[Maya-Python] Objects as Strings (mel) ?

2015-06-12 Thread Christopher.
Do you not make objects as strings in MEL ? For example; string $one = "pSphere1"; string $two = "pCube1"; Or just alone var as such; $one = "pSphere1"; -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe fr

Re: [Maya-Python] Objects as Strings (mel) ?

2015-06-12 Thread Christopher.
;>- >> >> http://www.amazon.co.uk/Complete-Maya-Programming-Extensive-Kaufmann/dp/1558608354 >> >> >> ​ >> >> On 12 June 2015 at 17:34, Christopher. > > wrote: >> >>> Do you not make objects as strings in MEL ? For

[Maya-Python] Duplicate output window ?

2015-06-19 Thread Christopher.
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 ? Maybe I'm the only one that finds the native output window a little like finding my way though the Amazonian rain forest. Anyone know of such a t

[Maya-Python] Shelves within a Shelf ?

2015-06-20 Thread Christopher.
Has anyone put shelves within a Maya shelf ? I though I could nest a global proc within a global proc, then name the shelf and somehow, I would get a shelf within a shelf, unfortunately, no -- You received this message because you are subscribed to the Google Groups "Python Programming for Aut

[Maya-Python] Command to run script ?

2015-09-13 Thread Christopher.
I have a MEL Maya script called craOffsetKeys; I can't find how to run the script. I've searched within the script can't find the correct command ? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from thi

Re: [Maya-Python] Command to run script ?

2015-09-14 Thread Christopher.
ote: >> >>> are you trying to run mel script in python or just run it as it it in >>> MEL ? >>> Yury >>> >>> On Sun, Sep 13, 2015 at 11:32 PM, Christopher. >> > wrote: >>> >>>> I have a MEL Maya script called craOffsetKey

[Maya-Python] Clean and Move Script

2015-09-26 Thread Christopher.
Hi, hopefully someone can help. I download this tool , it's Job is to analyse the scene for all the textures then move them to a desired folder, followed by updating the texture paths. Instead of that occurring, I get an error in th

Re: [Maya-Python] Clean and Move Script

2015-09-26 Thread Christopher.
t; > On Sun, 27 Sep 2015 11:19 AM Christopher. > wrote: > >> Hi, hopefully someone can help. I download this tool >> <http://www.creativecrash.com/maya/script/filetexturemanager>, it's Job >> is to analyse the scene for all the textures then move them to a desir

Re: [Maya-Python] Clean and Move Script

2015-09-26 Thread Christopher.
unday, September 27, 2015 at 12:47:21 AM UTC-4, Justin Israel wrote: > > No I mean the texture paths in the nodes in Maya. Are they absolute paths? > Because I can see how the tool just grabs the value and asks if they exist > as is. > > On Sun, 27 Sep 2015 3:37 PM Crest Christophe

Re: [Maya-Python] Clean and Move Script

2015-09-28 Thread Christopher.
Justin; do you so happen to know what is wrong with the script ? On Sunday, September 27, 2015 at 2:01:11 AM UTC-4, Christopher. wrote: > > Yes, they are absolute paths. > > One thing I didn't mention; the tools Job is to change the file paths; > from what I can tell, it c

Re: [Maya-Python] Clean and Move Script

2015-09-28 Thread Christopher.
new target directory that you requested? > > > On Tue, Sep 29, 2015 at 4:25 PM Crest Christopher > wrote: > >> Before running the tool, all my paths were correct and did exist, image >> files, everything was working. After running the tool, the file nodes are

Re: [Maya-Python] Clean and Move Script

2015-09-29 Thread Christopher.
. Does that help? > > cheers > Felix > > Am 29.09.2015 um 08:08 schrieb Justin Israel: > > > > On Tue, Sep 29, 2015 at 5:46 PM Christopher. > wrote: > > The file nodes are all pointing to their original location; the only thing > the tool did was move or copy the

[Maya-Python] docking

2015-10-03 Thread Christopher.
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 Programming for Autodesk Maya" group. To unsubsc

[Maya-Python] Re: docking

2015-10-03 Thread Christopher.
I put the outlinerEditor in a variable; as such; string $panel = 'outlinerEditor'; dockControl $panel; On Saturday, October 3, 2015 at 1:13:19 PM UTC-4, Christopher. wrote: > > When docking a panel, in this case, the outliner. Most of the code I find > start with outl

[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] 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] 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] 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] 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

[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

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] 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

[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

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] 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.
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

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] 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-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-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] 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] 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] 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 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-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] 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.
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] 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; > >

[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

[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,

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

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

[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] 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

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

[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] 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-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-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.
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-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-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 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 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-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-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 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.
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: >> >>> >>>

[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

[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] 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] 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.

[Maya-Python] Consistent crash with customContextMenuRequested

2013-01-09 Thread Christopher Evans
I have a customContextMenu that works in a regular, external pyqt app, but crashes Maya. Whether I connect the signal/slot like so: self.connect(self.ui.tree, QtCore.SIGNAL("customContextMenuRequested(QPoint)" ), self.openMenu) Or so: self.ui.tree.customContextMenuRequested.connect(self.openMenu)

[Maya-Python] Adding children to existing compound attributes (not possible?)

2013-01-12 Thread Christopher Evans
Hi guys, if I have a compound attr with sub-compound attrs and those have lots of message node connections goin out. To add a child, am I right in thinking I need to store all the hierarchy and connections, then delete and re-add the compound attr with a new number of children, re add them all and

[Maya-Python] Weird pyqt issue (shift key sends dialog behind maya)

2013-01-14 Thread Christopher Evans
Hey guys, I have a few tools where pressing shift, sends the dialog behind maya. Alt-Tab brings it back, but it's pretty frustrating to the users when they start typing with a capital letter then type the rest of the word into maya and all these hotkeys fire. Any ideas why the shift button would

Re: [Maya-Python] Re: New powerful code editor

2013-01-19 Thread Christopher Stewart
aya" group. > To post to this group, send email to python_inside_maya@googlegroups.com. > To unsubscribe from this group, send email to > python_inside_maya+unsubscr...@googlegroups.com. > > -- Christopher Stewart Vancouver, BC 3D TD | VFX IT -- You received this mes

Re: [Maya-Python] Re: Qt's Widget

2013-01-20 Thread Christopher Evans
This performance increase often cannot be overlooked. If you do anything with meshes or animations especially. Not to mention that many C++ functions are still not exposed to openMaya, but many times a C++ plugin will do something in milliseconds but the python code could take minutes. On Sat, J

Re: [Maya-Python] Re: Consistent crash with customContextMenuRequested

2013-01-20 Thread Christopher Evans
ine/OS? Maybe it's specific to one of those combinations. > > On Wednesday, January 9, 2013 2:46:26 AM UTC-8, Christopher wrote: > > I have a customContextMenu that works in a regular, external pyqt app, > but crashes Maya. > > > > Whether I connect the signal/slot like

Re: [Maya-Python] Re: New powerful code editor

2013-01-20 Thread Christopher Stewart
Hi Mitch! I'd say 'small world' but I keep bumping into people from those days :-) Thanks for the bulk indenting. I didn't see it in the menus and made ASSumptions. Will ask about the commenting. Cheers, Christopher On Sun, Jan 20, 2013 at 7:15 AM, Mitch Rosefelt wrote:

  1   2   3   >