[Maya-Python] PyQt Question

2012-11-02 Thread illunara
Hello I'm just getting start with PyQt, so i have some basic question about it, please help me out :D As i know that pyQt is kind of standalone software develop by Nokia (or riverBank), and PyQt when we use with Maya is just a package, so when i try to run some PyQt code in maya, it crash. Here

[Maya-Python] Setup Environment for Python

2012-12-03 Thread illunara
Hello I follow some tutorial and setup env for Python by adding the pythonPath and mayaLocation in Environment Variables of Window PYTHONPATH C:\Program Files\Autodesk\Maya2012\Python\lib\site-packages\ MAYA_LOCATION C:\Program Files\Autodesk\Maya2012\ But when i run python and try to import may

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread illunara
Yup, i can import maya standalone from mayapy, but i don't know how to use one line command, its kind of complicated and inconvenient for a beginner like me. Also, i try to run some test on PyQt too, so i try to use Python IDLE to script everything down. is this where the maya standalone's pack

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread illunara
I'm using Python 2.6 amd Maya 2012, both x64. What i did with window's environment variable is same with typing down sys.path.append, i just don't have to write it everytime start python. Maybe the directory is wrong? -- view archives: http://groups.google.com/group/python_inside_maya change yo

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread illunara
Sorry, i'm just a beginner to script so alot of thing to learn, i'm only using mayapy to do stuff when don't want to open the whole scene up. On Tuesday, December 4, 2012 1:47:20 AM UTC+7, Justin Israel wrote: > > What is the "one line command"? Is mayapy on windows just a script you can > vi

[Maya-Python] OpenMaya MeventMessage question

2012-12-17 Thread illunara
Hi everybody I just have a small question about openMaya, it the MEventMessage.addEventCallback(). Here is my try: def test(): ... print 'test' a = om.MEventMessage.addEventCallback('SelectionChanged',test()) It gives me the // Error: 'NoneType' object is not callable // // Warning: Failed t

Re: [Maya-Python] OpenMaya MeventMessage question

2012-12-17 Thread illunara
Thank Justin :D it works -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" 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

[Maya-Python] Insert Maya's window into PyQt's UI

2012-12-26 Thread illunara
Hi everybody I just wonder if we can insert a Maya's window (like HyperGraph,Helpline,colorSlider.) into PyQt's UI by changing the code in python's UI file (after convert an UI to python format)? I had heard that we can delete the widget and replace by another, but that only when using the

[Maya-Python] Qt's Widget

2013-01-16 Thread illunara
Hi everybody In Maya 2013, they create new view node editor (like in 3dsmax) with drop down menu http://usa.autodesk.com/maya/features/ I wonder if there is any Qt's Widget which support to do that? Or its a custom one? Thanks -- You received this message because you are subscribed to the Go

[Maya-Python] Re: Qt's Widget

2013-01-17 Thread illunara
Thank for the suggestion, Sascha. Btw, in the QGraphicsScece, can i attach an item (QGraphicsItems) to another one?,it not like parent. More like get the item's position and attach another one to follow it? (like pointConstrain in Maya) -- You received this message because you are subscribed

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

2013-01-19 Thread illunara
But PyQt is quite limited, isn't it. You can't edit the code inside QtDesigner, many item in QtGui is not present. Just some basic form, and you have to write it all inside after subClass.My friend told me that i should write this on C, or using the original QT's app from nokia. Why people chose

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

2013-01-19 Thread illunara
Well, if it possibles, i would love to do all those UI-setup: paint,event,drag-drop in the UI file, for convenient, also easy to manage, right? :) -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To post to this grou

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

2013-01-19 Thread illunara
Thank Justin, i were confuse about it all the time. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To post to this group, send email to python_inside_maya@googlegroups.com. To unsubscribe from this group, send email to

[Maya-Python] QGraphicsScene

2013-01-25 Thread illunara
Hello everybody I have some questions about QGraphicsScene: - About the setResizeAnchor, how can set it to opposite with the resize's direction? There is a WNorthWestGravity in Qt but i'm not sure if it right or not. - Except for QGraphicsItem, can we add anything else to it? - Is there any eve

[Maya-Python] About calling the super() function

2013-02-28 Thread illunara
Hi everybody I'm using QtDesign to create my own UI and convert it to python version. So after subclass the UI python file, i had written some function to implement mouseEvent for QGraphicsView. Just one small question. How can i call the super() function for the QGraphicsView? class RigModuleU

[Maya-Python] Draw bezier curve in qt

2013-03-07 Thread illunara
Hi everybody How can i draw a bezier curve in QT?, is QPainterPath the one i need? Also, can i use a SVG file as a QRect? Thanks -- 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 r

[Maya-Python] Catch maya error before it happen

2013-03-13 Thread illunara
Hi everybody I wonder if i can catch a maya error(or warning) before it happen? Lets say like this, i would like to test if an user's action will lead to an error or not. Thanks :D -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk May

[Maya-Python] QGraphicsView is slow with alot of items

2013-04-02 Thread illunara
Hi everybody I'm working with QGraphicsView for a while, and after had finished some basic stuff, i realized it gets slow down when there are a lot of items (around 20, and it will freeze). When i set cacheMode in QGraphicsItem to ItemCoordinateCache which will block the paintEvent, the perf

[Maya-Python] cPickle doesn't work on PyQt's object?

2013-04-25 Thread illunara
Hi everybody I try to export some data using cPickle, its fine when i try on difference object, but not pyqt. It gave me an error # Error: TypeError: file C:\Program Files\Autodesk\Maya2012\bin\python26.zip\copy_reg.py line 71: the sip.wrapper type cannot be instantiated or sub-classed # I'm

[Maya-Python] Eclipse as Maya IDE

2013-06-13 Thread illunara
Hi everybody http://www.creativecrash.com/maya/tutorials/using-tools-scripts/c/using-eclipse-as-a-maya-ide I follow this guide to setup Eclipse so i can use it as Maya IDE, it was fine if i input some simple class or function, but not the entire package. It gives me an Import Error, some packag

[Maya-Python] Drag-Drop, draw on Maya's viewport

2013-07-30 Thread illunara
Hi everybody This is one part in our project, our goal is create a tool which allow user can draw some path on viewport (If possible)then use it to select element (Faces, vertex, edge). So like the title said, what i want to ask is, can i change some Maya's behavior (like drag-drop on view

[Maya-Python] Maya PresetPath

2014-03-22 Thread illunara
Hi everybody How can i change the Maya's Env to load preset from another folder, instead of default one "Documents\maya\2013-x64\presets" Thanks -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this gr

[Maya-Python] Select object to import

2014-04-01 Thread illunara
Hi everybody I wonder if we can select objects from maya scene to import, instead of import the whole scene? Thanks -- 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

[Maya-Python] Maya's UI

2014-08-19 Thread illunara
Hi everybody I wonder if we can add some event/listener to Maya's Primitive UI? Like, when some value get change? or edit the floatSlider to fire some command with -cc flag? Thanks -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk May

Re: [Maya-Python] Maya's UI

2014-08-19 Thread illunara
Thank for reply Yes, ofc, its possible. But I just want to try different way :D -- 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_in

[Maya-Python] Get point position using Uv map

2014-10-31 Thread illunara
Hi everybody Is there anyway that i can get position(x,y,z) of a Random Uv point(u,v) on Uv map? also, if possible, find the symmetry line of UV map too. thank a lots :3 -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To

[Maya-Python] Re: Get point position using Uv map

2014-10-31 Thread illunara
oh wow, amazing. Thank a lots, Jan :D and btw, if the given UV point is out of UV map, can i somehow get the closest uv's value? -- 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 re

[Maya-Python] Re: Get point position using Uv map

2014-11-01 Thread illunara
Ah, okay. I will try to work it out somehow, anyway, thank for helping me, Jan :D -- 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

[Maya-Python] Draw custom shape

2014-11-07 Thread illunara
Hi everbody Just wander around internet and found this. Look so cool, i wonder how we can draw those controller? Using OpenGL or OpenMaya already support it? Thanks -- You received thi

[Maya-Python] Re: Draw custom shape

2014-11-07 Thread illunara
Wee, guys. Just take a quick look and i think it what i had been looking for. And I read about how to write a custom locator using openGL before too, is there and different between OpenMaya and OpenGL to do this? -- You received this message because you are subscribed to the Google Groups "Pyt

[Maya-Python] Adjust custom locator shape

2014-11-13 Thread illunara
Hi everybody I have a custom locator shape, and are there anyway that user can modify it freely with friendly approach ( like edit polygon or curve) ? And btw, i saw a lots of api's sample on maya's devkit folder, but they haven't compile yet. I have to do it myself? Thank a lots :) -- You rec

[Maya-Python] Find the closest point on mesh

2014-12-04 Thread illunara
https://gist.github.com/illunara/4a456d1407f9f60a1089 -- 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_insid

[Maya-Python] qt and pyqt

2014-12-14 Thread illunara
Hi everybody Like most people, i started with pyqt to build complex GUI inside maya but i got confused, why python? why not C++ since pyqt is just a warp around qt after all, and maya support it. Also, it should be easier to manager when you write a plugin, right? Thank for dropping by :D -- You

[Maya-Python] Traverse in graph

2014-12-24 Thread illunara
Hi everybody I attached a picture for easy visualization. In deform() method, if i not mistake, the MItGeometry using the original mesh for iterate ( that's why it always return the same vertex's po

[Maya-Python] OpenEXR for python

2015-03-30 Thread illunara
Hi everybody I want to write a quick python script, to convert every .exr file to .jpg by using OpenEXR However i failed at first step, i can't

[Maya-Python] pipeline with alembic

2015-04-02 Thread illunara
Hi everybody I have a question with maya's alembic. While the render processing, if i override an alembic file, which got imported into scene, it behavior really strange. Maya didn't actually import the alembic file, but just reference it, and keep reading it every frame, if i not mistake. Wha

[Maya-Python] Call maya's command from outer application or command shell

2015-04-06 Thread illunara
Hi everybody Can i control an instance of maya's application, calling maya's command from command shell or other application? Mayapy is not an option, i guess. Thank ;) -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To

[Maya-Python] Get maya command port

2015-05-07 Thread illunara
Hi everybody I wonder if we can get port or port's name using for commandPort of current maya's instance?. I had been searching on google for a while but no luck Thanks -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To

[Maya-Python] Maya API macro : How did they work?

2015-05-12 Thread illunara
Hi everybody Maya's macro like check_mstatus_and_return_it used a lots. I just a bit confuse about how it works. In the document said, { Return if status is not MStatus::kSuccess

[Maya-Python] Get value of compound attribute

2015-08-31 Thread illunara
Hi everybody I want to edit the the target value of blendshape, but the target mesh is gone. So i think about edit the value of inputPointsTarget directly. http://download.autodesk.com/us/maya/2009help/Nodes/blendShape.html How can i retrieve it? Thank -- You received this message because you

[Maya-Python] Create a MItMeshVertex using a set of vertex

2016-01-16 Thread illunara
Hi everybody I want to query the border vertexs of an mesh, then create another MItMeshVertex from it. Then i looked into maya's doc and found this constructor might does what i need : MItMeshVertex (const MDagPath &polyObject, MObject &component=MObject::kNullObj, MStatus *ReturnStatus=NULL)

[Maya-Python] Convert Object's transformation from Maya to Max

2016-02-16 Thread illunara
Hi everybody How can i convert an object's position and rotation into Max's coordinates? Thanks -- 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 em

Re: [Maya-Python] Convert Object's transformation from Maya to Max

2016-02-17 Thread illunara
Hi Justin Yup, Z-Up. -- 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 this discus

[Maya-Python] Maya's Python and Standalone's Python

2017-09-25 Thread illunara
Hi everybody What's the difference of maya's Python ( Like mayapy as example) and standalone python(https://www.python.org)? I tried to install Pip using mayapy and install other package as well, but nothing happend ( Which had been successed using standalone Python) This is kind of vague, and i

Re: [Maya-Python] Maya's Python and Standalone's Python

2017-09-25 Thread illunara
Hi Justin > You should be able to use Maya's python interpreter from standalone shell > scripts outside Maya. But it's usually better to install external libraries > into an external PYTHONPATH, and then just add that path to Maya using > Maya.env or userSetup.py > I don't understand what is

Re: [Maya-Python] Maya's Python and Standalone's Python

2017-09-25 Thread illunara
Hi Justin This is getting confused, Python Standalone and Maya's Python has the same core (Python 2.7), with difference interpreter, right? So can we use mayapy to do whatever Standalone Python can do? The reason is, i don't want to setup Standalone Python on user's machine, both their computer

[Maya-Python] Re-compile win32py for maya 2017

2017-10-05 Thread illunara
Hi everybody I tried to use pip to install win32py for maya 2017, and the result is *ImportError: DLL load failed: The specified module could not be found.* > For 2 days, i've looked into it, and i found out, pyd library has been compiled with difference compiler than mayapy did. That's why, may

Re: [Maya-Python] Re-compile win32py for maya 2017

2017-10-05 Thread illunara
Hi Marcus How can i setup the enviroment, so cl.exe can find the include folder ("C:\Program Files\Autodesk\Maya2017\include\python2.7")? Thanks -- You received th

[Maya-Python] Build Mesh from point cloud using MayaAPI

2018-01-08 Thread illunara
Hi I want to build an low-res mesh base on an array of meshs. Anyone has experience with this? Thank a lots -- 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 i

[Maya-Python] Maya, Euler Rotation and Gimbal lock

2018-05-29 Thread illunara
Hi everybody I have a question about euler rotation, you will find below the link to an picture https://ibb.co/gUTd0y These 2 objects have same local space, rotate-order, position, identical rotation but difference rotate-value, is this a gimbal-lock issues? how can i retrieve the "similify ro

[Maya-Python] Convert Qt5's widget to use inside maya

2019-04-03 Thread illunara
Hi everybody I follow this guide to convert a Qt's widget wrote in C++ into python https://github.com/eyllanesc/Qt5toPyQt5 But i got error, told me that sipconfig is missing while running configure.py *import os, sipconfig, sys* What is this sipconfig and how can i get it? Thanks -- You receiv

[Maya-Python] MGlobal selectFromScreen with custom modelView

2019-06-17 Thread illunara
Hi everybody I want to select some object under-cursor using maya API, selectFromScene works perfect with origin Maya's viewport. But if i try it with ModelPanel which attach to other Qt's Widget. Things go wrong. Are there any other way to work around? Thanks -- You received this message beca

[Maya-Python] Solutiuon to convert hand draw line into curve

2020-04-10 Thread illunara
Hi everybody I wonder if there is any solution to convert user's draw stroke (Only simple stroke like straight line or an arc) on canvas to a curve (Linear, Bezier)? Thanks -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya"

[Maya-Python] ScrollArea not working on doc widget

2020-05-10 Thread illunara
Hi everybody The scrollArea seam to be delay/lag/not updated when drag the horizontal/veryical bar and only get updateD if the Docked widget’s size being changed. Everything works fine when it get undocked. I has tested on maya 2017 and 2018 I used a simple setup with scrollArea attach to mainW