Is this possible.

I recently posted a question regarding importing origin values from a text file. And some member replied that this can’t be done.

Anyway I thought of a way around. Heres the plan.

Synfig can import SVG am I right.

Blender has a script that can export its curves as SVG.

I have a script that converts 2d position into curve.

This very curve can be imported into Synfig as SVG.

A layer is attached to follow this curve path and this layer has bspline animated.

Is this possible

Thanks for reply.

Ps: All I am trying is find in a way that rotoscoping with 2d tracked data is possible with Synfig. And this may open up another possiblity in VFX using opensource “SYNFIG”.

Now that you calify it a bit more it makes more sense.
Once you obtain the curve inside Synfig from the source you want or need, you can make an object to follow its path (position and angle) even if the path is moving along the time. So for instance, you can make a top view of a car follow a road that is being filmed from a copter (obviously everything is in movement), if you previously import the path to synfig and then animate it following the road.
Anyway, I think that what you want to do is easier to achieve it fully within Synfig. Import a movie as a image sequence and do the rotoscoping manually (using thefollow spline method even).

So as per saying its possible. :astonished:

Then I have a question. :smiley:

Suppose there are two curve.

Can we code a mathematical function where the layer takes position/origin X & Y value from the first curve (Follow path) and rotation value from the other curve?

Is yes. Can you guide me to a tutorial page for rotation. I found one for position.

Thanking you in Advance

You don’t need any complex convert type like in the parabolic shot. The built in feature “Link to Bline” allows to do it easily.
Please look the attached file, confirm that this is what you want and if you don’t understand how was it achieved ask me for a step by step mini tutorial.
follow-path-angle.sifz (3.71 KB)

Looked at the file you send me. And yes thats what is needed. :smiley:
Please provide the mini tut as it would be best to start with. :stuck_out_tongue:

Anyway one question still. :wink:
The value I have for the layer to be animated are defined below. I import this as SVG curve and then use the follow method.

Looking at the second example you provided raised a question about rotation in random values and not going from 0-360.

:bulb: I hope a final simple answer would be enough.
Can the rotation value for the second example taken from another SVG curve.

Thanking you

Frame X pixels Y pixels
0 160.271 149.595
1 165.256 146.622
2 167.58 144.917
3 176 144
4 177.929 143.38
5 186.549 141.966

Frame degrees
0 0.55624
1 0.563931
2 0.982419
3 0
4 0.896936
5 0.422081

in the whole path, it is from 0 to 360 degrees , isn’t it?

another issue(?) for the link to BLine is that the speed of the moving is based on the segment, each segment will take the same time.
I have no idea about making a smooth moving following a bline in fixed speed.

:smiley: Regarding the segment of the curve, no problem in blender we can subdivide the curve so that every frame has a segment (i.e if there are 50 frames then the curve would have 50 segments. Means every frame has a segment. So motion will be constant when layer follows the curve, no speed change between segments).

So the golden question is, Is there a way i can animate the rotation of the layer differently. Means a curve for origin and a curve for rotation.

:question: Why rotation so important. This would help into rotoscope objects eg: a women walking with swinging here handbag like a pendulum. So here hand bag can be tracked in with position & rotation. These two features are converted into two curves. Then imported in Synfig. This method will help in roto somewhat faster.

How ok with the position what about rotation? :bulb: Any other method suggested will be fine. That will help me in working the other ways around.

:smiley: All I want to see synfig doing rotoscope with imported tracked data.

Thanking you.