[Paraview] Step interpolation in keyframes via Python?

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Mar 1 11:59:07 EST 2012


Try,

keyframe.Interpolation = "Boolean"

On Thu, Mar 1, 2012 at 7:40 AM, Marc A. Kastner <root at mkasu.org> wrote:
> Hello,
>
> I am trying to write a python script for a project where I need to animate
> stuff. When doing it manually, I usually use the Step interpolation feature
> between keyframes. How do I get such a behaviour with a Python skript? I
> tried following code snipplet in Python shell:
>
> keyframe = CompositeKeyFrame()
> keyframe.Interpolation = 'Step' (This attribute is default 'Ramp' so I
> thought this would work)
>
> But it says: "ValueError: Step is not a valid value.".
>
> Thanks in advance.
>
> - Marc A. Kastner
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview


More information about the ParaView mailing list