Link seems broken ??

On Thu, Aug 30, 2012, at 13:52, Magno Borgo wrote:

The destination (feather) points are based on an offset of the source
position, so you need to take this into account when freezing the
source.
There's something alike in my script, take a look on the code:
[1]http://www.nukepedia.com/python/misc/freezesplinewarp/
> 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
>> > >>
>> > >>
--
**************************
Magno Borgo
www.borgo.tv
www.boundaryvfx.com

_______________________________________________

Nuke-python mailing list

[2][email protected],
[3]http://forums.thefoundry.co.uk/

[4]http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

References

1. http://www.nukepedia.com/python/misc/freezesplinewarp/
2. mailto:[email protected]
3. http://forums.thefoundry.co.uk/
4. 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

Reply via email to