Isotropix Forums

List dependencies

Clarisse Scripting related topics

List dependencies

Unread postby julian » Thu Sep 17, 2020 8:09 pm

Hi,

I'm trying to scrape file dependencies for only those objects that contribute to the image (or layer, or whatever I pick).

Using
Code: Select all
ix.application.copy(True)
, I can get the objects in the clipboard.

My question is, how can I get that clipboard into some form or structure that allows me to use API methods on it - like an OfObjectSet?

I don't want to paste it into the project to do this.

PS, I also tried myImage.get_dependency_objects(objects, True)
But it doesn't give me dependencies, it gives dependents.

Many thanks!
julian
 
Posts: 25
Joined: Tue Feb 05, 2019 2:51 pm

Re: List dependencies

Unread postby adomon » Thu Sep 17, 2020 9:06 pm

Hello

You can try myImage.get_referenced_objects() to get all the objects connected directly to your image. If you want to get all the references recursivelly, you should use myImage.gather_branch().
User avatar
adomon
 
Posts: 64
Joined: Fri Jul 01, 2016 10:22 pm

Re: List dependencies

Unread postby julian » Fri Sep 18, 2020 7:39 am

This is just what I wanted.

Thank you!
julian
 
Posts: 25
Joined: Tue Feb 05, 2019 2:51 pm


Return to Scripting