Inside the custom property, there would be a PPGEvent callback for the 
parameter in question.  Code running inside the custom property would be able 
to determine that.  From outside the custom property, you'd have to query it's 
.Code property by looking it up as a Plugin or PluginItem in the Application.

>From outside the custom property, the only way you'll be able to determine if 
>a parameter drives anything in the scene is if an operator is connected to it. 
> You get a reference to the operator, then query it's input ports for driving 
>objects/parameters to see if any of them are the custom parameter you're 
>interested in validating.

In your specific example, you need a reference to the expression which drives 
the PushOp and query the expression's input ports to see if any of them are 
connected to your custom parameter.  If so, you can traverse in the other 
direction to see what object(s) the expression affects.



Matt




From: [email protected] 
[mailto:[email protected]] On Behalf Of Orlando Esponda
Sent: Wednesday, December 05, 2012 7:54 PM
To: softimage
Subject: Get parameters driven by a custom parameter (python)

Hello guys,

Let's say I have a custom property with a custom parameter. This custom 
parameter is driving something in the scene, let's say the amplitude of a Push 
Op applied to x object. Is there a way to get this "connection" via scripting 
from the custom parameter?

In the Push Op there should be an Expression that "connects" the amplitud to 
the custom parameter, but if I don't know what parameters are being driven (if 
any) by this custom parameter, is there a way to get them with scripting?


Thanks for any comment/idea,

Orlando.

--
IMPRESSUM:
PiXABLE STUDIOS GmbH & Co.KG, Sitz: Dresden, Amtsgericht: Dresden, HRA 6857,
Komplementärin: Lenhard & Barth Verwaltungsgesellschaft mbH, Sitz: Dresden,
Amtsgericht: Dresden, HRB 26501, Geschäftsführer: Frank Lenhard, Tino Barth

IMPRINT:
PiXABLE STUDIOS GmbH & Co.KG, Domicile: Dresden, Court of Registery: Dresden,
Company Registration Number: HRA 6857, General Partner: Lenhard & Barth
Verwaltungsgesellschaft mbH, Domicile: Dresden, Court of Registery: Dresden, 
Company
Registration Number: HRB 26501, Chief Executive Officers: Frank Lenhard, Tino 
Barth


--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht
der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, 
informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren 
sowie die
unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended
recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy
this e-mail. Any unauthorized copying, disclosure or distribution of the 
material in this e-mail is
strictly forbidden.

Reply via email to