  | | | Spring-op - rendering | Spring-op - rendering 2005-06-03 - By kim aldis
Back I'm messing with jrewriting the -r frame loop script for some rendering stuff I'm working on that does automatic frame distribution and I'm thinking maybe, if there's a refresh on all the inbetween frames that aren't being rendered then possibly we can get around this limitation. I'll try and find the time to mess with it and if it does, I'll post findings.
<mailto:kim@(protected)> kim@(protected)
kim@(protected)
__ __
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 <mailto:lee.hallett@(protected)> Hallett To: 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.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2900.2627" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV dir=ltr align=left><SPAN class=515404809-03062005><FONT face=Arial color=#0000ff size=2>I'm messing with jrewriting the -r frame loop script for some rendering stuff I'm working on that does automatic frame distribution and I'm thinking maybe, if there's a refresh on all the inbetween frames that aren 't being rendered then possibly we can get around this limitation. I'll try and find the time to mess with it and if it does, I'll post findings.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=515404809-03062005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=515404809-03062005></SPAN> </DIV> <DIV> </DIV> <DIV class=Section1> <TABLE style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt" cellSpacing=0 cellPadding=0 border=1> <TBODY> <TR> <TD style="BORDER-RIGHT: #999999 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #999999 0.5pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #999999 0.5pt solid; WIDTH: 235.8pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #999999 0 .5pt solid" vAlign=top width=314 colSpan=2> <P class=MsoNormal><IMG height=42 src="cid:515404809@(protected)" width=300 v:shapes="_x0000_i1031"></P></TD></TR> <TR> <TD style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER -TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #999999 0.5pt solid; WIDTH: 107.6pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #999999 0 .5pt solid; mso-border-top-alt: solid #999999 .5pt" vAlign=top width=143> <P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial; mso-bidi-font -size: 12.0pt"><A href="mailto:kim@(protected)"><SPAN style="COLOR: #999999; TEXT-DECORATION: none; text-underline: none">kim @(protected)</SPAN></A><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P></TD> <TD style="BORDER-RIGHT: #999999 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none ; WIDTH: 128.2pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #999999 0.5pt solid; mso -border-top-alt: solid #999999 .5pt; mso-border-left-alt: solid windowtext .5pt" vAlign=top width=171> <P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 10pt; COLOR: #999999; FONT-FAMILY: Arial; mso-bidi-font -size: 12.0pt">kim@(protected)<o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE> <P class=MsoNormal> <o:p></o:p></P></DIV> <DIV> </DIV><BR> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Sandy Sutherland<BR><B>Sent:</B> 03 June 2005 10:08<BR><B>To:</B> XSI@(protected)<BR><B>Subject:</B> Re: Spring-op - rendering<BR></FONT><BR></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2>Try this:</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>#########################</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>HairPlot</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>' test new code<BR>' logmessage GetOutputPorts(GetSpringCompOp()(0))</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>'-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---<BR>' returns all scripted operators within scene<BR>'-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---<BR >function GetScriptedOperators()<BR> siScriptedOperatorID = "{CCECD9D9-10A3-11d4-879F-00A0C983050D}"<BR> set GetScriptedOperators = FindObjects(,siScriptedOperatorID)</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2> if typename(GetScriptedOperators) = "Nothing" then<BR> set GetScriptedOperators = CreateObject("XSI.Collection")<BR> end if<BR>end function</FONT></DIV> <DIV> </DIV><FONT face=Arial size=2> <DIV><BR>'-- ---- ---- ---- ---- ---- ----<BR>' return all springcomp operators <BR>' within scene<BR>'-- ---- ---- ---- ---- ---- ----<BR> function GetSpringCompOps()</DIV> <DIV> </DIV> <DIV> siScriptedOperatorID = "{88E2C4DE-B0CA-4044-A289-EF1985593D52}"</DIV> <DIV> </DIV> <DIV> set GetSpringCompOps= FindObjects(,siScriptedOperatorID)</DIV> <DIV> </DIV> <DIV> if typename(GetSpringCompOps) = "Nothing" then</DIV> <DIV> </DIV> <DIV> set GetSpringCompOps= CreateObject("XSI.Collection")</DIV> <DIV> </DIV> <DIV> end if</DIV> <DIV> </DIV> <DIV>end function</DIV> <DIV> </DIV> <DIV><BR>'-- ---- ---- ---- ---- ---- ----<BR>' return operator output ports<BR>'-- ---- ---- ---- ---- ---- ----<BR>function GetOutputPorts(op)<BR> if typename(op) <> "Operator" then<BR> <BR> end if<BR> <BR> set GetOutputPorts= CreateObject("XSI.Collection")<BR> <BR> ' get the parent of the op using enumelements<BR> ' this will return all object that the operator writes to.<BR> set elems = enumelements(op,false)<BR> if typename(elems) <> "Nothing" then<BR> for each elem in elems<BR> GetOutputPorts.add elem<BR> next<BR> end if<BR> <BR>end function</DIV> <DIV> </DIV> <DIV>'-- ---- ---- ---- ---- ---- ----<BR>' Hair Plot<BR>'-- ---- ---- ---- ---- ---- ----<BR>function HairPlot<BR> <BR> preRoll = 20 'in frames</DIV> <DIV> </DIV> <DIV> DeselectAll</DIV> <DIV> </DIV> <DIV> set springSources = GetSpringCompOps()</DIV> <DIV> </DIV> <DIV> set springParams = CreateObject("XSI.Collection")<BR> <BR> for each springSource in springSources <BR> springParams.additems GetOutputPorts(springSource)<BR> next<BR> <BR> if springParams.count > 0 then<BR> <BR> 'get the first obj</DIV> <DIV> </DIV> <DIV> set firstObj = springSources(0).OutputPorts(0).Target2<BR> <BR> dim Fstart, Fend<BR> <BR> Fstart = GetValue ("PlayControl.In")<BR> RollStart = Fstart - preRoll<BR> 'SetValue "PlayControl.In", RollStart</DIV> <DIV> </DIV> <DIV> Fend = GetValue ("PlayControl.Out")<BR> <BR> 'PlotToAction "trakk_with_hair_01.cube25", "trakk_with_hair_01.cube25.kine.local.posx", "est", 82, 100, 1, 20, 3, False, 0.01</DIV> <DIV> </DIV> <DIV> set newAction = PlotToAction(firstObj, springParams, , RollStart, Fend, 1, 20, 3, False, 0.01, True)</DIV> <DIV> </DIV> <DIV> SelectObj springSources.getastext <BR> DeleteObj </DIV> <DIV> </DIV> <DIV> <BR> <BR> ApplyAction newAction<BR> DeleteObj newAction<BR> </DIV> <DIV> </DIV> <DIV> end if<BR> </DIV> <DIV> </DIV> <DIV>end function<BR></FONT></DIV> <DIV>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----<BR>Sandy Sutherland Digital Doodeller - TD<BR>The Refinery (Cape) <A href="http://www.refinery.co.za">http://www.refinery.co.za</A><BR><A href="mailto:sandy@(protected)">mailto:sandy@(protected)</A><BR>(P) ( +27 21) 480 3132 (F) (+27 21) 480 3101<BR>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----<BR></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:< /B> <A title=lee.hallett@(protected) href="mailto:lee.hallett@(protected)">Lee Hallett</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=XSI@(protected) href="mailto:XSI@(protected)">XSI@(protected)</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, June 03, 2005 10:50 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: Spring-op - rendering</DIV> <DIV><BR></DIV> <DIV><SPAN class=976224908-03062005><FONT face=Arial color=#0000ff size=2>Sorry guys - resending with the *URGENT* ammendment, coz it's, well Urgent...</FONT></SPAN></DIV> <DIV><SPAN class=976224908-03062005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=976224908-03062005><FONT face=Arial size=2>Quick one - how do you 'plot' the spring op ( tail from default quad rig) for renedering a sequence across multiple machines (batchserve)?</FONT></SPAN></DIV> <DIV> </DIV> <DIV> </DIV><!-- Converted from text/rtf format --><BR> <UL> <P align=center><SPAN lang=en-gb><FONT face=Arial size=2>Lee|3d animation and design..<U></U></FONT></SPAN></P> <P align=center><SPAN lang=en-gb><FONT face=Arial size=2>Pixel pusher & 'telly colouring in' bloke</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us></SPAN></P>< /UL> <P align=center><SPAN lang=en-gb><FONT face=Arial size=1>There are only 10 sorts of people in the World - those that understand binary, and those that don't.</FONT></SPAN></P><BR> <UL> <P><SPAN lang=en-us><FONT face=Wingdings size=1><FONT face="Courier New"></FONT></FONT><FONT face="Courier New"> </FONT><FONT face=Wingdings size=2>*</FONT><FONT face=Tahoma> </FONT><FONT face=Tahoma size=1> BBC Wales | C4 graphics area | Broadcasting House| Llandaff, Cardiff. CF5 2QY.</FONT></SPAN><SPAN lang=en-gb><B></B></SPAN><SPAN lang=en-gb><B> </B></SPAN><BR><B><SPAN lang=en-us><FONT face=Wingdings size=1><FONT face="Courier New"></FONT></FONT><FONT face="Courier New"> </FONT><FONT face=Wingdings size=2>(</FONT></SPAN></B><SPAN lang=en-us> <FONT face=Tahoma size=1> +44 (0)29 203 23370</FONT><B></B></SPAN> <BR><SPAN lang=en-gb><FONT face=Arial size=2>e-</FONT><FONT face=Wingdings size=2>*</FONT><FONT face="Courier New"> </FONT> <FONT face=Arial size=1>lee.hallett@(protected)</FONT></SPAN><SPAN lang=en-us></SPAN><SPAN lang=en-us><B></B></SPAN><SPAN lang=en-us><B></B></SPAN> </P></UL><BR>http://www.bbc.co.uk/<BR><BR>This e-mail (and any attachments) is confidential and may contain<BR>personal views which are not the views of the BBC unless specifically<BR>stated.<BR>If you have received it in error, please delete it from your system. <BR>Do not use, copy or disclose the information in any way nor act in<BR>reliance on it and notify the sender immediately. Please note that the<BR>BBC monitors e-mails sent or received. <BR>Further communication will signify your consent to this. </BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
|
|
 |