  | | | Spring-op - rendering | Spring-op - rendering 2005-06-03 - By Sandy Sutherland
Back MessageTry 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 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=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2800.1106" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <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></BODY></HTML>
|
|
 |