Jump to content

set playback frame range using python :)


Recommended Posts

hi everyone,

kind of silly but, i can't figure out what function to use to set the "playback" frame range?

in hscript there was: frange 1 25 for example...

however, it says it's been replaced by: hou.playback

but when i try and look at hou.playback, i cannot find anything that works to set the actual frame range.

thank u so much


Edited by itriix
Link to comment
Share on other sites

as you can see in help hou.playbar has not been implemented yet

there is setPlaybackRange(self, start, end) function under it

i cannot test it right now

so either the documentation is old and it works now, or it is still not implemented and that means you have to use hscript for this

but you can call hscript commands from python (hou.hscript()) so it should't be a problem

Link to comment
Share on other sites

oh okay, yeah i noticed in the help it had said it hadn't been implemented as of yet, but wasn't sure if that was old and that i wasn't just doing something wrong then.

so i'll go the route of hou.hscript()



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...