Re: Python and PPG
PPG.Inspected On Fri, Feb 28, 2014 at 4:51 AM, Szabolcs Matefy wrote: > Meanwhile I resolved this...but another issue. How can I refer to the object > to which the PPG is attached? > > > > Cheers > > > > > > *From:* softimage-boun...@listproc.autodesk.com [mailto: > softimage-boun...@listproc.autodesk.com] *On Behalf Of *Szabolcs Matefy > *Sent:* Friday, February 28, 2014 10:23 AM > *To:* softimage@listproc.autodesk.com > *Subject:* Python and PPG > > > > Hey guys > > > > I have to create a dialog to manage some actions. I want to load the > actions from the mixer into a listbox, but I really can't manage it in > Python. I would like to learn Python, but it seems that it'll be a hard > beginning... > > > > So, I've created the property using the waizard, and now I'd like to edit > the code. > > > > I've replaced the DefineLAyout function > > > > oLayout.AddItem("Actions") > > > > to > > > > oList = oLayout.AddItem("Actions","A", C.siControlListBox) > > oList.UIItems = ["One","One","Two","Two"] > > > > but nothing really happens...SDK docs has not much sample for PPG in > Python > > ___ > This message contains confidential information and is intended only for > the individual named. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately by e-mail if you have received this e-mail by mistake and > delete this e-mail from your system. E-mail transmission cannot be > guaranteed to be secure or error-free as information could be intercepted, > corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. > The sender therefore does not accept liability for any errors or omissions > in the contents of this message, which arise as a result of e-mail > transmission. If verification is required please request a hard-copy > version. Crytek GmbH - http://www.crytek.com - Grüneburgweg 16-18, 60322 > Frankfurt - HRB77322 Amtsgericht Frankfurt a. Main- UST IdentNr.: > DE20432461 - Geschaeftsfuehrer: Avni Yerli, Cevat Yerli, Faruk Yerli >
Re: Python and PPG
This should do: parentObject = ppgObject.Parent On Fri, Feb 28, 2014 at 10:51 AM, Szabolcs Matefy wrote: > Meanwhile I resolved this...but another issue. How can I refer to the object > to which the PPG is attached? > > > > Cheers > > > > > > *From:* softimage-boun...@listproc.autodesk.com [mailto: > softimage-boun...@listproc.autodesk.com] *On Behalf Of *Szabolcs Matefy > *Sent:* Friday, February 28, 2014 10:23 AM > *To:* softimage@listproc.autodesk.com > *Subject:* Python and PPG > > > > Hey guys > > > > I have to create a dialog to manage some actions. I want to load the > actions from the mixer into a listbox, but I really can't manage it in > Python. I would like to learn Python, but it seems that it'll be a hard > beginning... > > > > So, I've created the property using the waizard, and now I'd like to edit > the code. > > > > I've replaced the DefineLAyout function > > > > oLayout.AddItem("Actions") > > > > to > > > > oList = oLayout.AddItem("Actions","A", C.siControlListBox) > > oList.UIItems = ["One","One","Two","Two"] > > > > but nothing really happens...SDK docs has not much sample for PPG in > Python > > ___ > This message contains confidential information and is intended only for > the individual named. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately by e-mail if you have received this e-mail by mistake and > delete this e-mail from your system. E-mail transmission cannot be > guaranteed to be secure or error-free as information could be intercepted, > corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. > The sender therefore does not accept liability for any errors or omissions > in the contents of this message, which arise as a result of e-mail > transmission. If verification is required please request a hard-copy > version. Crytek GmbH - http://www.crytek.com - Grüneburgweg 16-18, 60322 > Frankfurt - HRB77322 Amtsgericht Frankfurt a. Main- UST IdentNr.: > DE20432461 - Geschaeftsfuehrer: Avni Yerli, Cevat Yerli, Faruk Yerli >
RE: Python and PPG
Meanwhile I resolved this...but another issue. How can I refer to the object to which the PPG is attached? Cheers From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Szabolcs Matefy Sent: Friday, February 28, 2014 10:23 AM To: softimage@listproc.autodesk.com Subject: Python and PPG Hey guys I have to create a dialog to manage some actions. I want to load the actions from the mixer into a listbox, but I really can't manage it in Python. I would like to learn Python, but it seems that it'll be a hard beginning... So, I've created the property using the waizard, and now I'd like to edit the code. I've replaced the DefineLAyout function oLayout.AddItem("Actions") to oList = oLayout.AddItem("Actions","A", C.siControlListBox) oList.UIItems = ["One","One","Two","Two"] but nothing really happens...SDK docs has not much sample for PPG in Python ___ This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Crytek GmbH - http://www.crytek.com - Grüneburgweg 16-18, 60322 Frankfurt - HRB77322 Amtsgericht Frankfurt a. Main- UST IdentNr.: DE20432461 - Geschaeftsfuehrer: Avni Yerli, Cevat Yerli, Faruk Yerli