Hi all,
I'm having trouble referring to an embedded asset (inside of an hda) in a topnet. The reference works fine in a file node so I know that's not the issue. Is it not possible to use opdef references inside of PDG, or is there a specific syntax?
Thank you!
Ryan
Found 36 posts.
Search results Show results as topic list.
PDG/TOPs » Opdef in PDG
- canonball900
- 36 posts
- Offline
PDG/TOPs » Set node parameters from PDG
- canonball900
- 36 posts
- Offline
PDG/TOPs » Set node parameters from PDG
- canonball900
- 36 posts
- Offline
Hi all,
Is it possible to set node parameters outside of PDG without clicking on workitems first? I tried using a Python Script node but it seems that the cook still requires clicking on a workitem. Basically I'm trying to reload a file COP at the end of a PDG process so that the image updates automatically in my viewport.
Thanks,
Ryan
Is it possible to set node parameters outside of PDG without clicking on workitems first? I tried using a Python Script node but it seems that the cook still requires clicking on a workitem. Basically I'm trying to reload a file COP at the end of a PDG process so that the image updates automatically in my viewport.
Thanks,
Ryan
Technical Discussion » Deform Mesh to Face
- canonball900
- 36 posts
- Offline
Technical Discussion » Deform Mesh to Face
- canonball900
- 36 posts
- Offline
That is very cool and works really well! However it still has the same issue with not being able to control the pattern orientation. I think this is due to UV unitize, or the intrinsic UVs as you're using, mapping based on point number. I was trying some sort of box mapping to keep the polygon orientations in the UV map however this is still proving difficult to do and to map to the full UV space... any input on this issue would be much appreciated
Technical Discussion » Deform Mesh to Face
- canonball900
- 36 posts
- Offline
Sorry for the confusion! Here's an example file. I actually was able to get the deformation working using xyzdist and primuv, however I'm now having an issue where the orientation of the pattern is inconsistent due to inconsistent vertex ordering and thus inconsistent parametric UVs across the polygons. Let me know if you have any idea how to solve that... thanks!
Technical Discussion » Deform Mesh to Face
- canonball900
- 36 posts
- Offline
Hi everyone, I wanted to get some input on the best way to deform a mesh to a face. In the provided image, I want to deform the complex geometry to the face that can be seen as an outline around the other geo. Would ideally like a solution using mainly VEX if possible. Thanks in advance!
Houdini Engine for Maya » Multiparms
- canonball900
- 36 posts
- Offline
When I put folders inside the multiparm this seems to crash Maya... is this a bug or also not supported?
Houdini Engine for Maya » Multiparms
- canonball900
- 36 posts
- Offline
Houdini Engine for Maya » Multiparms
- canonball900
- 36 posts
- Offline
Hi all,
Do multiparms within multiparms work in Houdini Engine for Maya?
I've attached a picture of what the maya interface is showing when I try to do this (clicking the plus or minus buttons do nothing), and what it's supposed to look like in Houdini.
Ryan
Do multiparms within multiparms work in Houdini Engine for Maya?
I've attached a picture of what the maya interface is showing when I try to do this (clicking the plus or minus buttons do nothing), and what it's supposed to look like in Houdini.
Ryan
Technical Discussion » Multiparm within multiparm expression
- canonball900
- 36 posts
- Offline
Thank you so much Sean that's exactly what I needed!
Edited by canonball900 - 2022年9月22日 09:56:50
Technical Discussion » Multiparm within multiparm expression
- canonball900
- 36 posts
- Offline
Hi all,
I'm trying to link up a multiparm within a multiparm, here is my expression:
Getting that first number using the iteration detail attribute of a for loop is fairly standard... but the issue comes with the second number the "_1", since it is a multiparm within a multiparm. Is there anyway to access this number, basically the number of the parm in the multiparm list, in hscript?
I've tried using Python but I think because the node is in a for loop it's doing some strange stuff...
Hope this makes sense, any suggestions appreciated
Ryan
I'm trying to link up a multiparm within a multiparm, here is my expression:
`"../"+chs(strcat(strcat("../door_sec", detail("../iter","iteration", 0)+1), "_1"))`
Getting that first number using the iteration detail attribute of a for loop is fairly standard... but the issue comes with the second number the "_1", since it is a multiparm within a multiparm. Is there anyway to access this number, basically the number of the parm in the multiparm list, in hscript?
I've tried using Python but I think because the node is in a for loop it's doing some strange stuff...
Hope this makes sense, any suggestions appreciated
Ryan
PDG/TOPs » PyTorch + PDG + Houdini
- canonball900
- 36 posts
- Offline
Houdini Machine Learning Discord link! Feel free to join! https://discord.gg/2X7RtX7 [discord.gg]
PDG/TOPs » PyTorch + PDG + Houdini
- canonball900
- 36 posts
- Offline
Hey Francisco, welcome!
Glad you figured that out! I've been working with ML in Houdini for a few weeks now and Edmond and I have been discussing it for the last couple weeks. It's all pretty new. What do you guys think about getting a discord or a slack channel going?
Glad you figured that out! I've been working with ML in Houdini for a few weeks now and Edmond and I have been discussing it for the last couple weeks. It's all pretty new. What do you guys think about getting a discord or a slack channel going?
Technical Discussion » houdini, python3 and matplotlib
- canonball900
- 36 posts
- Offline
Here's an implementation of ToyPlot that I tried out and worked for me:
def img_convert(tensor):
image = tensor.cpu().clone().detach().numpy()
image = image.transpose(1, 2, 0)
image = image * np.array((0.5, 0.5, 0.5)) + np.array((0.5, 0.5, 0.5))
image = image.clip(0, 1)
return image
img = Image.open('C:/Users/ryan/Documents/Current_Projects/Houdini_Projects/render/ML_PDG_v006_color.png')
img = transform(img)
img_show = img_convert(img)
canvas, mark = toyplot.image(img_show, width=300)
toyplot.browser.show(canvas)
def img_convert(tensor):
image = tensor.cpu().clone().detach().numpy()
image = image.transpose(1, 2, 0)
image = image * np.array((0.5, 0.5, 0.5)) + np.array((0.5, 0.5, 0.5))
image = image.clip(0, 1)
return image
img = Image.open('C:/Users/ryan/Documents/Current_Projects/Houdini_Projects/render/ML_PDG_v006_color.png')
img = transform(img)
img_show = img_convert(img)
canvas, mark = toyplot.image(img_show, width=300)
toyplot.browser.show(canvas)
PDG/TOPs » PyTorch + PDG + Houdini
- canonball900
- 36 posts
- Offline
Yeah the Python 3 version is too unstable to use atm.
I discovered you can actually run Python 3 in the Python 2.7 version of Houdini in PDG:
In the erosion demo they actually do have 2 PDG python script nodes that seem to be running the machine learning algorithm.
Sent you a message if you'd like to speak further!
I discovered you can actually run Python 3 in the Python 2.7 version of Houdini in PDG:
In the erosion demo they actually do have 2 PDG python script nodes that seem to be running the machine learning algorithm.
Sent you a message if you'd like to speak further!
Edited by canonball900 - 2020年5月25日 00:26:59
Technical Discussion » Import Hou in External Python Process
- canonball900
- 36 posts
- Offline
Hey everyone,
I'm getting this error when I'm trying to import hou in an external Python process. I've tried setting the windows path variables to no avail. There are a few other forum posts on this but no real solutions. Any ideas?
Traceback (most recent call last):
File “C:/Users/ryan/AppData/Local/Temp/houdini_temp/ML_PDG_v006/pdgtemp/26912/pythonscript2_3.py”, line 9, in <module>
import hou
File “C:\Users\ryan\AppData\Local\Programs\Python\Python37\lib\hou.py”, line 28, in <module>
import _hou
ImportError: DLL load failed: The specified procedure could not be found.
I'm getting this error when I'm trying to import hou in an external Python process. I've tried setting the windows path variables to no avail. There are a few other forum posts on this but no real solutions. Any ideas?
Traceback (most recent call last):
File “C:/Users/ryan/AppData/Local/Temp/houdini_temp/ML_PDG_v006/pdgtemp/26912/pythonscript2_3.py”, line 9, in <module>
import hou
File “C:\Users\ryan\AppData\Local\Programs\Python\Python37\lib\hou.py”, line 28, in <module>
import _hou
ImportError: DLL load failed: The specified procedure could not be found.
Technical Discussion » houdini, python3 and matplotlib
- canonball900
- 36 posts
- Offline
I ran into the same issue. Try saving out the image instead with matplotlib.pyplot.savefig()
FYI, look up the proper way to do this with matplotlib.pyplot.close() so that you're not saving a new image on top of the old image as you can get overlayed graphs and odd behavior.
FYI, look up the proper way to do this with matplotlib.pyplot.close() so that you're not saving a new image on top of the old image as you can get overlayed graphs and odd behavior.
Technical Discussion » Houdini and PyTorch
- canonball900
- 36 posts
- Offline
For Windows:
Copy the folders/files from this folder: C:\Users\user\AppData\Local\Programs\Python\Python37\Lib\site-packages
To this folder: C:\Users\user\Documents\houdini18.0\scripts\python
Copy the folders/files from this folder: C:\Users\user\AppData\Local\Programs\Python\Python37\Lib\site-packages
To this folder: C:\Users\user\Documents\houdini18.0\scripts\python
PDG/TOPs » PyTorch + PDG + Houdini
- canonball900
- 36 posts
- Offline
Hi Everyone!
I'm working on implementing PyTorch inside of Houdini much like this demo:
https://www.sidefx.com/tutorials/machine-learning-data-preparation/ [www.sidefx.com]
It seems that the demo is using PyTorch directly inside of PDG. Has anyone else tried this successfully? PyTorch is only supported on Python 3, so I have to use the Python 3 build of Houdini which so far has been too unstable to work with effectively. Apart from constant crashes, I've run into multiple more specific issues. For one, my PyTorch training script freezes when run in a PDG python script node but runs fine from the Python source editor or python sop node. I figured a work around could be to run the code in a python sop packaged in an hda, and run this through an hda processor, but the Python 3 version of Houdini crashes when trying to create an HDA…
If anyone has had any luck doing this I would love to talk!
Thanks,
Ryan
I'm working on implementing PyTorch inside of Houdini much like this demo:
https://www.sidefx.com/tutorials/machine-learning-data-preparation/ [www.sidefx.com]
It seems that the demo is using PyTorch directly inside of PDG. Has anyone else tried this successfully? PyTorch is only supported on Python 3, so I have to use the Python 3 build of Houdini which so far has been too unstable to work with effectively. Apart from constant crashes, I've run into multiple more specific issues. For one, my PyTorch training script freezes when run in a PDG python script node but runs fine from the Python source editor or python sop node. I figured a work around could be to run the code in a python sop packaged in an hda, and run this through an hda processor, but the Python 3 version of Houdini crashes when trying to create an HDA…
If anyone has had any luck doing this I would love to talk!
Thanks,
Ryan
-
- Quick Links