Oh, excellent. Thanks - I was looking to parent the window to Houdini actually. In fact, I'd like to dock it if possible. I'll dig further into this.
By the way, do you know if there is any way I can execute Python code on Houdini startup?
For example with Maya, it looks for a “userSetup.py” file in a specific PATH. If found, it executes it. Anything like that with Houdini?
Cheers!
Found 14 posts.
Search results Show results as topic list.
Houdini Learning Materials » How to show simple PySide window in Houdini Apprentice?
- fredrikaverpil
- 14 posts
- Offline
Houdini Learning Materials » How to transform null from another network?
- fredrikaverpil
- 14 posts
- Offline
Hi,
I just tried importing an FBX. When importing the FBX I get a node tree of null nodes and geometry nodes. The null nodes inherit the pivot placement from Maya, and I can predictably translate these transform nodes. Awesome.
However, the null nodes aren't updated if I update the FBX. This forces me to completely delete the FBX network and re-import the FBX.
Since I need to transform the null nodes, I need to figure out a way to do this from outside of the FBX network. How can this be achieved?
Cheers!
I just tried importing an FBX. When importing the FBX I get a node tree of null nodes and geometry nodes. The null nodes inherit the pivot placement from Maya, and I can predictably translate these transform nodes. Awesome.
However, the null nodes aren't updated if I update the FBX. This forces me to completely delete the FBX network and re-import the FBX.
Since I need to transform the null nodes, I need to figure out a way to do this from outside of the FBX network. How can this be achieved?
Cheers!
Houdini Learning Materials » How to show simple PySide window in Houdini Apprentice?
- fredrikaverpil
- 14 posts
- Offline
Hey Rob,
Thanks so much, that was it. Now it works great.
About registering the widget in a session; I'm importing a proprietary Python package which consists of many submodules and each submodule creates numerous widgets to present a user interface. What's the recommended approach in this case?
Should I register each and every widget (or window) with Houdini?
Thanks so much, that was it. Now it works great.
About registering the widget in a session; I'm importing a proprietary Python package which consists of many submodules and each submodule creates numerous widgets to present a user interface. What's the recommended approach in this case?
Should I register each and every widget (or window) with Houdini?
Houdini Learning Materials » How to translate an alembic transform node?
- fredrikaverpil
- 14 posts
- Offline
Hi again jsmack,
Yes. I tried this. That's not a desired approach as I need to be able to update the alembic file. Whenever I do so, the nodes I've created will disappear.
Therefore it would be much more desirable to somehow “grab” the transforms via a @path expression (which can't be done, it seems) outside of the alembic hierarchy.
Imagine you're telling your entire studio to use Houdini to assemble models and stage a scene from now on. How would you go about getting models into Houdini and then move them into place - including adjusting individual parts of a model (read; alembic file)?
Yes. I tried this. That's not a desired approach as I need to be able to update the alembic file. Whenever I do so, the nodes I've created will disappear.
Therefore it would be much more desirable to somehow “grab” the transforms via a @path expression (which can't be done, it seems) outside of the alembic hierarchy.
Imagine you're telling your entire studio to use Houdini to assemble models and stage a scene from now on. How would you go about getting models into Houdini and then move them into place - including adjusting individual parts of a model (read; alembic file)?
Houdini Learning Materials » How to show simple PySide window in Houdini Apprentice?
- fredrikaverpil
- 14 posts
- Offline
Thanks guys,
On my Windows 10 workstation, also equipped with Houdini Apprentice (16.0.557) I can run the code from my initial post as well as rokl's code and a window appears but then Houdini freezes up.
Do you normally not run UIs from the Python shell in Houdini?
On my Windows 10 workstation, also equipped with Houdini Apprentice (16.0.557) I can run the code from my initial post as well as rokl's code and a window appears but then Houdini freezes up.
Do you normally not run UIs from the Python shell in Houdini?
Edited by fredrikaverpil - April 3, 2017 02:38:29
Houdini Learning Materials » How to show simple PySide window in Houdini Apprentice?
- fredrikaverpil
- 14 posts
- Offline
That's strange. I think your code should totally also work. No window appears here on my end when running your code.
I wonder if something's up with me running Apprentice and/or being on macOS.
I wonder if something's up with me running Apprentice and/or being on macOS.
Edited by fredrikaverpil - April 2, 2017 04:15:08
Houdini Learning Materials » How to show simple PySide window in Houdini Apprentice?
- fredrikaverpil
- 14 posts
- Offline
Why does this not work; am I doing something wrong?
I expected a tiny little window to appear saying “Hello World”… but nothing seems to happen.
Cheers,
Fredrik
I expected a tiny little window to appear saying “Hello World”… but nothing seems to happen.
Cheers,
Fredrik
Houdini Learning Materials » How to translate an alembic transform node?
- fredrikaverpil
- 14 posts
- Offline
If I instead use the “alembic” node, I can actually see the transform nodes in the spreadsheet but I cannot grab them (via path) from e.g. a “transform” node. It's as if Houdini doesn't recognize the alembic transform nodes. But if I attempt to grab all the geometry nodes under such a transform, Houdini does this nicely.
The pivot of the chair's wheel group (alembic transform) is carefully placed so that the wheel will turn naturally. It would be very useful to just be able to pick this transform rather than the underlying geometries before rotating the wheel. If this abc is read into Maya, the wheel's transform exists and its pivot is read in properly to allow for a natural rotation of the wheel.
Does anyone know if I'm just missing a detail here, or if this is simply not possible to achieve in Houdini?
The pivot of the chair's wheel group (alembic transform) is carefully placed so that the wheel will turn naturally. It would be very useful to just be able to pick this transform rather than the underlying geometries before rotating the wheel. If this abc is read into Maya, the wheel's transform exists and its pivot is read in properly to allow for a natural rotation of the wheel.
Does anyone know if I'm just missing a detail here, or if this is simply not possible to achieve in Houdini?
Edited by fredrikaverpil - March 31, 2017 04:52:06
Houdini Learning Materials » How to translate an alembic transform node?
- fredrikaverpil
- 14 posts
- Offline
Here's a concrete example. I'm now loading the abc via the “file” SOP (with “Packed disk primitive” enabled) instead of the “alembic” SOP. I can unpack and grab geometry but not transforms. The transforms are simply not visible. Any way I can get around this and grab the transforms?
Edited by fredrikaverpil - March 31, 2017 03:48:19
Houdini Learning Materials » How to translate an alembic transform node?
- fredrikaverpil
- 14 posts
- Offline
jsmack
That's not what Alembic is for.
Hi jsmack,
How would you then import e.g. props (from a model database where the geo is stored as alembic) into a set in Houdini and move the props around and still be able to update the geometry in case it gets revised?
I'm not arguing with you in any way, just trying to figure this out as I really wish to see us use Houdini for particular work.
We have a model database which we use heavily to produce archviz stills and product visualization. I'm exploring the possibility to use Houdini for this type of work. Our current Maya workflow entails loading alembic files which I can very easily modify after they have been read into the scene. The model can then be revised and updated with e.g. translations on transforms intact. This offers a straight forward and easy to work with workflow.
jsmack
That said, there's nothing stopping you from inserting a null object between Alembic transform nodes.
Ah yes. But then that would make it difficult to update the alembic model with a revised version, I'm guessing. I'm required to perform such modifications outside of the alembic hierarchy because of this.
I'm grateful for any other ideas or tips on how to achieve a similar approach in Houdini.
Cheers,
Fredrik
Edited by fredrikaverpil - March 31, 2017 03:49:30
Houdini Learning Materials » Can I import the actual polys/xforms from an alembic into my Houdini scene file?
- fredrikaverpil
- 14 posts
- Offline
Hi Mariusz,
I see, I was merely interested in knowing if this was possible. It's a non-issue, really.
Yes, certainly. And after having spent some more time with Houdini (coming from Maya) I realize I asked the wrong question anyways… which leads me to think I should probably crate another thread, which I just did: https://www.sidefx.com/forum/topic/49035/?page=1#post-221423 [sidefx.com]
I see, I was merely interested in knowing if this was possible. It's a non-issue, really.
blackpixel
Might I ask why you want to do this ?
Yes, certainly. And after having spent some more time with Houdini (coming from Maya) I realize I asked the wrong question anyways… which leads me to think I should probably crate another thread, which I just did: https://www.sidefx.com/forum/topic/49035/?page=1#post-221423 [sidefx.com]
Houdini Learning Materials » How to translate an alembic transform node?
- fredrikaverpil
- 14 posts
- Offline
How would you deal with alembic assets which consists of transforms and geometries which you need to be able to rig for scene assembly?
For example, let's say you need to bring in a car into a scene, position it and open the driver door (which is closed in the original alembic). How would you go about doing this?
All parts of the car's door resides in a specific transform within the alembic. If I could access this transform and place its pivot properly (unless already placed properly) I could then rotate it to make it open. How can I access this transform from e.g. an “edit” node or “transform” node?
I've checked the “Geometry spreadsheet” when having the alembic node selected and noted down the path to the transform in question. I've then tried to access it by defining the node's group asbut this doesn't work.
How can this problem be solved?
Breaking the car up into pieces wouldn't work for me, unfortunately, as this is just one asset out of hundreds which require fine tuning when “imported” into Houdini.
Also, ideally I'd like to be able to update the car alembic (maintaining its internal hierarchy) so I don't want to add nodes into its hierarchy.
Cheers for any suggestions!
For example, let's say you need to bring in a car into a scene, position it and open the driver door (which is closed in the original alembic). How would you go about doing this?
All parts of the car's door resides in a specific transform within the alembic. If I could access this transform and place its pivot properly (unless already placed properly) I could then rotate it to make it open. How can I access this transform from e.g. an “edit” node or “transform” node?
I've checked the “Geometry spreadsheet” when having the alembic node selected and noted down the path to the transform in question. I've then tried to access it by defining the node's group as
@path=="/full/path/to/leftDoor"
@path=="*leftDoor"
How can this problem be solved?
Breaking the car up into pieces wouldn't work for me, unfortunately, as this is just one asset out of hundreds which require fine tuning when “imported” into Houdini.
Also, ideally I'd like to be able to update the car alembic (maintaining its internal hierarchy) so I don't want to add nodes into its hierarchy.
Cheers for any suggestions!
Houdini Learning Materials » Can I import the actual polys/xforms from an alembic into my Houdini scene file?
- fredrikaverpil
- 14 posts
- Offline
When I File -> Import -> Geometry and choose an .abc there's a “link” created between my scene file and the .abc. This means that I cannot delete the .abc file.
How can I read the .abc (with hierarchy maintained) into the scene file and then be able to delete the .abc?
How can I read the .abc (with hierarchy maintained) into the scene file and then be able to delete the .abc?
Technical Discussion » Snapping the pivot point
- fredrikaverpil
- 14 posts
- Offline
gKelly
I can't seem to snap the pivot point in Houdini. Say i wanted to snap i to a point or the bottom of a cube how would i go about it? I do this all the time in Maya.
I'm a long time Maya user and I'm looking to just do this in H16; snap the pivot of a poly cube to its bottom. Then snap the polycube onto the grid center.
What's the suggested approach in 2017 for this?
-
- Quick Links