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

A User channel can not be accessed by python api

New Here ,
Feb 21, 2022 Feb 21, 2022

Copy link to clipboard

Copied

I want to make a user channel in a stack and edit it by Python API.

Making the user channel will succeed but I can't access it.

 

How do I access the user channels.

from substance_painter import textureset
ChannelType = textureset.ChannelType
ChannelFormat = textureset.ChannelFormat
for tex_set in textureset.all_texture_sets():
    for stack in tex_set.all_stacks():
        if not stack.has_channel(ChannelType.User14):
            stack.add_channel(*channel_param)
        print(stack.all_channels())
# [Python] There is no channel 'user14' in the texture set.

 

TOPICS
Bugs & Crashes

Views

66

Likes

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
New Here ,
Mar 02, 2022 Mar 02, 2022

Copy link to clipboard

Copied

Hi, I've got the same issue !
substance_painter.textureset.ChannelType() is not able to find any the user channels above user7, but also CoatColor, CoatRoughness etc. Basically none of the "recently added" channels.

Creating a channel (for example user9) is working though. But impossible to get it.
All the old channels like BaseColor, Height etc as well as user0-7 are still working fine.

https://community.adobe.com/t5/substance-3d-painter-discussions/bug-python-api-quot-get-channel-quot...

Likes

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
Adobe Employee ,
Mar 09, 2022 Mar 09, 2022

Copy link to clipboard

Copied

LATEST

Thank you for the report, we are going to look into this issue.

Likes

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
Resources