Hi

I did a simple test in 2012 SAP and 2013 Sp1...



I've got a bunch of cubes (cube, cube1, ..., cube5).
They all have a custom property named "MyProperty"

If I run this in Softimage 2012 SAP, I get a [multi] : [multi] PPG

Application.InspectObj( "*.MyProperty" )

If I edit the parameters, the edits are applied to all the custom properties
eg
 
Application.SetValue("cube.MyProperty.Param,cube1.MyProperty.Param,cube2.MyProperty.Param,cube3.MyProperty.Param,cube4.MyProperty.Param,cube5.MyProperty.Param",
 [13, 13, 13, 13, 13, 13], "")

Application.SetValue("cube.MyProperty.Param1,cube1.MyProperty.Param1,cube2.MyProperty.Param1,cube3.MyProperty.Param1,cube4.MyProperty.Param1,cube5.MyProperty.Param1",
 [False, False, False, False, False, False], "")

Application.SetValue("cube.MyProperty.Param2_R,cube1.MyProperty.Param2_R,cube2.MyProperty.Param2_R,cube3.MyProperty.Param2_R,cube4.MyProperty.Param2_R,cube5.MyProperty.Param2_R",
 [0.513, 0.513, 0.513, 0.513, 0.513, 0.513], "")

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Mathieu Leclaire
Sent: July-31-12 3:41 PM
To: [email protected]
Subject: Re: inspect multiple objects as one by script

I tried that, but it lists all the various objects parameters as seperate 
parameters. I don't have a one parameter controls all type behaviour that I'm 
looking for. I'm in SI2012sap though, so maybe it's a behavior that has changed 
in 2013? Anyway, it's not the end of the world. I'll just select the various 
objects and they can themselves inspect it using the right tab selection menu. 
I was just wondering if I could automate that part, but I can't seem to make it 
work.

-Mathieu

Eric Cosky wrote:
> Coincidentally I had to do this exact thing in C++ today. I found that 
> I had to call InspectObj on one specific property (via execute script 
> api) of one of the objects that I wanted to inspect these parameters 
> for, and then set the current selection to the set of objects that had 
> the property I wanted to multi-edit for. It seemed odd, but it did what I 
> needed. SI2013sp1.
>
> -Eric Cosky
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Mathieu 
> Leclaire
> Sent: Monday, July 30, 2012 2:45 PM
> To: [email protected]
> Subject: inspect multiple objects as one by script
>
> When I select multiple objects that contains the same custom 
> parameters and I click on selection on the right tab and open the ppg 
> of one of them and change a value, that value gets changed for all 
> selected objects... I want my script to select multiple objects and 
> launch the ppg with the same logic, i.e. have one parameter that will 
> change all the values of the selection. I can't figure out how to 
> inspect that ppg in that specific way. It always opens a list of the 
> various objects parameters instead of just opening one that will affect all 
> selection.
> What do I need to do in my script to make it inspect all as one like 
> it does when I use the right tab selection menu.
>
> -Mathieu
>
>
>   


<<attachment: winmail.dat>>

Reply via email to