Hi, I’m implementing a texture editer in Omniverse Code 2022.3.1,
and found that I cannot subsitute the texture in the shader setting with a 2d array (np.ndarray) via python script.
It works by saving the array as local files, and editing the AssetPath, but it’s too slow and not intuitive :(
Is there any method to change the texture without editing the AssetPath?
Thanks for the info!
It works now :)
Actually I’ve found DynamicTextureProvider but had no idea how to use it due to insufficient instruction.
Another problem I found is that the time consumption of set_byta_array seems large while editing AssetPath takes less. My texture contains diffuse, normal and roughness of 2K or 4K.
Is there any advice to optimize the performance?
HI @AlanHuang. The dev team has some more profiling work that they would like to do there. One alternative that I can think of is to try Variant Sets to do your texture swapping.