[Maya-Python] Re: remap reference paths on load

2018-12-07 Thread Michał Frątczak
So, has anybody found a nice way to remap path to a referenced file based on referenceNode attributes? It seems referenceNode is not accessible inside kBeforeCreateReferenceCheck callback On Thursday, December 30, 2010 at 3:12:58 PM UTC+1, Pierre A wrote: > > Thanks for the link, actually I

Re: [Maya-Python] clicked signals around a QLabel

2018-12-07 Thread likage
I am slightly confused now... I apologize in advance, not an excuse but this is my first time dealing with QGraphicsXXX and have it integrated with the 'normal' widgets.. In the BaseWidget script - filled_round_rect(), it appears that the icon creation is made there and so I added this part in:

Re: [Maya-Python] clicked signals around a QLabel

2018-12-07 Thread Justin Israel
On Sat, Dec 8, 2018, 8:24 AM likage wrote: > I am slightly confused now... > I apologize in advance, not an excuse but this is my first time dealing > with QGraphicsXXX and have it integrated with the 'normal' widgets.. > > In the BaseWidget script - filled_round_rect(), it appears that the icon

[Maya-Python] Re: remap reference paths on load

2018-12-07 Thread Robert White
I've done this at a past job, and sadly don't have the code in front of me anymore. But from what I remember you get a MFile object from the callback, and can edit the paths in that file object, and they will be passed into the created reference node after the callback is finished. On Friday,

Re: [Maya-Python] Can't read worldMatrix of custom Python API 2.0 node

2018-12-07 Thread Marcus Ottosson
> Can you use fn.dagPath().inclusiveMatrix() ? Yes! That looks very promising (for completeness, it was `getPath()` rather than `dagPath()`). I worked around it this time around, by getting the parent of any shape, and fetching it's matrix instead. Not as neat, so will experiment with your