Technical discussions > Scripting

is it possible to create a script

(1/1)

brizad13:
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.

Will Gibbons:

--- 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.

--- End quote ---

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.

Niko Planke:
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.

Navigation

[0] Message Index

Go to full version