  | | | echo all commands? | echo all commands? 2005-05-05 - By Robert Moodie
Back This is taken from XSIBase - Talk with the pro's section. It might be of some use... http://www.xsibase.com/forum/index.php?board=26;action=display;threadid=16336 ;start=60
_rob
Michael Isner:
Ok, so here's a quick example of how to have a tool read the fcurve editor. Just take this script:
www.isner.com/examples/LogCurveEditor.zip
And put it in your plugins directory: C:\users\[your username]\Softimage\XSI_4.2\Application\Plugins
Either restart XSI or File > Plugins > Manager > Update to have it read all the plugins in that folder.
It will make a menu entry in the fcurve editor at the bottom of the Edit menu. Basically you can ignore the first three functions which install your plugin and reuse them when you make a new file/tool, only changing the function name "LogCurveEditor"
To change how the tool is manipulating selected Curves and Keys, look at the function LogCurveEditor_Execute. If in the help for XSI scripting under FcurveEditor you will see it is being passed a context with a few properties like: EditorAttribute, SelectedFCurves and SelectedKeys.
Hope that helps, Michael
-- -- Original Message -- -- From: kim aldis To: XSI@(protected) Sent: Wednesday, May 04, 2005 6:16 PM Subject: RE: echo all commands?
that would be because things you do in the fcurve editor aren't commands and so don't register in the history pane.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Chris Johnson Sent: 04 May 2005 23:00 To: XSI@(protected) Subject: echo all commands?
This is a command you can apparently run in Maya to increase the verbosity of it's script editor. Is there a command like this in XSI. Some functions don 't return a string in the script editor and I try to get the command for that function.
I wanna set a hot key for deselecting all keys in the F-curve editor. However doing this returns nothing in the script editor. <!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.2800.1498" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Tahoma size=2>This is taken from XSIBase - Talk with the pro's section. It might be of some use...</FONT></DIV> <DIV><FONT face=Tahoma size=2><A href="http://www.xsibase.com/forum/index.php?board=26;action=display;threadid =16336;start=60">http://www.xsibase.com/forum/index.php?board=26;action=display ;threadid=16336;start=60</A></FONT></DIV> <DIV><FONT face=Tahoma size=2></FONT> </DIV> <DIV><FONT face=Tahoma size=2>_rob</FONT></DIV> <DIV><FONT face=Tahoma size=2><!--StartFragment --><FONT face=Tahoma size=2></FONT></FONT></DIV> <DIV><FONT face=Tahoma size=2></FONT> </DIV> <DIV><FONT face=Tahoma size=2>Michael Isner:</FONT></DIV> <DIV><FONT face=Tahoma size=2></FONT> </DIV> <DIV><FONT face=Tahoma size=2> <FONT face=arial size=2><FONT size=2>Ok, so heres a quick example of how to have a tool read the fcurve editor. Just take this script:<BR><BR><A href="http://www.isner.com/examples/LogCurveEditor.zip" target=_blank><FONT color=#000000>www.isner.com/examples/LogCurveEditor.zip</FONT></A><BR><BR>And put it in your plugins directory: <BR>C:\users\[your username]\Softimage\XSI_4.2\Application\Plugins<BR><BR>Either restart XSI or File > Plugins > Manager > Update to have it read all the plugins in that folder.<BR><BR>It will make a menu entry in the fcurve editor at the bottom of the Edit menu. Basically you can ignore the first three functions which install your plugin and reuse them when you make a new file/tool, only changing the function name LogCurveEditor<BR><BR>To change how the tool is manipulating selected Curves and Keys, look at the function LogCurveEditor_Execute. If in the help for XSI scripting under FcurveEditor you will see it is being passed a context with a few properties like: EditorAttribute, SelectedFCurves and SelectedKeys.<BR><BR>Hope that helps,<BR>Michael</FONT></FONT><FONT face="Times New Roman" size=3> </FONT></FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Tahoma 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=kim@(protected) href="mailto:kim@(protected)">kim aldis</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 04, 2005 6:16 PM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: echo all commands?</DIV> <DIV><BR></DIV> <DIV dir=ltr align=left><SPAN class=468561522-04052005><FONT face=Arial color=#0000ff size=2>that would be because things you do in the fcurve editor aren't commands and so don't register in the history pane.</FONT></SPAN></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> <A href="mailto:owner-xsi@(protected)">owner-xsi@(protected)</A> [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Chris Johnson<BR><B>Sent:</B> 04 May 2005 23:00<BR><B>To:</B> <A href="mailto:XSI@(protected)">XSI@(protected)</A><BR><B>Subject:</B> echo all commands?<BR></FONT><BR></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2> <DIV><FONT face=Arial size=2>This is a command you can apparently run in Maya to increase the verbosity of it's script editor. Is there a command like this in XSI. Some functions don't return a string in the script editor and I try to get the command for that function.</FONT></DIV> <DIV> </DIV> <DIV>I wanna set a hot key for deselecting all keys in the F-curve editor. However doing this returns nothing in the script editor.</DIV></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
|
|
 |