  | | | SPDL hacking to change defaults... | SPDL hacking to change defaults... 2004-05-12 - By Nick
Back Cheers Chinny! That's pretty cool... I've overridden the camera.preset with one set to PAL so all my cameras come in as PAL by default, without having to get a new scene... Regarding the custom parameter that you're creating on new scene, couldn't you rather use the user preferences Time settings? I've hacked the renderoptions.spdl to read that custom param of yours instead so on new scene the renderoptions are automatically set to PAL for the default pass... using a pretty ugly hack:
oPAL = GetValue ("Camera_User_Prefs.PAL") if oPAL = True then SetValue "Passes.*Pass.RenderOptions.PictureStandard", 10 ' <= This is VERY ugly and needs all the passes to have a "pass" at the end of their name... End If
I couldn't figure out what the proper syntax should look like, like you had SetValue "Camera1.Camera.Std", 10 ... a pointer there would be awesome! ;)
>From the annotation at the head of the renderoptions.spdl:
// Note that the default values set for each parameter are not actually loaded // from the SPDL as of yet; instead you must update the values in the source code // and in some cases, generate a preset based on these chnages. For good measure, // and for the future when we hopefully implement the usage of default values, // keep the values in the SPDL up to date.
.. so, for the renderoptions, where is that preset I so want to overwrite (but can't as that ppg won't allow us to save it!) or is this a case of the source code needing to be changed?
BTW, I'm also attacking the C3DParType.spdl to try and get the environment controls to accept an Age% parameter rather than just the Abs/Age/Birth ones that are in there... so now it displays an Age%... that spdl refers to a few other spdls in the DEFINE_GUID section, however there's only an spdl id number, no name... any chance of getting the sim guys to tell me which ones I should be looking at? Is this another case of source code needing to be modified (dynaops and dynaprops.dlls...)?
Cheers! -- -- Original Message -- -- From: Jason Brynford-Jones To: XSI@(protected) Sent: Wednesday, May 12, 2004 7:07 AM Subject: RE: SPDL hacking to change defaults...
Here is an 8k addon
Inside is a toolbar with two buttons and a modified camera spdl
(C:\users\YOU\Softimage\XSI\Addons\spdl)
(C:\users\YOU\Softimage\XSI\Addons\Data\Scripts NewEventScript.vbs and InstallEvent.vbs)
One to install the event, one is the event script
For those who don't care about PAL - ignore the spdl Else Copy the spdl file over your install one
C:\Softimage\XSI_3.5.1\Application\spdl\C3DCamera.spdl
1 Hit Install Event on the toolbar (yes you guessed it, it installed the event)
2 Right click on New Scene Event to edit and add your own stuff
Any questions drop me a mail
Chin
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Nick Sent: Tuesday, May 11, 2004 1:17 PM To: XSI Subject: Re: SPDL hacking to change defaults...
By the way, in the renderoptions.spdl file, in the layout section for the format tab, under "Picture Standard", there's a "// parameter needs to be converted to string bug 32366" comment... can anyone shed any light on this? That's just for Softimage internal reference
Cheers!
-- -- Original Message -- --
From: Nick
To: XSI
Sent: Wednesday, May 12, 2004 3:11 AM
Subject: SPDL hacking to change defaults...
Hiya I'm just currently revamping my XSI so it starts up all nice and customized but I'm hitting a brick wall when it comes to hacking the camera and render options SPDLs... I've setup all the options in the C3DCamera.spdl to match the normal PAL settings, and the same with the render options, so they default to PAL and with the sampling threshold down a bit lower than the default of 0.2 (which I always end up decreasing)... I thought that would do it as it did the others (shader SPDLs I like to have certain options turned off by default) however, after restarting XSI I'm not having any luck, everything is still set to the old defaults... anybody know what exactly I should be hacking to get this going? I've been going the interminable list of spdls in the application directory and can't seem to find the ones to hack...
Cheers!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word"><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content=Word.Document name=ProgId> <META content="MSHTML 6.00.2800.1106" name=GENERATOR> <META content="Microsoft Word 10" name=Originator><LINK href="cid:filelist.xml@(protected)" rel=File-List><!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <STYLE>@(protected) { font-family: Tahoma; } @(protected) Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; mso -header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso -style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso -style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" } DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso -style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" } A:link { COLOR: blue; TEXT-DECORATION: underline; text-underline: single } SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline; text-underline: single } A:visited { COLOR: blue; TEXT-DECORATION: underline; text-underline: single } SPAN.MsoHyperlinkFollowed { COLOR: blue; TEXT-DECORATION: underline; text-underline: single } SPAN.EmailStyle17 { COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply; mso-style -noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii -font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial } SPAN.GramE { mso-style-name: ""; mso-gram-e: yes } DIV.Section1 { page: Section1 } </STYLE> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--></HEAD> <BODY lang=EN-US style="tab-interval: .5in" vLink=blue link=blue bgColor=white> <DIV><FONT face=Arial size=2>Cheers Chinny! That's pretty cool...</FONT></DIV> <DIV><FONT face=Arial size=2>I've overridden the camera.preset with one set to PAL so all my cameras come in as PAL by default, without having to get a new scene...</FONT></DIV> <DIV><FONT face=Arial size=2>Regarding the custom parameter that you're creating on new scene, couldn't you rather use the user preferences Time settings?</FONT></DIV> <DIV><FONT face=Arial size=2>I've hacked the renderoptions.spdl to read that custom param of yours instead so on new scene the renderoptions are automatically set to PAL for the default pass... using a pretty ugly hack:</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>oPAL = GetValue ("Camera_User_Prefs.PAL")<BR>if oPAL = True then<BR> SetValue "Passes.*Pass.RenderOptions.PictureStandard", 10 <FONT color=#008000>' <= This is VERY ugly and needs all the passes to have a "pass" at the end of their name...</FONT><BR>End If</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I couldn't figure out what the proper syntax should look like, like you had </FONT></DIV> <DIV><FONT face=Arial size=2>SetValue "Camera1.Camera.Std", 10 </FONT><FONT face=Arial size=2>... a pointer there would be awesome! ;)</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>From the annotation at the head of the renderoptions.spdl:</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2><FONT color=#008000>// Note that the default values set for each parameter are not actually loaded<BR>// from the SPDL as of yet; instead you must update the values in the source code<BR>// and in some cases, generate a preset based on these chnages. For good measure,<BR>// and for the future when we hopefully implement the usage of default values,<BR>// keep the values in the SPDL up to date.</FONT></FONT></DIV> <DIV><FONT face=Arial size=2><FONT color=#008000><BR></FONT></FONT><FONT face=Arial size=2>... so, for the renderoptions, where is that preset I so want to overwrite (but can't as that ppg won't allow us to save it!) or is this a case of the source code needing to be changed?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>BTW, I'm also attacking the C3DParType.spdl to try and get the environment controls to accept an Age% parameter rather than just the Abs/Age/Birth ones that are in there... so now it displays an Age%... that spdl refers to a few other spdls in the DEFINE_GUID section, however there's only an spdl id number, no name... any chance of getting the sim guys to tell me which ones I should be looking at? </FONT><FONT face=Arial size=2>Is this another case of source code needing to be modified (dynaops and dynaprops.dlls...)?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Cheers!</FONT></DIV> <DIV><FONT face=Arial size=2> </FONT></DIV> <BLOCKQUOTE dir=ltr 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=chinny@(protected) href="mailto:chinny@(protected)">Jason Brynford-Jones</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> Wednesday, May 12, 2004 7:07 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: SPDL hacking to change defaults...</DIV> <DIV><BR></DIV> <DIV class=Section1> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Here is an 8k addon<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Inside is a toolbar with two buttons and a modified camera spdl<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">(C:\users\YOU \Softimage\XSI\Addons\spdl)<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">(C:\users\YOU \Softimage\XSI\Addons\Data\Scripts<SPAN style="mso-spacerun: yes"> </SPAN>NewEventScript.vbs<SPAN style="mso-spacerun: yes"> </SPAN>and InstallEvent.vbs)<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">One to install the event, one is the event script<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">For those who dont care about PAL - ignore the spdl<SPAN style="mso-spacerun: yes"> </SPAN>Else<SPAN style="mso-spacerun: yes"> </SPAN>Copy the spdl file over your install one<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">C:\Softimage\XSI_3.5 .1\Application\spdl\C3DCamera.spdl<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">1<SPAN style="mso-tab-count: 1"> </SPAN>Hit Install Event on the toolbar (yes you guessed it, it installed the event)<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">2<SPAN style="mso-tab-count: 1"> </SPAN>Right click on New Scene Event to edit and add your own stuff<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Any questions drop me a mail<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Chin<o:p></o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-- --Original Message-- --<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Nick<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, May 11, 2004 1:17 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> XSI<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: SPDL hacking to change defaults...</SPAN></FONT></P> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">By the way, in the renderoptions.spdl file, in the layout section for the format tab, under "Picture Standard", there's a "// parameter needs to be converted to string bug 32366" comment... can anyone shed any light on this<FONT color=navy><SPAN style="COLOR: navy">?<SPAN style="mso-tab-count: 1"> </SPAN>Thats just for Softimage internal reference<o:p></o:p></SPAN></FONT></SPAN></FONT></P></DIV> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Cheers!</SPAN></FONT><o:p></o:p>< /P></DIV> <BLOCKQUOTE style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none ; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; MARGIN: 5pt 0in 5pt 3.75pt; BORDER -LEFT: black 1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none"> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">-- -- Original Message -- -- <o:p></o:p></SPAN></FONT></P></DIV> <DIV style="font-color: black"> <P class=MsoNormal style="BACKGROUND: #e4e4e4; MARGIN-LEFT: 0.5in"><B><FONT face=Arial size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">From:</SPAN> </FONT></B><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <A title=NPetit@(protected) href="mailto:NPetit@(protected)">Nick</A> <o:p></o:p></SPAN></FONT></P></DIV> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><B><FONT face=Arial size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">To:</SPAN>< /FONT></B><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <A title=XSI@(protected) href="mailto:XSI@(protected)">XSI</A> <o:p></o:p></SPAN></FONT></P></DIV> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><B><FONT face=Arial size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Sent:</SPAN> </FONT></B><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> Wednesday, May 12, 2004 3:11 AM<o:p></o:p></SPAN></FONT></P></DIV> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><B><FONT face=Arial size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">Subject:< /SPAN></FONT></B><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> SPDL hacking to change defaults...<o:p></o:p></SPAN></FONT></P></DIV> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P></DIV> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hiya I'm just currently revamping my XSI so it starts up all nice and customized but I'm hitting a brick wall when it comes to hacking the camera and render options SPDLs... I've setup all the options in the C3DCamera.spdl to match the normal PAL settings, and the same with the render options, so they default to PAL and with the sampling threshold down a bit lower than the default of 0.2 (which I always end up decreasing)... I thought that would do it as it did the others (shader SPDLs I like to have certain options turned off by default) however, after restarting XSI I'm not having any luck, everything is still set to the old defaults... anybody know what exactly I should be hacking to get this going? I've been going the interminable list of spdls in the application directory and can't seem to find the ones to hack...</SPAN></FONT><o:p></o:p></P></DIV> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV> <DIV> <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Cheers!</SPAN></FONT><o:p></o:p ></P></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>
|
|
 |