• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Get Selected Resource

New Here ,
Nov 07, 2024 Nov 07, 2024

Copy link to clipboard

Copied

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

TOPICS
Scripting

Views

27

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources