Skip to main content
Participant
November 8, 2024
質問

Get Selected Resource

  • November 8, 2024
  • 返信数 0.
  • 81 ビュー

Helllo,

 

I'm new to Substance Painter scripting and I'm working on a plugin to do this auto uplater job for specified texture resources.

https://community.adobe.com/t5/substance-3d-painter-ideas/auto-resources-updater/idi-p/14465522

After some quick looks into the Python and JAVASCRIPT API and some attempts, now I can enter the name of a texture and update the shader parameters referencing it in scene. But a more intuitive approach would be able to select the texture in Assets tab and update it directly without inputting names or adjusting checkboxes. So...

Is there a way to get the currently selected resource into script in Python or JAVASCRIPT (or C++ code or any other language?

Any insights would be appreciated.

 

Shabby Wang

このトピックへの返信は締め切られました。