Re: [Maya-Python] Re: query a maya nurbs curve for its basis / interpolation style

2018-03-04 Thread Angelo Sta. Catalina
NURBS stands for non-uniform-rational-b-spline. Its very similar both in appearance and implementation. There's a really good book out there called "The Nurbs Book" which goes in depth into nurbs curve and surface creation/manipulation. I has C style snippets which you can reference to to write you

[Maya-Python] Re: query a maya nurbs curve for its basis / interpolation style

2018-03-04 Thread Michael Boon
I've never dealt with NURBS in Maya at all, but I know the BS at the end of NURBS stands for B-Spline. On Monday, 5 March 2018 08:05:54 UTC+11, katisss wrote: > > I want to query a maya nurbs curve for its basis / interpolation style but > nothing in the api looks like it > http://download.auto

[Maya-Python] query a maya nurbs curve for its basis / interpolation style

2018-03-04 Thread katisss
I want to query a maya nurbs curve for its basis / interpolation style but nothing in the api looks like it http://download.autodesk.com/us/may...urbs_curve.html I seem unable to find anything about it In the end I n

Re: [Maya-Python] Re: Evaluation of Node only once ( compute() )

2018-03-04 Thread Justin Israel
On Mon, Mar 5, 2018, 7:07 AM Marcus Ottosson wrote: > This is the timer I had in mind. > > http://doc.qt.io/qt-5/qtimer.html > > It'd be able to delay a callback till later, and run it in the main thread > without special treatment. Ultimately, it'd mean updating the plug outside > of your `compu

Re: [Maya-Python] Evaluation of Node only once ( compute() )

2018-03-04 Thread Justin Israel
On Mon, Mar 5, 2018, 3:46 AM justin hidair wrote: > I don't cleary understand the 2. what I imagine here is that I would have > a member timer , and on compute() calls I will verify if the timer is >= 1 > if it is I reset it and perform the calculations if it's not I return > MS::kSuccess and wai

Re: [Maya-Python] Re: Evaluation of Node only once ( compute() )

2018-03-04 Thread Marcus Ottosson
This is the timer I had in mind. http://doc.qt.io/qt-5/qtimer.html It'd be able to delay a callback till later, and run it in the main thread without special treatment. Ultimately, it'd mean updating the plug outside of your `compute()` function, where your `compute()` is merely calling this time

[Maya-Python] Re: Evaluation of Node only once ( compute() )

2018-03-04 Thread justin hidair
Le dimanche 4 mars 2018 00:02:17 UTC, justin hidair a écrit : > > > Let's say I have a Node which has an input mesh and an output mesh , > everytime I move the input mesh , while I move it, compute() is called > probably 15 times and the output is updated also 15 times, > That's great and all b

Re: [Maya-Python] Playblasting in standalone

2018-03-04 Thread Yingjie He
Hi,Roy.When i use playblast command in "standalone",how can i make “FilmGate” visible*?* 在 2015年8月27日星期四 UTC+8下午7:36:06,Roy Nieterau写道: > > Unfortunately it's not really obvious from any documentation. > > It seems that when Maya is running in standalone mode it takes a > 'renderable' camera t

Re: [Maya-Python] Evaluation of Node only once ( compute() )

2018-03-04 Thread justin hidair
I don't cleary understand the 2. what I imagine here is that I would have a member timer , and on compute() calls I will verify if the timer is >= 1 if it is I reset it and perform the calculations if it's not I return MS::kSuccess and wait for the other computes() ... I can see this go wrong f

Re: [Maya-Python] Is there a way of adding dict as an extra attribute to objects?

2018-03-04 Thread Marcus Ottosson
Yes, that would make sense. It’d be like how mayaAscii and mayaBinary are plain-text and binary respectively, but still equally compatible with Maya, regardless of platform. Perhaps it’s then safe to surmise that because pickle is spelled out as being cross-platform compatible, and cPickle is comp