Isotropix Forums

Set Start Frame and Last End Frame via Expression

Discuss about expressions in Clarisse

Set Start Frame and Last End Frame via Expression

Unread postby buzz3d » Wed Jul 31, 2019 5:55 pm

Hi Everyone,

I'm optimizing some attributes as for example Active Camera ( find_item(path) ), Renderer ( find_item(path) ), ect. But I didn't find any way to set start frame and end frame.

Could anyone help ?

Thanks
buzz3d
 
Posts: 7
Joined: Wed Jun 12, 2019 2:53 pm

Re: Set Start Frame and Last End Frame via Expression

Unread postby mdkai » Wed Jul 31, 2019 8:01 pm

Hi

is that not the same question of the thread next to this ?
viewtopic.php?f=168&t=5730

As it was answered, it is not possible to access the timeline variables via SeExp.

But you can do it simply by using some of these commands
Code: Select all
 
ix.cmds.SetCurrentFrameRange(1001.0, 1101.0)                               # set frame in and out to 1001 and 1101

ix.application.get_factory().get_time().set_current_frame(float(1001))          # set currentframe to 1001
ix.application.get_factory().get_time().set_fps(float(25))                         # set fps to PAL(25)


Cheers
Kai
Join us at the Discord https://discord.gg/G5cJj9A
mdkai
 
Posts: 372
Joined: Tue Oct 07, 2014 7:24 pm


Return to Expressions
cron