Skip to main content
Participant
July 25, 2022
Question

Where can I check the MAXscript API description of substance2

  • July 25, 2022
  • 3 replies
  • 479 views

For example, I want to export presets through MAXscript

This topic has been closed for replies.

3 replies

Adobe Employee
March 8, 2023

Hi @刘25385160ymo0 and @default6kbf59ahqjpz 
This API documentation page has been created to list out the available commands. We hope this helps! Let us know if you have any other feedback.

Participant
March 9, 2023

Thank you very much!
This will be very helpful indeed.

But I have another question, what is the command or property to get the width and height of the computed substance output?

Community Manager
August 9, 2022

Hi,

You can use Substance2.getPresetIdentifiers() command to get a list of preset names.  
And then you can run Substance2.exportPresetList(filepath, presetList), where filepath is the place to put the sbsprs files and presetList is a string list in maxscript of the identifiers from getPresetIdentifiers that you want to export.


Please let us know if this helps.

Thanks!

Participant
February 2, 2023

Hello.
I have a similar question as well. Because i can't find the properties list for the Substance2 to be used on maxscript.
There is nothing about it in this page:
https://substance3d.adobe.com/documentation/integrations/3ds-max-156565665.html


And some of the commands from this page does not work:
https://help.autodesk.com/view/MAXDEV/2023/ENU/?guid=GUID-3E5E2D62-BF3D-49F2-9C3C-72BBD7F90BBF
It seems its for the Substance node, but not Substance2
And the example you gave for the  Substance2.getPresetIdentifiers() is not listed inside max if use the "showproperties substance2object".
I'm trying to get the value for the output size, but the .outputsize property returns a float2 that, if changed, does nothing.

Please, where can I find a FULL LIST of the maxscript commands and properties for the Substance2 node?

Community Manager
March 3, 2023

Hi, This request is currently on our roadmap and we hope to add some documentation that provides a full list of the maxscript commands and properties for the Substance2 node. Thanks for your patience! 

Participant
July 25, 2022

Where is the MAXscript API description of substance2 chayue