[Sidefx-houdini-list] Houdini or Python question

Nicholas Pliatsikas nick_p102 at hotmail.com
Mon Oct 27 19:47:03 EDT 2008


Thanks for that Ken, Its probably just about the same as writing a python script and creating a new file parm with a call back script so it only runs when your browse for a file. No biggy :) It was just to create alittle preset on any file node that may need to be clamped at specfic ranges automatically a little like Fusion does it. I was hoping there was a nice an easy way to grab the data as it is quite useful to know :¬) Well once my defintion is written i can reuse it anywhere i need after that anyways.
Cheers
Nick



> Date: Mon, 27 Oct 2008 09:48:50 -0400> From: ken.ouellette at gmail.com> To: sidefx-houdini-list at sidefx.com> Subject: Re: [Sidefx-houdini-list] Houdini or Python question> > Hi,> > My suggestion is hacky but it will work, it was done in 8.### not 9.5 so> things might be a bit different.> > I was trying to do a similar to obtain the start/end of a sequence of images> on disk. I encountered cooking problems trying to update the filename> parameter a few times on an existing node. The start/length paremeters were> not updating even with a "-C" on the opparm line so I ended up constructing,> via hscript, a composite network from scratch. I created a FileCOP and> feeding it a file input, opparm FileCOP 'foo.\$F.tif', then I could set a> few variables to the start and length ( set startFrame => `chs("./FileCOP/start")` set lengthFrame = `chs("./FileCOP/length").> > Once I had the information I wanted I opcf'd up and out of there and deleted> my temporary network.> > I haven't tried running a OS command from a parameter in a while, but just> be aware that last time we found that it was actually being eval'd every> frame so it can be a bit of a slowdown for your network. It maybe more> direct but it might be one of things you don't really want to take a time> hit on.> > hope that helps.> -k> > On Mon, Oct 27, 2008 at 8:55 AM, Nicholas Pliatsikas> <nick_p102 at hotmail.com>wrote:> > > Hi people,> >> > In the houdini file browser with show sequences as one entry set to on, we> > can see all sequences collated together including its file range. I.e> > C:/image.$F.bgeo (10-81).> >> > We would like to grab the range information (10-81). Ive noticed that the> > file cop has a detect range button, but im not sure how that works?> >> > Is there any hscript or python functions/methods that can return a> > framerange from a file sequence? Or do i need to do this my self with a loop> > and file check?> >> > I could create my own fileLoader button that will run a python callback> > script. Listing the whole directory, matches the selected file name to any> > file in the directory, Sort the list then strip out the last set of digits> > and gets its range from that. But I was wondering if there was a better way> > todo that? Maybe an os function?> >> > Theres no information in "kwargs" either when i print the returned value of> > a file parm which would be a great place to get the required information> > from. It could have had a range or return None for a sequence but> > unfortunately not :¬/> >> > Any help would be great, doing a more longwinded version is of course is> > not a big problem but of never as nice as a more direct approach :¬D> >> > Cheers> > Nick> > _________________________________________________________________> > See the most popular videos on the web> > http://clk.atdmt.com/GBL/go/115454061/direct/01/> > _______________________________________________> > Sidefx-houdini-list mailing list> > Sidefx-houdini-list at sidefx.com> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list> >> _______________________________________________> Sidefx-houdini-list mailing list> Sidefx-houdini-list at sidefx.com> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
_________________________________________________________________
See the most popular videos on the web 
http://clk.atdmt.com/GBL/go/115454061/direct/01/


More information about the Sidefx-houdini-list mailing list