Ah gotcha. That makes perfect, illogical, sense now :) Thanks!
John Vanderbeck Technical Artist Digital Domain Media Group NOTICE: This communication may contain privileged or other confidential information. If you have received it in error, please advise the sender by reply email and immediately delete the message and any attachments without copying or disclosing the contents. Thank you. From: [email protected] [mailto:[email protected]] On Behalf Of Ivan Busquets Sent: Thursday, April 19, 2012 4:04 PM To: Nuke Python discussion Subject: Re: [Nuke-python] Scripting the new SplineWarp node Hi John, Each control point has both the source and destination attributes. The confusing part is that the naming of those attributes is "center" and "featherCenter", because it shares the same attributes with the Roto Shapes. So, your source curve is: controlPoint.center and the dest curve is: controlPoint.featherCenter Also, if you're getting the position data out of each attribute, keep in mind that the dest points are stored as an offset relative to the src point, instead of an absolute position. Have a look at the output of this: node = nuke.selectedNode() curves = node['curves'] sourcecurve = curves.toElement('Bezier1') for p in sourcecurve: print p.center.getPosition(nuke.frame()), p.featherCenter.getPosition(nuke.frame()) It's confusing indeed, but word from The Foundry was that this might change in the next version. Hope that helps. Ivan On Thu, Apr 19, 2012 at 12:55 PM, John Vanderbeck <[email protected]> wrote: Thanks Magno, this looks like exactly what I need. One question though. In looking over the code only very briefly, I am not seeing how you are specifying the *source* or *destination* curves for operations. John Vanderbeck Technical Artist Digital Domain Media Group NOTICE: This communication may contain privileged or other confidential information. If you have received it in error, please advise the sender by reply email and immediately delete the message and any attachments without copying or disclosing the contents. Thank you. From: [email protected] [mailto:[email protected]] On Behalf Of Magno Borgo Sent: Wednesday, April 18, 2012 6:13 PM To: Nuke Python discussion Subject: Re: [Nuke-python] Scripting the new SplineWarp node Yeah its possible to do all that you mentioned. I've scripting some tools for it for some time, let me know if you need some help. Some examples: http://www.nukepedia.com/python-scripts/misc/freezesplinewarp/ http://www.nukepedia.com/python-scripts/misc/rotopainttosplinewarp/ Hey gang, I'm trying to get in and work with the new SplineWarp node via Python. Specifically I would like the ability to add/remove/modify src and dst curves and keyframes. I'm digging around in the guts right now trying to get a handle on things and see what I can manage and not, but I thought I'd throw some feelers out here in case anyone else has already done this. Assuming it is even possible. John Vanderbeck Technical Artist Digital Domain Media Group NOTICE: This communication may contain privileged or other confidential information. If you have received it in error, please advise the sender by reply email and immediately delete the message and any attachments without copying or disclosing the contents. Thank you. -- ************************** Magno Borgo www.borgo.tv www.boundaryvfx.com _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
