Skip to main content
Inspiring
August 3, 2023
Answered

set graph type with sd api

  • August 3, 2023
  • 1 reply
  • 502 views

Hi, Sorry if I'm missing something obvious, but I'm looking for a way to set the graph type on a SDSBSCompGraph.

The graph type attribute I'm trying to set is the drop-down box under a graph's Attributes:

I see a function called getGraphType() to get the graph type but no way to set it through the API. I've also tried looking through all of the properties on the graph and can't find the a property for graph type.

 

In the python editor, for example, if I have an SDSBSCompGraph object called graph and look through all of the annotation properties, I don't see anything for graph type:

>>> annotation_props = [p.getId() for p in graph.getProperties(SDPropertyCategory.Annotation)]
>>> print(annotation_props)

['outputs_computation', 'identifier', 'category', 'label', 'author', 'author_url', 'tags', 'description', 'userdata', 'icon', 'show_in_library', 'physical_size']

 

I'm using Substance Designer 13.0.1 on Mac OSX Ventura 13.4.

This topic has been closed for replies.
Correct answer Nicolas3D

It should be available in the next release, the ticket is currently in our top of backlog. 

1 reply

Nicolas3D
Community Manager
Community Manager
August 24, 2023

Hi!
Thanks for the detailled message. 
Unfortunately, the graph type is currently not exposed in the API. That's something we should add in a coming release. Sorry for the inconvenience. 

Inspiring
August 24, 2023

thanks for the response. Please let us know when this gets added in.