  | | | Metaballs.... What about lines | Metaballs.... What about lines 2005-04-12 - By Guillaume Laforge
Back > Is there any way to only get them to loft as mental ray is initialized?
Maybe you can use "OnBeginSequence" ...but I can't make it works...xsi freeze each time when I start render because I don't know the correct scripting syntax .
I'm not a scripting specialist but here is the idea to render some lines at render time :
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////// //<OnBeginSequenceJScript code> function XSIApplication::OnBeginSequence( CustomData, RenderType, FileName, Frame, Sequence, RenderField, UnUsed ) { Application.LogMessage( "*** JScript Event - XSIApplication::OnBeginSequence: * **");
// -- ---- ---- ---- ---- ---- ---- ---Rendered lines script-- ---- ---- ------ -- ---- ---- ---- ---- ---- ---- -----
//select the rendered lines ( you must add your lines to a group named "rendered_lines" ). SelectObj("rendered_lines", null, null); var oRenderedLines = SelectMembers(null, null, null);
//set the thickness for the lines here. var oRadius = 0.1
//Create a temporary circle ( deleted with an "OnEndSequence"event ? ) var oCircle = CreatePrim("Circle", "NurbsCurve", null, null); SetValue(oCircle+".circle.radius", oRadius, null); RenderLines( oRenderedLines , oCircle )
//At the end the lofted lines are also deleted with an "OnEndSequence"event Is it possible ?
//The RenderLines function function RenderLines( limbs , profile ) { for (var i = 0 ; i < limbs.count ; i++) { ApplyGenOp("Extrusion", "NurbsSurface", profile + ";" + limbs(i), 3, siPersistentOperation, siKeepGenOpInputs, null); FreezeModeling(null, null, null); } }
return 0; }
//</OnBeginSequenceJScript code> /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
Cheers,
Guillaume Laforge CG artist learning scripting once in a while :-p www.vol2nuit.fr
-- -- Original Message -- -- From: "Wayne Williams" <wayne@(protected)> To: <XSI@(protected)> Sent: Tuesday, April 12, 2005 10:06 PM Subject: RE: Metaballs.... What about lines
> Is there any way to only get them to loft as mental ray is initialized? I'm guessing this is all max is doing as well...you just don't get the circle....it 's over in the modifier panel where you can change the thickness etc. > > -- --Original Message-- -- > From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Guillaume Laforge > Sent: Tuesday, April 12, 2005 3:45 PM > To: XSI@(protected) > Subject: Re: Metaballs.... What about lines > > > I don't know C4D rendered curves but the 3ds max "rendered lines" looks like > some extrusions along curve in XSI... > > So here is a possible workaround : > - Create a circle to control the thickness/subdivision of the "rendered > lines" then select all the curves you want to render. > - Run this script > http://www.philbarrenger.com/tutorials/beggin-script/begginerscripttut.js > - Pick the circle et voilĂ . > > Curves are not lofted at render time but it can do the job. > > Cheers, > > Guillaume Laforge > CG artist > www.vol2nuit.fr > > > > > > -- -- Original Message -- -- > From: "Lawrence Nimrichter" <lawrence@(protected)> > To: <XSI@(protected)> > Sent: Tuesday, April 12, 2005 8:07 PM > Subject: RE: Metaballs.... What about lines > > >> Part of this notion of actually adding useful tools we crave... What >> about the ability to render curves? Can everyone do this but us? There >> have been several instances where I have been working on more abstract >> projects and have had our designers laugh at us because Cinema 4D can >> render curves so nicely and we cannot render them at all. Whats the >> deal with that!!!! Why can't we have a line shader that we can >> attached to curves? Ofcourse we need to then be able to put lines in >> Render passes, control thickness, choose whether perspective >> influences thickness etc(all the basic stuff you have for controlling >> ink lines in the toon renderer). That would be a nice addition too. >> >> Ofcourse Cinema 4D has one cool ass toon shader. Have you guys seen >> the sketch render that Cinema 4D can do? Wow.... Can't reproduce that >> in XSI... >> >> Lawrence >> >> >> >> --- >> Unsubscribe? Mail Majordomo@(protected) with the following text in >> body: unsubscribe xsi >> > > > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2900.2604" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY> <DIV><FONT face=Arial size=2>> Is there any way to only get them to loft as mental ray is initialized?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Maybe you can use "OnBeginSequence" ...but I can't make it works...xsi freeze each time when I start render because I don't know the correct scripting syntax.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I'm not a scripting specialist but here is the idea to render some lines at render time :<BR></FONT><FONT face=Arial size=2><BR>//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////<BR>//< ;OnBeginSequenceJScript code><BR>function XSIApplication::OnBeginSequence( CustomData, RenderType, FileName, Frame, Sequence, RenderField, UnUsed ) <BR>{ <BR>Application.LogMessage( "*** JScript Event - XSIApplication::OnBeginSequence: ***"); <BR><BR>// -- ---- ---- ---- ---- ---- ---- ---Rendered lines script-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----</FONT></DIV> <DIV><FONT face=Arial size=2> <P><BR>//select the rendered lines ( you must add your lines to a group named "rendered_lines" ).<BR></FONT><FONT face=Arial size=2>SelectObj("rendered_lines", null, null);<BR>var oRenderedLines = SelectMembers(null, null, null);<BR><BR>//set the thickness for the lines here.<BR>var oRadius = 0.1<BR><BR>//Create a temporary circle ( deleted with an "OnEndSequence"event ? )<BR>var oCircle = CreatePrim("Circle", "NurbsCurve", null, null);<BR>SetValue(oCircle+".circle.radius", oRadius, null);<BR>RenderLines( oRenderedLines , oCircle )<BR><BR>//At the end the lofted lines are also deleted with an "OnEndSequence"event <BR>Is it possible ?</FONT><FONT face=Arial size=2><BR><BR>//The RenderLines function<BR>function RenderLines( limbs , profile )<BR>{<BR>for (var i = 0 ; i < limbs.count ; i++)<BR>{<BR>ApplyGenOp("Extrusion", "NurbsSurface", profile + ";" + limbs(i), 3, siPersistentOperation, siKeepGenOpInputs, null);<BR>FreezeModeling(null, null, null);<BR>}<BR>}</FONT></P> <P><FONT face=Arial size=2></FONT></P> <P><FONT face=Arial size=2>return 0; <BR>} </FONT></P> <P><FONT face=Arial size=2>//</OnBeginSequenceJScript code> <BR>/////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////</FONT></P> <P><FONT face=Arial size=2>Cheers,</FONT></P> <P><FONT face=Arial size=2>Guillaume Laforge<BR>CG artist learning scripting once in a while :-p<BR><A href="http://www.vol2nuit.fr">www.vol2nuit.fr</A></FONT></P> <P><FONT face=Arial size=2></FONT> </P></DIV> <DIV><FONT face=Arial size=2>-- -- Original Message -- -- </FONT> <DIV><FONT face=Arial size=2>From: "Wayne Williams" <</FONT><A href="mailto:wayne@(protected)"><FONT face=Arial size=2>wayne@(protected)</FONT></A><FONT face=Arial size=2>></FONT></DIV> <DIV><FONT face=Arial size=2>To: <</FONT><A href="mailto:XSI@(protected)"><FONT face=Arial size=2>XSI@(protected)</FONT></A><FONT face=Arial size=2>></FONT></DIV> <DIV><FONT face=Arial size=2>Sent: Tuesday, April 12, 2005 10:06 PM</FONT></DIV> <DIV><FONT face=Arial size=2>Subject: RE: Metaballs.... What about lines</FONT></DIV></DIV> <DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial size=2>> Is there any way to only get them to loft as mental ray is initialized? I'm guessing this is all max is doing as well...you just don't get the circle....it's over in the modifier panel where you can change the thickness etc. <BR>> <BR>> -- --Original Message-- --<BR>> From: </FONT><A href="mailto:owner-xsi@(protected)"><FONT face=Arial size=2>owner-xsi@(protected)</FONT></A><FONT face=Arial size=2> [mailto:owner-xsi@(protected)] On Behalf Of Guillaume Laforge<BR>> Sent: Tuesday, April 12, 2005 3:45 PM<BR>> To: </FONT><A href="mailto:XSI@(protected)"><FONT face=Arial size=2>XSI@(protected)</FONT></A><BR><FONT face=Arial size=2>> Subject: Re : Metaballs.... What about lines<BR>> <BR>> <BR>> I don't know C4D rendered curves but the 3ds max "rendered lines" looks like <BR>> some extrusions along curve in XSI...<BR>> <BR>> So here is a possible workaround :<BR>> - Create a circle to control the thickness/subdivision of the "rendered <BR>> lines" then select all the curves you want to render.<BR>> - Run this script <BR>> </FONT><A href="http://www.philbarrenger.com/tutorials/beggin-script/begginerscripttut.js "><FONT face=Arial size=2>http://www.philbarrenger.com/tutorials/beggin-script/begginerscripttut .js</FONT></A><BR><FONT face=Arial size=2>> - Pick the circle et voilĂ .<BR>> <BR>> Curves are not lofted at render time but it can do the job.<BR>> <BR>> Cheers,<BR>> <BR>> Guillaume Laforge<BR>> CG artist<BR>> </FONT><A href="http://www.vol2nuit.fr"><FONT face=Arial size=2>www.vol2nuit.fr</FONT></A><BR><FONT face=Arial size=2>> <BR>> <BR>> <BR>> <BR>> <BR>> -- -- Original Message -- -- <BR>> From: "Lawrence Nimrichter" <</FONT><A href="mailto:lawrence@(protected)"><FONT face=Arial size=2>lawrence@(protected)</FONT></A><FONT face=Arial size=2>><BR>> To: <</FONT><A href="mailto:XSI@(protected)"><FONT face=Arial size=2>XSI@(protected)</FONT></A><FONT face=Arial size=2>><BR>> Sent: Tuesday, April 12, 2005 8:07 PM<BR>> Subject: RE: Metaballs.... What about lines<BR>> <BR>> <BR>>> Part of this notion of actually adding useful tools we crave... What <BR>>> about the ability to render curves? Can everyone do this but us? There <BR>>> have been several instances where I have been working on more abstract <BR>>> projects and have had our designers laugh at us because Cinema 4D can <BR>>> render curves so nicely and we cannot render them at all. Whats the <BR>>> deal with that!!!! Why can't we have a line shader that we can <BR>>> attached to curves? Ofcourse we need to then be able to put lines in <BR>>> Render passes, control thickness, choose whether perspective <BR>>> influences thickness etc(all the basic stuff you have for controlling <BR>>> ink lines in the toon renderer). That would be a nice addition too.<BR>>><BR>>> Ofcourse Cinema 4D has one cool ass toon shader. Have you guys seen <BR>>> the sketch render that Cinema 4D can do? Wow.... Can't reproduce that <BR>>> in XSI...<BR>>><BR>>> Lawrence<BR>>><BR>>><BR>>><BR>>> ---<BR>>> Unsubscribe? Mail </FONT><A href="mailto:Majordomo@(protected)"><FONT face=Arial size=2>Majordomo@(protected)</FONT></A><FONT face=Arial size=2> with the following text in <BR>>> body: unsubscribe xsi<BR>>> <BR>> <BR>> <BR>> <BR>> <BR>> ---<BR>> Unsubscribe? Mail </FONT><A href="mailto:Majordomo@(protected)"><FONT face=Arial size=2>Majordomo@(protected)</FONT></A><FONT face=Arial size=2> with the following text in body: unsubscribe xsi<BR>> <BR>> ---<BR>> Unsubscribe? Mail </FONT><A href="mailto:Majordomo@(protected)"><FONT face=Arial size=2>Majordomo@(protected)</FONT></A><FONT face=Arial size=2> with the following text in body:<BR>> unsubscribe xsi</FONT></BODY></HTML>
|
|
 |