python button problem

Date : Mon, 18 Jul 2005 12:26:32 +0200
To : XSI(at)Softimage.COM
From : Peter Hartwig <peter(at)hartwig.dk>
Subject : python button problem
Hey All

I have a problem with a ppg in xsi that i am writing with python... basically, nothing happens when i click the buttons... no function is called or anything... help?

siInt4 = 3
siFloat = 4
siDouble = 5
siString = 8
siBool = 11
siUByte = 17
null = 0
false = 0
true = 1
siPersistable = 4
siAnimatable = 1
siReadOnly = 1
siUIValueOnly = "ValueOnly"

def XSILoadPlugin( in_reg ):
   in_reg.Author = "Wizard User"
   in_reg.Name = "MyPropertyPlugin"
   in_reg.Major = 1
   in_reg.Minor = 1
   in_reg.RegisterProperty( "MyProperty" )
   return true

def MyProperty_Define( io_Context ):
   oCustomProperty = io_Context.Source

def MyProperty_DefineLayout( io_Context ):
   oLayout = io_Context.Source
   oLayout.Clear(  )
   oLayout.AddButton( "yada" )

def MyProperty_OnInit( ):
   Application.LogMessage( "OnInit called" )

def MyProperty_yada_OnClicked( ):
   Application.LogMessage( "MyProperty_yada_OnClicked called" )

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.