Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Spring-op - rendering

Spring-op - rendering

2005-06-03       - By Sandy Sutherland

 Back
Reply:     1     2     3     4     5     6     7     8     9  

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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>#########################</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>HairPlot</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>' test new code<BR>' logmessage
GetOutputPorts(GetSpringCompOp()(0))</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial
size=2>'-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---<BR>'
returns all scripted operators within
scene<BR>'-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---<BR
>function
GetScriptedOperators()<BR>&nbsp;siScriptedOperatorID =
"{CCECD9D9-10A3-11d4-879F-00A0C983050D}"<BR>&nbsp;set GetScriptedOperators =
FindObjects(,siScriptedOperatorID)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;if typename(GetScriptedOperators) = "Nothing
"
then<BR>&nbsp;&nbsp;set GetScriptedOperators =
CreateObject("XSI.Collection")<BR>&nbsp;end if<BR>end function</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>'-- ---- ---- ---- ---- ---- ----<BR>' return all springcomp operators
<BR>' within scene<BR>'-- ---- ---- ---- ---- ---- ----<BR>&nbsp;function
GetSpringCompOps()</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;siScriptedOperatorID = "{88E2C4DE-B0CA-4044-A289-EF1985593D52}"</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;set GetSpringCompOps= FindObjects(,siScriptedOperatorID)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;if typename(GetSpringCompOps) = "Nothing" then</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;set GetSpringCompOps= CreateObject("XSI.Collection")</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;end if</DIV>
<DIV>&nbsp;</DIV>
<DIV>end function</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>'-- ---- ---- ---- ---- ---- ----<BR>' return operator output
ports<BR>'-- ---- ---- ---- ---- ---- ----<BR>function
GetOutputPorts(op)<BR>&nbsp;if typename(op) &lt;&gt; "Operator"
then<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;end if<BR>&nbsp;&nbsp;<BR>&nbsp;set
GetOutputPorts= CreateObject("XSI.Collection")<BR>&nbsp;<BR>&nbsp;' get the
parent of the op using enumelements<BR>&nbsp;' this will return all object that
the operator writes to.<BR>&nbsp;set elems = enumelements(op,false)<BR>&nbsp;if
typename(elems) &lt;&gt; "Nothing" then<BR>&nbsp;&nbsp;for each elem in
elems<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetOutputPorts.add
elem<BR>&nbsp;&nbsp;next<BR>&nbsp;end if<BR>&nbsp;&nbsp;&nbsp;<BR>end
function</DIV>
<DIV>&nbsp;</DIV>
<DIV>'-- ---- ---- ---- ---- ---- ----<BR>' Hair
Plot<BR>'-- ---- ---- ---- ---- ---- ----<BR>function
HairPlot<BR>&nbsp;<BR>&nbsp;preRoll = 20 'in frames</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;DeselectAll</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;set springSources = GetSpringCompOps()</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;set springParams =
CreateObject("XSI.Collection")<BR>&nbsp;<BR>&nbsp;for each springSource in
springSources <BR>&nbsp;&nbsp;springParams.additems
GetOutputPorts(springSource)<BR>&nbsp;next<BR>&nbsp;<BR>&nbsp;if
springParams.count &gt; 0 then<BR>&nbsp;<BR>&nbsp;&nbsp;'get the first obj</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp; &nbsp;&nbsp; set firstObj =
springSources(0).OutputPorts(0).Target2<BR>&nbsp;<BR>&nbsp;&nbsp;dim Fstart,
Fend<BR>&nbsp;<BR>&nbsp;&nbsp;Fstart = GetValue
("PlayControl.In")<BR>&nbsp;&nbsp;RollStart = Fstart -
preRoll<BR>&nbsp;&nbsp;'SetValue "PlayControl.In", RollStart</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;Fend = GetValue
("PlayControl.Out")<BR>&nbsp;<BR>&nbsp;&nbsp;'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>&nbsp;</DIV>
<DIV>&nbsp; &nbsp;&nbsp;set newAction = PlotToAction(firstObj, springParams, ,
RollStart, Fend, 1, 20, 3, False, 0.01, True)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;SelectObj springSources.getastext <BR>&nbsp;&nbsp;DeleteObj
</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;ApplyAction
newAction<BR>&nbsp;&nbsp;DeleteObj newAction<BR>&nbsp;&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;end if<BR>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>end function<BR></FONT></DIV>
<DIV>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----<BR>Sandy
Sutherland&nbsp;&nbsp;Digital Doodeller - TD<BR>The Refinery
(Cape)&nbsp;&nbsp;<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&nbsp; (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>&nbsp;</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>&nbsp;</DIV>
 <DIV>&nbsp;</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 &amp;
   '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">&nbsp;</FONT>
<FONT
   face=Wingdings size=2>*</FONT><FONT face=Tahoma>&nbsp;</FONT><FONT
   face=Tahoma size=1> &nbsp;&nbsp;&nbsp;&nbsp; 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">&nbsp;</FONT>
<FONT
   face=Wingdings size=2>(</FONT></SPAN></B><SPAN
   lang=en-us>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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">&nbsp;&nbsp;&nbsp;&nbsp;</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>