PPG represents the property page. I think you want PPG.Inspected. From: [email protected] [mailto:[email protected]] On Behalf Of Sam Cuttriss Sent: August-20-12 3:29 PM To: softimage Subject:
ppg logic:
ive got an odd problem with ppg logic.
im dynamically building a ppg that includes buttons to load presets onto itself.
for basic absolute references it works great.
but i need the reference to the PPG to be relative, "PPG" ought to point to
itself?
#triple quoted function
oLoadPset = '''def [Button]_OnClicked():
try:
Application.LoadPreset(r[PresetObj],[InputObj] )
Application.LogMessage("[Button]"+" pressed")
Application.SetValue(PPG.Name, "Proportions", "")
except:
Application.LogMessage("[Button]"+" failed")
'''
# replacing all scene references with resolved names etc.
oLogic = oLogic+oLoadPset.replace('[Button]',oButtonName)
for some reason i cant refer to PPG directly as the [InputObj] for my
LoadPreset call.
i guess there is some subtlety to the PPG context im misunderstanding.
_sam
<<attachment: winmail.dat>>

