KeyShot Forum

Technical discussions => Extending KeyShot => Scripting => Topic started by: brizad13 on January 19, 2019, 12:35:27 PM

Title: is it possible to create a script
Post by: brizad13 on January 19, 2019, 12:35:27 PM
is it possible to create a script to move the play head one frame then create a new camera for an animation sequence?
so I have a seperate camera for each frame in the seq.
Title: Re: is it possible to create a script
Post by: Will Gibbons on January 25, 2019, 12:36:53 PM
Quote from: brizad13 on January 19, 2019, 12:35:27 PM
is it possible to create a script to move the play head one frame then create a new camera for an animation sequence?
so I have a seperate camera for each frame in the seq.

I am not sure about that. Can you explain why you would want this though? I suspect that what you're trying to achieve can be done in a simpler way.
Title: Re: is it possible to create a script
Post by: Niko Planke on February 07, 2019, 02:22:52 AM
Hey Brizad,

That should be possible. Depending on what your intention is.

You can use a combination of lux.newCamera(...)and lux.setAnimationFrame(...) inside a For loop using lux.getAnimationInfo(...) to know the total frame count of your animation.

Note: Cameras do not include geometry information so i can only see this make sense for Camera animations.