[Maya-Python] Re: control for colorpicker: color ring or spectrum

2018-02-19 Thread AK Eric
Have you tried the colorEditor command?  The results of the selection can 
be easily queried in rgb(+a) and hsv.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/c4791c25-e42a-408e-b59d-24018fe9f62e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2018-02-19 Thread sandy baroo
YouTube videos of



 U.S. Congress money laundering hearing


of

Saudi Billionaire  " Maan  Al sanea"

 with *bank of America*


and  The  owner of Saad Hospital and  Schools

 in the Eastern Province in *Saudi Arabia*



and the Chairman of the Board of Directors of Awal Bank  in *Bahrain*


With Arabic Subtitles





*موقع اليوتيوب الذي عرض جلسة استماع الكونجرس الأمريكي *

* لمتابعة نشاطات غسل الأموال ونشاطات*



*السعودي معن عبدالواحد الصانع*



*مالك مستشفى  وشركة سعد  ومدارس سعد بالمنطقة الشرقية بالسعودية   ورئيس مجلس
ادارة بنك اوال البحريني*



*مترجم باللغة العربية*



http://www.youtube.com/watch?v=mIBNnQvhU8s

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CADi0dRJx%3DYRQvjXO2%2BpUc%2BqHJOtxMidg5m_ewVZvJM47M6KL3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Re: .MFileIO.getReferenceFileByNode - // Error: (kInvalidParameter): Invalid parameter

2018-02-19 Thread Sivanny Selvakumar
The only thing you can do is use MGlobal::executeCommand to run the 
referenceQuery command in C++.
I would log a defect with Autodesk about this, since it's such a big hole 
in the API.

On Monday, February 19, 2018 at 6:10:44 AM UTC-8, Nicolas Chaverou wrote:
>
> Hey Sivanny,
>
> You're correct indeed... 
> So no way, on the API side to easily fetch the reference file of a 
> referenced node... Dammit...
> I'll have to figure something else, it's annoying indeed.
>
> Best,
>
> ---
> [image: Nicolas Chaverou - Golaem Crowd Product Manager - Golaem SA]
>  
> +33 (0)2 99 27 21 44
> http://www.golaem.com
>
> On Fri, Feb 16, 2018 at 8:28 PM, Sivanny Selvakumar <
> sivanny.s...@gmail.com > wrote:
>
>> Most referencing commands/functions require you to pass in the reference 
>> node (i.e. node type is "reference"). It looks like you are trying to use a 
>> reference*d* node -- the sphere.
>>
>> You can query the reference node for a reference*d* object with 
>> `referenceQuery -referenceNode ref:pSphere1`. This should give you 
>> something like sphereRN. You can then get the MObject for sphereRN, pass it 
>> to getReferenceFileByNode and it should work.
>>
>> I don't think this particular referenceQuery functionality is exposed in 
>> C++. It really should be. It's annoying that MFnDependencyNode has 
>> isFromReferencedFile, but doesn't give you a way to query which reference 
>> it's a part of.
>>
>> Sivanny
>>
>>
>> On Thursday, February 15, 2018 at 2:33:11 AM UTC-8, Nicolas Chaverou 
>> wrote:
>>>
>>> Hey there,
>>>
>>> Was trying to fetch information about the file a node has been 
>>> referenced from but I can't get OpenMaya.MFileIO.getReferenceFileByNode to 
>>> work properly. 
>>>
>>> I'm running the following piece of code:
>>>
>>> import maya.OpenMaya
>>>
>>> selectionList = maya.OpenMaya.MSelectionList()
>>> selectionList.add( 'types_ToReference:pSphere1' )
>>> node = maya.OpenMaya.MObject()
>>> selectionList.getDependNode( 0, node )
>>>
>>> file = maya.OpenMaya.MFileIO.getReferenceFileByNode( node )
>>>
>>>
>>> # RuntimeError: (kInvalidParameter): Object does not exist //
>>>
>>> Anything I missed? 
>>> ---
>>> [image: Nicolas Chaverou - Golaem Crowd Product Manager - Golaem SA]
>>>  
>>> +33 (0)2 99 27 21 44
>>> http://www.golaem.com
>>>
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/844f9ea6-9da9-4c6d-82d7-e766190e3f57%40googlegroups.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/ce18311e-516e-4650-a02e-07c0e68d22ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] control for colorpicker: color ring or spectrum

2018-02-19 Thread Michał Frątczak
Hi!
Does maya provide any controls for a nice color picker, like build-in Ring 
or Spectrum ?
I'd like to call a callback with each click in palette...
I only found palettePort command, not really super handy.

thanks !
-michal
 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/d562d67b-7ae4-4fdf-97ab-4cd8eb60d6cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Re: .MFileIO.getReferenceFileByNode - // Error: (kInvalidParameter): Invalid parameter

2018-02-19 Thread Nicolas Chaverou
Hey Sivanny,

You're correct indeed...
So no way, on the API side to easily fetch the reference file of a
referenced node... Dammit...
I'll have to figure something else, it's annoying indeed.

Best,

---
[image: Nicolas Chaverou - Golaem Crowd Product Manager - Golaem SA]

+33 (0)2 99 27 21 44
http://www.golaem.com

On Fri, Feb 16, 2018 at 8:28 PM, Sivanny Selvakumar <
sivanny.selvaku...@gmail.com> wrote:

> Most referencing commands/functions require you to pass in the reference
> node (i.e. node type is "reference"). It looks like you are trying to use a
> reference*d* node -- the sphere.
>
> You can query the reference node for a reference*d* object with
> `referenceQuery -referenceNode ref:pSphere1`. This should give you
> something like sphereRN. You can then get the MObject for sphereRN, pass it
> to getReferenceFileByNode and it should work.
>
> I don't think this particular referenceQuery functionality is exposed in
> C++. It really should be. It's annoying that MFnDependencyNode has
> isFromReferencedFile, but doesn't give you a way to query which reference
> it's a part of.
>
> Sivanny
>
>
> On Thursday, February 15, 2018 at 2:33:11 AM UTC-8, Nicolas Chaverou wrote:
>>
>> Hey there,
>>
>> Was trying to fetch information about the file a node has been referenced
>> from but I can't get OpenMaya.MFileIO.getReferenceFileByNode to work
>> properly.
>>
>> I'm running the following piece of code:
>>
>> import maya.OpenMaya
>>
>> selectionList = maya.OpenMaya.MSelectionList()
>> selectionList.add( 'types_ToReference:pSphere1' )
>> node = maya.OpenMaya.MObject()
>> selectionList.getDependNode( 0, node )
>>
>> file = maya.OpenMaya.MFileIO.getReferenceFileByNode( node )
>>
>>
>> # RuntimeError: (kInvalidParameter): Object does not exist //
>>
>> Anything I missed?
>> ---
>> [image: Nicolas Chaverou - Golaem Crowd Product Manager - Golaem SA]
>>
>> +33 (0)2 99 27 21 44 <+33%202%2099%2027%2021%2044>
>> http://www.golaem.com
>>
> --
> 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 discussion on the web visit https://groups.google.com/d/
> msgid/python_inside_maya/844f9ea6-9da9-4c6d-82d7-
> e766190e3f57%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFS5DCaQa%3Dx8G9YZTL8ePoncGwMAnyS5dy%2BNPgA1%3DjW2Pkrc-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] Memory leak in Maya Python API 1.0

2018-02-19 Thread Pontsho Maseko
The tool sets transforms then creates the animation curves to connect to 
the other identical control. But if i use the quering of plugs over 
iteration or just one on one animation transfer it avoids the setting of 
transforms, sometimes other information from the old animation curve. When 
I was using the AnimUtil it run fine but when it came to complex rigs it 
crushes maya due to the memory leak.

On Monday, February 19, 2018 at 12:38:52 PM UTC+2, Pontsho Maseko wrote:
>
> I was trying to avoid doing that. When I query the plugs manually, the 
> whole code structure fall apart. It doesnt spit out any errors and it runs 
> smoothly but it does do the absolute job, it works here and there. 
>
> On Friday, February 16, 2018 at 5:44:44 PM UTC+2, Marcus Ottosson wrote:
>>
>> A plug connected to an animCurve* node could be considered "keyed". So 
>> what you could do is look for whether something is connected to the plug, 
>> and whether the connected node is an animation curve.
>>
>> On 16 February 2018 at 15:26, justin hidair  wrote:
>>
>>> That’s what I don’t know but I don’t have the time to look into it right 
>>> now , maybe someone knows here ? 
>>>
>>>  
>>>
>>> Sent from Mail  for 
>>> Windows 10
>>>
>>>  
>>>
>>> *From: *Pontsho Maseko
>>> *Sent: *Friday, February 16, 2018 2:59 PM
>>>
>>> *To: *Python Programming for Autodesk Maya
>>> *Subject: *Re: [Maya-Python] Memory leak in Maya Python API 1.0
>>>
>>>  
>>>
>>> Is there as safe way to query keyed attributes, doesnt have to be with 
>>> the MAnimUtil in maya api 2.0?
>>>
>>> On Friday, February 16, 2018 at 4:44:05 PM UTC+2, justin hidair wrote:
>>>
>>>  
>>>
>>> * fin(d)AnimatedPlugs(path, plugs)
>>>
>>> Also I’d suggest to use python API 2.0, but I didn’t find an equivalent 
>>> to findAnimatedPlugs() after a quick lookup
>>>
>>> Sent from Mail  for 
>>> Windows 10
>>>
>>>  
>>>
>>> *From: *Pontsho Maseko
>>> *Sent: *Friday, February 16, 2018 2:25 PM
>>> *To: *Python Programming for Autodesk Maya
>>> *Subject: *Re: [Maya-Python] Memory leak in Maya Python API 1.0
>>>
>>>  
>>>
>>> Plugs = om.MPlugArray()
>>>
>>> path = om.MDagPath() # The path to the node working with
>>>
>>>  
>>>
>>> om.MAnimUtil.finAnimatedPlugs(path, plugs) # This by definition should 
>>> return keyed attributes a MPlugs
>>>
>>>  
>>>
>>> I am trying to get attributes that are keyed.
>>>
>>>
>>> On Friday, February 16, 2018 at 3:44:58 PM UTC+2, Marcus Ottosson wrote:
>>>
>>> Could you post an example of what you are currently trying?
>>>
>>>  
>>>
>>> On 16 February 2018 at 13:18, Pontsho Maseko  
>>> wrote:
>>>
>>> Does anybody here knows, a way to find animated plugs with the the 
>>> python API. The python API 1.0's MAnimUtil gives me a memory leak report 
>>> "swig/python detected a memory leak of type 'MAnimUtil *', no destructor 
>>> found." then crushes maya.
>>>
>>> -- 
>>> 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 discussion on the web visit 
>>> https://groups.google.com/d/msgid/python_inside_maya/bd5625db-58c5-4972-941f-74832a9166c1%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>  
>>>
>>> -- 
>>> 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 discussion on the web visit 
>>> https://groups.google.com/d/msgid/python_inside_maya/e29cf8c5-8103-4963-b283-61106dc6b3e6%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>  
>>>
>>>  
>>>
>>> [image: 
>>> https://lh6.googleusercontent.com/proxy/JjzEPM_1UQiAcgcIii9zH3waHJfrDmD6mwOpzjvKSWAzeFyvEmJKxjsfyB4-JKbN4o_rmMG0O6UuV95TfuAG3NaBCtKzucfHCUODobStNrGqQJzTwuEOKfxUSFySxNn_igewCYnfXbgJP-gAq2cupOvC=w5000-h5000]
>>>  
>>> 
>>>
>>> Virus-free. www.avast.com 
>>> 
>>>  
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To 

Re: [Maya-Python] Memory leak in Maya Python API 1.0

2018-02-19 Thread Pontsho Maseko
I was trying to avoid doing that. When I query the plugs manually, the 
whole code structure fall apart. It doesnt spit out any errors and it runs 
smoothly but it does do the absolute job, it works here and there. 

On Friday, February 16, 2018 at 5:44:44 PM UTC+2, Marcus Ottosson wrote:
>
> A plug connected to an animCurve* node could be considered "keyed". So 
> what you could do is look for whether something is connected to the plug, 
> and whether the connected node is an animation curve.
>
> On 16 February 2018 at 15:26, justin hidair  > wrote:
>
>> That’s what I don’t know but I don’t have the time to look into it right 
>> now , maybe someone knows here ? 
>>
>>  
>>
>> Sent from Mail  for 
>> Windows 10
>>
>>  
>>
>> *From: *Pontsho Maseko 
>> *Sent: *Friday, February 16, 2018 2:59 PM
>>
>> *To: *Python Programming for Autodesk Maya 
>> *Subject: *Re: [Maya-Python] Memory leak in Maya Python API 1.0
>>
>>  
>>
>> Is there as safe way to query keyed attributes, doesnt have to be with 
>> the MAnimUtil in maya api 2.0?
>>
>> On Friday, February 16, 2018 at 4:44:05 PM UTC+2, justin hidair wrote:
>>
>>  
>>
>> * fin(d)AnimatedPlugs(path, plugs)
>>
>> Also I’d suggest to use python API 2.0, but I didn’t find an equivalent 
>> to findAnimatedPlugs() after a quick lookup
>>
>> Sent from Mail  for 
>> Windows 10
>>
>>  
>>
>> *From: *Pontsho Maseko
>> *Sent: *Friday, February 16, 2018 2:25 PM
>> *To: *Python Programming for Autodesk Maya
>> *Subject: *Re: [Maya-Python] Memory leak in Maya Python API 1.0
>>
>>  
>>
>> Plugs = om.MPlugArray()
>>
>> path = om.MDagPath() # The path to the node working with
>>
>>  
>>
>> om.MAnimUtil.finAnimatedPlugs(path, plugs) # This by definition should 
>> return keyed attributes a MPlugs
>>
>>  
>>
>> I am trying to get attributes that are keyed.
>>
>>
>> On Friday, February 16, 2018 at 3:44:58 PM UTC+2, Marcus Ottosson wrote:
>>
>> Could you post an example of what you are currently trying?
>>
>>  
>>
>> On 16 February 2018 at 13:18, Pontsho Maseko  wrote:
>>
>> Does anybody here knows, a way to find animated plugs with the the python 
>> API. The python API 1.0's MAnimUtil gives me a memory leak report 
>> "swig/python detected a memory leak of type 'MAnimUtil *', no destructor 
>> found." then crushes maya.
>>
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/bd5625db-58c5-4972-941f-74832a9166c1%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>  
>>
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/e29cf8c5-8103-4963-b283-61106dc6b3e6%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>  
>>
>>  
>>
>> [image: 
>> https://lh6.googleusercontent.com/proxy/JjzEPM_1UQiAcgcIii9zH3waHJfrDmD6mwOpzjvKSWAzeFyvEmJKxjsfyB4-JKbN4o_rmMG0O6UuV95TfuAG3NaBCtKzucfHCUODobStNrGqQJzTwuEOKfxUSFySxNn_igewCYnfXbgJP-gAq2cupOvC=w5000-h5000]
>>  
>> 
>>
>> Virus-free. www.avast.com 
>> 
>>  
>>
>> -- 
>> 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 discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/8a0c7917-f7e1-4ca2-96d2-6fb19aa375ca%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>  
>>
>>
>>