Spring-op - rendering 2005-06-03 - By Dan Yargici
Back as a side note, is it me, or is the tail cache just a completely useless waste of time?
DAN (Ps. before any smart-arses reply, I already know I'm a completely useless waste of time...)
Lee Hallett wrote:
> Thanks Sandy, you are an absolute star... Saved my ass right there... > > > > Lee|3d animation and design.. > > Pixel pusher & 'telly colouring in' bloke > > There are only 10 sorts of people in the World - those that understand > binary, and those that don't. > > > * BBC Wales | C4 graphics area | Broadcasting House| > Llandaff, Cardiff. CF5 2QY.* * > * (* +44 (0)29 203 23370 > e-* lee.hallett@(protected) > > > -- --Original Message-- -- > *From:* owner-xsi@(protected) [mailto:owner-xsi@(protected)] *On > Behalf Of *Sandy Sutherland > *Sent:* 03 June 2005 10:08 > *To:* XSI@(protected) > *Subject:* Re: Spring-op - rendering > > Try this: > > ######################### > > HairPlot > > ' test new code > ' logmessage GetOutputPorts(GetSpringCompOp()(0)) > > '-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > ' returns all scripted operators within scene > '-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > function GetScriptedOperators() > siScriptedOperatorID = "{CCECD9D9-10A3-11d4-879F-00A0C983050D}" > set GetScriptedOperators = FindObjects(,siScriptedOperatorID) > > if typename(GetScriptedOperators) = "Nothing" then > set GetScriptedOperators = CreateObject("XSI.Collection") > end if > end function > > > '-- ---- ---- ---- ---- ---- ---- > ' return all springcomp operators > ' within scene > '-- ---- ---- ---- ---- ---- ---- > function GetSpringCompOps() > > siScriptedOperatorID = "{88E2C4DE-B0CA-4044-A289-EF1985593D52}" > > set GetSpringCompOps= FindObjects(,siScriptedOperatorID) > > if typename(GetSpringCompOps) = "Nothing" then > > set GetSpringCompOps= CreateObject("XSI.Collection") > > end if > > end function > > > '-- ---- ---- ---- ---- ---- ---- > ' return operator output ports > '-- ---- ---- ---- ---- ---- ---- > function GetOutputPorts(op) > if typename(op) <> "Operator" then > > end if > > set GetOutputPorts= CreateObject("XSI.Collection") > > ' get the parent of the op using enumelements > ' this will return all object that the operator writes to. > set elems = enumelements(op,false) > if typename(elems) <> "Nothing" then > for each elem in elems > GetOutputPorts.add elem > next > end if > > end function > > '-- ---- ---- ---- ---- ---- ---- > ' Hair Plot > '-- ---- ---- ---- ---- ---- ---- > function HairPlot > > preRoll = 20 'in frames > > DeselectAll > > set springSources = GetSpringCompOps() > > set springParams = CreateObject("XSI.Collection") > > for each springSource in springSources > springParams.additems GetOutputPorts(springSource) > next > > if springParams.count > 0 then > > 'get the first obj > > set firstObj = springSources(0).OutputPorts(0).Target2 > > dim Fstart, Fend > > Fstart = GetValue ("PlayControl.In") > RollStart = Fstart - preRoll > 'SetValue "PlayControl.In", RollStart > > Fend = GetValue ("PlayControl.Out") > > 'PlotToAction "trakk_with_hair_01.cube25", > "trakk_with_hair_01.cube25.kine.local.posx", "est", 82, 100, 1, 20, 3, > False, 0.01 > > set newAction = PlotToAction(firstObj, springParams, , RollStart, > Fend, 1, 20, 3, False, 0.01, True) > > SelectObj springSources.getastext > DeleteObj > > > > ApplyAction newAction > DeleteObj newAction > > > end if > > > end function > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- > Sandy Sutherland Digital Doodeller - TD > The Refinery (Cape) http://www.refinery.co.za > mailto:sandy@(protected) > (P) (+27 21) 480 3132 (F) (+27 21) 480 3101 > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- > > -- -- Original Message -- -- > *From:* Lee Hallett <mailto:lee.hallett@(protected)> > *To:* XSI@(protected) <mailto:XSI@(protected)> > *Sent:* Friday, June 03, 2005 10:50 AM > *Subject:* RE: Spring-op - rendering > > Sorry guys - resending with the *URGENT* ammendment, coz it's, > well Urgent... > > Quick one - how do you 'plot' the spring op ( tail from default > quad rig) for renedering a sequence across multiple machines > (batchserve)? > > > > Lee|3d animation and design.. > > Pixel pusher & 'telly colouring in' bloke > > There are only 10 sorts of people in the World - those that > understand binary, and those that don't. > > > * BBC Wales | C4 graphics area | Broadcasting House| > Llandaff, Cardiff. CF5 2QY.* * > * (* +44 (0)29 203 23370 > e-* lee.hallett@(protected) > > > http://www.bbc.co.uk/ > > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. Please note that the > BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > > http://www.bbc.co.uk/ > > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically > stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. Please note that the > BBC monitors e-mails sent or received. > Further communication will signify your consent to this.
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|