Skip to content

Instantly share code, notes, and snippets.

import os
import sd
# Import the required classes, tools and other sd stuff.
from sd.tools import io
from sd.ui.graphgrid import *
from sd.api.sbs.sdsbscompgraph import *
from sd.api.sdgraphobjectpin import *
from sd.api.sdgraphobjectframe import *
from sd.api.sdgraphobjectcomment import *
import os
import sd
# Import the required classes, tools and other sd stuff.
from sd.tools import io
from sd.ui.graphgrid import *
from sd.api.sbs.sdsbscompgraph import *
from sd.api.sdgraphobjectpin import *
from sd.api.sdgraphobjectframe import *
from sd.api.sdgraphobjectcomment import *
@Eterea
Eterea / print_modified_values.py
Last active November 10, 2022 08:44
WIP script to get modified values in selected nodes, in Substance Designer, and then create a Comment node with all those labels / values
# python
#
# print_modified_values - v.0.2 - THIS IS A WIP
# Created by Cristobal Vila - etereaestudios.com - 2022
# To automatically add child Comment with non default values in Adobe Substance 3D Designer
''' --- DIARY -----------------------------------------------------------------------------------------------------
The purpose of this plugin is to add a child Comment for the selected node containing all NON-DEFAULT values,
this is: the one that have been modified by the user.
#python
# ------------------------------------------------------------------------------------------------
# NAME: etr_python_api_power_utils.py
# VERS: 1.5
# DATE: August 24, 2020
#
# MADE: Cristobal Vila, etereaestudios.com
# With snippets kindly shared by Shawn Frueh, shawnfrueh.com/me/ and also 'robberyman'#
# ------------------------------------------------------------------------------------------------
#python
# ---------------------------------------------------------------------------------------------------
# NAME: etr_match_posrot_smart.py
# VERS: 1.0
# DATE: August 18, 2020
#
# MADE: Cristobal Vila, etereaestudios.com
#
# USES: To move and rotate a source mesh item to match another target mesh item
#python
# ------------------------------------------------------------------------------------------------
# NAME: etr_distanceCalculatorPro.py
# VERS: 1.1.2
# DATE: August 12, 2020
#
# MADE: Cristobal Vila, etereaestudios.com
# With snippets kindly shared by Shawn Frueh, shawnfrueh.com/me/ and also 'robberyman'
#
#python
# ------------------------------------------------------------------------------------------------
# NAME: etr_super_getSelectedVerts_position.py
# VERS: 1.0
# DATE: August 11, 2020
#
# MADE: Made by Shawn Frueh, shawnfrueh.com/me/
# Shared by Cristobal Vila, etereaestudios.com
# ------------------------------------------------------------------------------------------------
#python
# ------------------------------------------------------------------------------------------------
# NAME: etr_super_edgeLength_calculator.py
# VERS: 1.0
# DATE: August 11, 2020
#
# MADE: Cristobal Vila, etereaestudios.com, with snippets kindly shared by
# Shawn Frueh, shawnfrueh.com/me/ and also 'robberyman'
# ------------------------------------------------------------------------------------------------
#python
# ------------------------------------------------------------------------------------------------
# NAME: etr_distanceCalculator.py
# VERS: 2.2.1
# DATE: August 12, 2020
#
# MADE: Cristobal Vila, etereaestudios.com
#
# USES: Script to calculate distances from selected verts/edges/polygons/items
#python
# ---------------------------------------------------------------------------------
# NAME: etr_move_nudge_xyz.py
# VERS: 1.4
# DATE: August 5, 2020
#
# MADE: Cristobal Vila, etereaestudios.com
#
# USES: To move nudge (and duplicate, optionally) fixed amounts along XYZ axis