Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - david376

Pages: [1] 2
I can't find any method to delete or remove a graph in package class.

Is there any way to delete graph via python api?

not a texture,actually a uniform color node with value set to 0.214

When the display colorspace are all set to sRGB, the same uniform color node looks different in 2d view and 3d view.

While looks the same ,when the 2d view's colorspace is set to Raw.

But as I'm using the value 0.214(18%grey) ,it should looks like mid grey.

So I felt that the 2d view's colorspace must set to sRGB. But the result in 3d view looks wrong whatever I set.

Is there any way I can change the colorspace of the node I'm using in 3d view?

you can check here , really good to use

This plugin can create new nodes by custom shortcuts. And reconnect nodes automatically.

Some people want a plugin in SD to work just closer to UE4 or Nuke ,like me. ;)

When the python api updated ,I found I can make a lot.

Then this plugin comes out.

Hope it will help.

Feel free to share ,if you like it.

and email me if you find bug ,or have some requests.


In this page we discussed some scripting tech.

As the getCurrentGraphSelection() method returns only nodes. We need some new method to get the connections between nodes.

Thank you

Is there any way to get current mouse position via python api ?

My purpose is to create New Node at mouse position,so I need to get the relative position of the mouse to the current node graph.

Could I get the information via pyside ?

I tried to find out the widget class of graph.But I can't figure out which is which.

[MSG][2079]<PySide2.QtWidgets.QLabel object at 0x000002A25D6DE548>
[MSG][2084]<PySide2.QtWidgets.QLabel object at 0x000002A25D6DE588>
[MSG][2089]<PySide2.QtWidgets.QLabel object at 0x000002A25D6DE5C8>
[MSG][2094]<PySide2.QtWidgets.QToolBar object at 0x000002A25D6DE608>

this seems the new method added this version .

in documentation ,it mentioned that this method needs three vars.

newProperty(sdPropertyId, sdPropertyType, sdPropertyCategory)

but I can't find out what to feed in sdPropertyType. Anybody help?

 I have already know how to create hundreds nodes by code and studied the distance transform  in image process area.

But I still can't recreate something similar to the 'distance node'.

It needs to loop multi times over each pixel.

Is there anywhere to achieve my goal substance designer in this version?

My final target is to create a node similar to 'distance node' ,but it will expand by the luminance of a pixel . It means the bright pixel will expand further ,vise versa.

Bradford Smith had made a node called erode/expand which meets my need to some extent . But I can't find out how he did this .    Could anybody explain a little for me , thank you .

I can't find any method about 'duplication' in graph class or node class.

Is there anyway ?

I can't find information in the documentation. Could anyone help me

I can't find infomation about pixel processor in api documentation.  Could anyone help me

I'm trying to get selected nodes from tutorial.If I use the code below ,the getLocationContext() will return None.

import sd
context = sd.getContext()
sdApplication = context.getSDApplication()
pkgMgr = sdApplication.getPackageMgr()

sdLocationContext = sdApplication.getLocationContext()
print (sdLocationContext)

if I add sdApplication.setLocationContextUID(3) , it will work.

I can't find info about the contextUID. Which UID should I use ? What's the logic?

BTW, I saw some people using aContext beside sd.getContext.What's the aContext?

I watched a tutorial  ,and achieved such effect in substance designer(iray). but can’t achieve this in redshift, or in vray.

I tried to use the scratches_generator_normal node to produce the normal map.It worked in iray. But not good at all in other renderers.Even a direct transfered normal map is much better.

So I'm wondering does  the scratches_generator_normal node really work? Or does it just work in the iray renderer?

any suggestions?

some idea comes from this page,he did a good job but not using the normal map exported from scratches_generator_normal node .

as corona and Redshift output template ,the glossiness output is using glossiness² map.

I don't know much about corona ,but this will lead into a wrong result in Redshift.

In my test, Redshift need just a normal glossiness map ,not a glossiness² map at all. maybe in elder version of Rs , they need glossiness², but not nowadays version.

 I found that the render out result changes a lot from SP ,when I was using exported glossiness map from metal/rough workflow.

Then I exported an original roughness map ,and the render result turns out perfect well.

I guess there are some problems between the converted glossiness map  and original roughness map!

then I reversed the glossiness map , and it looks very different from the original roughness map . I wonder this maybe a very confusing problem.

Substance DesignerSubstance Designer - Feature Requests - shortcuts like nuke
 on: December 07, 2016, 10:01:25 am 
I am a nuke user and some shortcuts really helps me a lot !

1)  'D'  can stop a node temporarily, press 'D' again to reactivate the node.This will help to check one node's effect directly.

2)  use numbers like 1 or 2 or 4 to set the viwer of the nodes, press the number again can quickly view the effect of the node setted. For instance, I  can switch 1 and  2  quickly to view two different results very quickly ,this will helps a lot.

3)  Just put a node on to the line between two nodes, this will connect the new node to the network automaticlly.

4)  the lines between nodes become weak and transparency,when we zoom out.  This will help to clean up huge graphs.

5) this is not a nuke function, but I really want the frame can be collapsed. Which will make graphs much cleaner!

Pages: [1] 2