Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Howto get + set animation frame number

DouweDabbe
Guest
Quote
2021-07-02 16:39:55

for animated scene nodes

how do i query for the currently displayed animation frame

and subsequently

how do i set the model "frozen" in a specific animation frame

it is for a 2d animation tool i am making


thanks Douwe


Robo
Guest
Quote
2021-07-03 02:34:02

You cant do that as far as I know.

Just create a new animation frame set in the animation editor name to something different and just run that animation to get to the position you want

or

just have the animation position only (ie single frame) and just blend to that position from any other animation - this is my favourite works best with largish movements like crouch etc.


Douwedabbe
Guest
Quote
2021-07-03 09:26:32

Hi, shanks for answerring:

my tool is for taking formalized 2d screenshots of a 3d model.

this will make game assets much lighter when going from :
animated 3d model -->
2d 8 directional animated character

there is a js function timestamp() that i will try to use
i hope to stop the animation at a desired animation frame, so I can take a optimized reproducible screenshot
the cc manual is not very detailed here.

i also tried with video recording,
converted to images, got huge pile of partial damaged images.
to much work


just_in_case
Moderator
Quote
2021-07-03 10:24:35

as @Robo has mentioned You can use it directly in the editor you can go to the animation editor and can create new animations with single frames and can use the PrintScreen button to capture screenshots and can then use any image editor to save the image.
that will give you an individual image sequence for your animation. but it can be a lot of work if your animation has too many frames.

by the way, there are properties like "StartFrame", "EndFrame", "CurrentFrameNr" in the android and windows source of the app If Nikoo will extend the javascript API by providing access to those properties.


VP
Guest
Quote
2021-07-03 11:31:02

I can think of a way to do what you want - but it's probably more wok than it's worth.

Import your animation to blender.

Add a piano-roll with individual keys (one for each frame)
somewhere near the 3D model's axis.

Import the animated 3D model (with piano-roll) into coppercube.

Attach a different node to each animated joint of the piano roll.

Now make a small 3D plane with "on proximity events".

Move this plane across the piano-roll in time with the animation (start of animation is at position of piano-key one, end of animation is at last piano key.)

The small 3D plane is now your "frame counter":
on proximity 3Dplane/piano-key1, change display: animation frame 1.
on proximity 3Dplane/piano-key2, change display: animation frame 2.

etc.


DouweDabbe
Guest
Quote
2021-07-04 22:51:44

Hmm

Interesting and good answers will research them

Thanks


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact