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?
 
custom widgets

custom widgets

2004-06-15       - By Jim Rothrock

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

In an ideal world, this is what would happen:

In my shader's SPDL file, there is a parameter "param" of type "color."  In the
"Defaults" section, the UIType would be set to the CLSID of a custom control
type, rather than "UIType = "RGB", 3."

When the shader's property page was displayed, the custom control would be
shown next to "param."  Instead of the color button, the RGB button, and the R,
G, and B sliders, there would be a color button and x, y, and Y sliders.
Clicking on the color button would open a new window containing a CIE
chromaticity diagram and a Y slider.  The user could click on a point in the
diagram to select a hue.  When the user clicked "OK," the window would be
closed and the "params" custom control would be updated.

After reading the documentation, it appears that it is not possible to do what
I want.  Each property page control has a type that is a member of the
siPPGControlType enumeration.  For example, "UIType = "RGB", 3" results in the
creation of a control of type siControlRGB.  There does not appear to be any
way to create custom control types.

It looks like the best I can do is to use scripting in the SPDL's "Logic"
section, perhaps combined with a custom display host, to get the behavior I
want.
--
Jim Rothrock | jimr@(protected)
 -- -- Original Message -- --
 From: kim aldis
 To: XSI@(protected)
 Sent: Saturday, June 12, 2004 2:09 PM
 Subject: RE: custom widgets


 are you thinking property pages? If so, try Application->Property Sets-
>Custom Property Wizard and chew through the sdk documentation sections on
PPGLayout and PPG.



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
   From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of
Jim Rothrock
   Sent: 12 June 2004 21:56
   To: XSI@(protected)
   Subject: custom widgets


   Is it possible to create custom widgets in XSI?  I want to create a color
selection widget that allows the color to be specified in CIE xyY coordinates.
I haven't found any references to custom widgets in the SDK documentation.
   --
   Jim Rothrock | jimr@(protected)
<!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.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>In an ideal world,&nbsp;this is what&nbsp;would
happen:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In my shader's SPDL file, there is a parameter
"param" of type "color."&nbsp; In the "Defaults" section,&nbsp;the
UIType&nbsp;would be&nbsp;set to the CLSID of a custom control type, rather
than
"UIType = "RGB", 3."</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When the shader's property page&nbsp;was displayed
,
the custom control&nbsp;would be&nbsp;shown next to "param."&nbsp; Instead of
the color button, the RGB button, and the R, G, and B sliders, there&nbsp;would
be&nbsp;a color button and x, y, and Y sliders.&nbsp; Clicking on the color
button would open a new window containing a CIE chromaticity diagram and a Y
slider.&nbsp; The user could click on a point in the diagram to select a
hue.&nbsp; When the user clicked "OK," the window&nbsp;would be&nbsp;closed and
the "params" custom control&nbsp;would be&nbsp;updated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>After reading the documentation, it appears that
it
is not possible to do what I want.&nbsp; Each property page control has a type
that is a member of the siPPGControlType enumeration.&nbsp; For example,
"UIType
= "RGB", 3" results in the creation of a control of type siControlRGB.&nbsp;
There does not appear to be any way to create custom control types.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>It looks like the best I can do is to use
scripting
in the SPDL's "Logic" section, perhaps combined with a custom display host, to
get the behavior I want.</FONT></DIV>
<DIV>--<BR>Jim Rothrock | <A
href="mailto:jimr@(protected)">jimr@(protected)</A></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> Saturday, June 12, 2004 2:09
 PM</DIV>
 <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: custom widgets</DIV>
 <DIV><BR></DIV>
 <DIV dir=ltr align=left><SPAN class=000420721-12062004><FONT face=Arial
 color=#008080 size=2>are you thinking property pages? If so, try
 Application-&gt;Property Sets-&gt;Custom Property Wizard and chew through the
 sdk documentation sections on PPGLayout and PPG.</FONT></SPAN></DIV><BR>
 <BLOCKQUOTE dir=ltr
 style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 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>Jim
   Rothrock<BR><B>Sent:</B> 12 June 2004 21:56<BR><B>To:</B> <A
   href="mailto:XSI@(protected)">XSI@(protected)</A><BR><B>Subject:</B>
   custom widgets<BR></FONT><BR></DIV>
   <DIV></DIV>
   <DIV><FONT face=Arial size=2>Is it possible to create custom widgets in
   XSI?&nbsp; I want to create a color selection widget that allows the color
   to be specified in CIE xyY&nbsp;coordinates.&nbsp; I haven't found any
   references to custom widgets in the SDK documentation.</FONT></DIV>
   <DIV><FONT face=Arial size=2>--<BR>Jim Rothrock | <A
   href="mailto:jimr@(protected)">jimr@(protected)</A></FONT></DIV><
/BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>