PDA

View Full Version : Another scripting question (Custom PPG?)


solagratia77
02-15-2007, 03:16 AM
Hello all.....

What I am trying to do is simple,

I want to display a custom PPG
containing just a parameter I choose

In other words, Let say in a PPG
I just want to display the Maximum AA sample
parameter

to do achieve this
here is what I did
set myPPGList = CreateObject("XSI.Collection")
myPPGList.Add "Views.ViewB.RenderRegion.mentalray.SamplesMax"
InspectObj myPPGList

But when I run this,
I get all the parameters under ViewB.RenderRegion.mentalray
basically a render-region option PPG

Is it possible to display just the chosen
parameter?

Since I have spent so much time figure this out,
I would very very much appreciate any help
on this matter.

Thank you in advance
-J

Sbowling
02-15-2007, 05:50 AM
I don't think what you are trying to do will work. All it's going to do is open the object properties.

I think what you need to look into is creating a custom parameter set and linking it to the parameter, but I'm not sure how you would do that. It doesn't seem to work the same as linking it to object properties, such as a light's intensity or color.

misterdi
02-15-2007, 06:43 AM
I have reply on XSIbase, but basically what you need is create a custom property and add proxy parameter to it.

Look for "AddProxyParam" command in the SDK.

Regards,

solagratia77
02-15-2007, 08:21 AM
Thanks Sbowling & misterdi !

I was just trying to do it the hard way.

I guess it would be so much simpler and faster to
create a Custom Parameter Set
and save a preset and recall it when needed.

Thanks for help !

CGTalk Moderation
02-15-2007, 08:21 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.