resurrecting this thread now Using the code above, how would you set key in a loop to the destination point of the shape?
I was looking for something like this: for in in range(100): newpoint.featherCenter.setPositionKey(whatever needed here) I'm just trying to make the source point not animated and the destination linked to a tracker thanks On Mon, Jul 16, 2012, at 10:37, Hugo Léveillé wrote: > thanks, > > just what I needed > > On Sat, Jul 14, 2012, at 13:11, Magno Borgo wrote: > > Hugo, here's something to get you started: > > > > import nuke.splinewarp as sw > > > > warpNode = nuke.selectedNode() #select a SplineWarp node please > > warpCurve = warpNode['curves'] > > warpRoot = warpCurve.rootLayer > > > > newshape = sw.Shape(warpCurve, type="bspline") #single point distortion > > not working with bezier? > > newpoint = sw.ShapeControlPoint(100,100) #set point position > > > > newshape.append(newpoint) #add point to shape > > newshape.setVisible(0,True) #created shapes come with visibility off > > warpRoot.append(newshape) #add to the rootLayer > > > > warpCurve.changed() > > > > > > > > > > > Do you have a quick and simple example to create a single bezier with > > > just one point ? I have almost no experience with the rotopaint module > > > > > > On Thu, Jul 12, 2012, at 18:20, Wouter Klouwen wrote: > > >> On 12/07/2012 16:08, Hugo Léveillé wrote: > > >> > In the splinewarp, what would be the way to create a simple pin point > > >> > (and feeding the coordinate) using python to the rootlayer ? > > >> > > >> > > >> Hi Hugo, > > >> > > >> SplineWarp3's pins aren't explicitly exposed though the Python API. > > >> However, you can get the same effect by just creating an open single > > >> point Bezier shape. (This is how they're implemented under the hood.) > > >> > > >> > > >> HTH, > > >> Wouter > > >> > > >> > > >> -- > > >> Wouter Klouwen, Software Engineer > > >> The Foundry, 6th Floor, Comms Building, 48 Leicester Sq, London WC2H LT > > >> Tel: +442079686828 • Fax: +4420 79308906 • thefoundry.co.uk > > >> The Foundry Visionmongers Ltd • Reg.d in England and Wales No: 4642027 > > >> > > >> > > >> _______________________________________________ > > >> Nuke-python mailing list > > >> [email protected], http://forums.thefoundry.co.uk/ > > >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > > > > > > > > > > > -- > > ************************** > > 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 > > > -- > Hugo Léveillé > TD Compositing, Vision Globale > [email protected] > > _______________________________________________ > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python -- Hugo Léveillé TD Compositing, Vision Globale [email protected] _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
