Skip to main content
Inspiring
May 16, 2024
Answered

how to collect resources?

  • May 16, 2024
  • 1 reply
  • 498 views

I have a sbs that uses lots  of functions and substance graphs   from many other  sbs files that themselves  having lots of crosslinks and heavy big  bitmaps to load forever .

How can I collect all the functions and graphs in my current sbs file?   Only ones my current sbs  is actually using ?  Not a huge archive of  all sbs files  but  only functions  and graphs that are actually in use?

This topic has been closed for replies.
Correct answer Luca Giarrizzo

Hello,

 

Aggregating a graph's dependencies in a single package is a manual process involving loading these dependencies, copying them in the host package and recreating the nodes referencing them (or remapping them to another resource).

 

In the Explorer, right-click a package and select the 'Open dependencies' action to load all dependencies that are not included in Designer's default library. Then, any package resource referenced by currently loaded data can be identified by its 'i' badge with that mention in its tooltip. This can help you quickly identify which graphs and bitmaps are currently being used somewhere.

 

That said, this aggregation process can be done using the Python API. I cannot think of anything that would be missing in the API to accomplish this.

 

Best regards.

1 reply

Luca Giarrizzo
Community Manager
Luca GiarrizzoCommunity ManagerCorrect answer
Community Manager
May 24, 2024

Hello,

 

Aggregating a graph's dependencies in a single package is a manual process involving loading these dependencies, copying them in the host package and recreating the nodes referencing them (or remapping them to another resource).

 

In the Explorer, right-click a package and select the 'Open dependencies' action to load all dependencies that are not included in Designer's default library. Then, any package resource referenced by currently loaded data can be identified by its 'i' badge with that mention in its tooltip. This can help you quickly identify which graphs and bitmaps are currently being used somewhere.

 

That said, this aggregation process can be done using the Python API. I cannot think of anything that would be missing in the API to accomplish this.

 

Best regards.

Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe
kirkr5689Author
Inspiring
May 24, 2024

Doing this manually is a hell of a process . I'd love  something  as simple as Blender collecting dependencies  if you check in "pack"  the checkbox.   It deletes  all unnecessary and unused things automatically.    Contrary to when I do 7z archive in Designer  that collects a half of my hard drive .      

 

Let it be a feature request please.     Or if anyone had a sucsees  with chatGPT writing  such a python script please share.