Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Timeline Range End with Python

Still a little green? Ask your beginner's questions here

Timeline Range End with Python

Postby bwanajh » Sun Jul 15, 2018 9:41 pm

I want to set the timeline Range with a chop execute dat.

I can set the End with "me.time.end ="

I tried me.time.rangeend, me.time.rend and various permutations of the like.

How can you set range with python?

Thanks.
bwanajh
 
Posts: 129
Joined: Sun Apr 12, 2015 9:40 pm
Location: Manitoulin

Re: Timeline Range End with Python

Postby bwanajh » Mon Jul 16, 2018 12:04 am

I found out how to do it with Tscript in case anyone is wondering



set a = `chop("math4/length")`

opparm /local/time rangeend $a
bwanajh
 
Posts: 129
Joined: Sun Apr 12, 2015 9:40 pm
Location: Manitoulin

Re: Timeline Range End with Python

Postby rob » Mon Jul 16, 2018 11:23 am

You should be able to set it, by *first* setting end, then rangeEnd, if the latter extends the former.

python >>> root.time.end = 2000
python >>> root.time.rangeEnd = 2000

It's accessing the time component that is controlling the operator you specify (me, root, etc):

https://docs.derivative.ca/index.php?ti ... COMP_Class

We'll be updating those docs with that extra info.

Cheers,
Rob
User avatar
rob
Staff
 
Posts: 1492
Joined: Tue Nov 13, 2007 1:14 am

Re: Timeline Range End with Python

Postby bwanajh » Mon Jul 16, 2018 9:26 pm

Thanks!
bwanajh
 
Posts: 129
Joined: Sun Apr 12, 2015 9:40 pm
Location: Manitoulin


Return to Beginners

Who is online

Users browsing this forum: No registered users and 12 guests