Thanks again J
I will look into this documentation.
Found 34 posts.
Search results Show results as topic list.
Technical Discussion » Python hou.viewportColorScheme
- maxbel
- 36 posts
- Offline
Technical Discussion » Python hou.viewportColorScheme
- maxbel
- 36 posts
- Offline
That's awesome!
Is this anywhere to be found in the hou module help? I found myself circling over and over and I didn't see anything regarding toolutils. Would you mind providing a bit more insight as to how you found this please?
Thanks again for your help J.
Max
Is this anywhere to be found in the hou module help? I found myself circling over and over and I didn't see anything regarding toolutils. Would you mind providing a bit more insight as to how you found this please?
Thanks again for your help J.
Max
Technical Discussion » Python hou.viewportColorScheme
- maxbel
- 36 posts
- Offline
Hi,
I'm having a hard time trying to change the background color scheme via the viewportColorScheme module. For one, the class isn't mentioned in the help.
A little help would be appreciated
Thanks!
Max
I'm having a hard time trying to change the background color scheme via the viewportColorScheme module. For one, the class isn't mentioned in the help.
A little help would be appreciated
Thanks!
Max
Technical Discussion » Python node connection for each loop
- maxbel
- 36 posts
- Offline
Hi J,
Thanks again for your explanations. It does make a lot more sense.
I understand that in my for each loop, my ‘i’ was already getting assigned the objects of my tuple node_outputs.
Hence all I needed was something like print i.name()
Maybe I don't have the right terminology but it does make more sense
Thanks again!
Max
Thanks again for your explanations. It does make a lot more sense.
I understand that in my for each loop, my ‘i’ was already getting assigned the objects of my tuple node_outputs.
Hence all I needed was something like print i.name()
Maybe I don't have the right terminology but it does make more sense
Thanks again!
Max
Technical Discussion » Python node connection for each loop
- maxbel
- 36 posts
- Offline
Hi J and thanks for your very descriptive response
I'm obviously still very new to python so there are some concepts that I don't fully grasp.
For example, when I created the object node_outputs = node.outputs() I assumed that this was returning me a list I could loop over the indices. From what I understood from your answer is that my node_outputs only contains hou.ObjNodes that don't have indices. Hence tuples don't have indices?
Thanks again for your explanations
Max
I'm obviously still very new to python so there are some concepts that I don't fully grasp.
For example, when I created the object node_outputs = node.outputs() I assumed that this was returning me a list I could loop over the indices. From what I understood from your answer is that my node_outputs only contains hou.ObjNodes that don't have indices. Hence tuples don't have indices?
Thanks again for your explanations
Max
Technical Discussion » Python node connection for each loop
- maxbel
- 36 posts
- Offline
Hi,
I have python script at the obj level connected to two other geo nodes.
I want my script to print out the names of the two geo nodes.
This is my script :
node = hou.pwd()
node_outputs = node.outputs()
for i in node_outputs:
print node_outputs(i).name()
I get this error :
Python error: Traceback (most recent call last):
File “”, line 5, in
TypeError: tuple indices must be integers, not ObjNode
What am I missing here?
If I write :
print node_outputs(0).name()
This works correctly though. So what's wrong with my loop?
Thanks!
PS I had to replace the brackets where the indices are to post this
I have python script at the obj level connected to two other geo nodes.
I want my script to print out the names of the two geo nodes.
This is my script :
node = hou.pwd()
node_outputs = node.outputs()
for i in node_outputs:
print node_outputs(i).name()
I get this error :
Python error: Traceback (most recent call last):
File “”, line 5, in
TypeError: tuple indices must be integers, not ObjNode
What am I missing here?
If I write :
print node_outputs(0).name()
This works correctly though. So what's wrong with my loop?
Thanks!
PS I had to replace the brackets where the indices are to post this
Edited by maxbel - 2019年8月27日 20:29:41
Technical Discussion » Creating node using Python and shortcuts for newbies
- maxbel
- 36 posts
- Offline
Technical Discussion » Creating node using Python and shortcuts for newbies
- maxbel
- 36 posts
- Offline
Hi,
I'm relatively new to the world of Python and would obviously like to start implementing slowly in my practice. I've created a small script that allows me to create an object_merge node from the selected node in my network.
Please feel free to correct my coding or suggest easier way of doing thigs. Very new at this whole Python thing
Here's my code :
#selectedNodes creates an array/list of the nodes that were selected.
nodes = hou.selectedNodes()
#Me node of interest is the first one in this case, hence nodes
#print nodes
name = nodes.name()
#We need to get the full path of where to create the new nodes
parent = nodes.parent()
path = parent.path()
#print parent
#print path
#We need to create the object merge node
objectMerge = parent.createNode(“object_merge”)
parm = objectMerge.parm(“objpath1”)
parm.set(nodes.path())
objectMerge.setName(“merge_in_” + name)
#Get mouse position and print
net_editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor)
#print net_editor.cursorPosition()
#print net_editor
objectMerge.setPosition(net_editor.cursorPosition())
I'm running into an issue where I can't use this more than once in my network since two nodes can't have the same name. So how do we solve this?
Thanks!
I'm relatively new to the world of Python and would obviously like to start implementing slowly in my practice. I've created a small script that allows me to create an object_merge node from the selected node in my network.
Please feel free to correct my coding or suggest easier way of doing thigs. Very new at this whole Python thing
Here's my code :
#selectedNodes creates an array/list of the nodes that were selected.
nodes = hou.selectedNodes()
#Me node of interest is the first one in this case, hence nodes
#print nodes
name = nodes.name()
#We need to get the full path of where to create the new nodes
parent = nodes.parent()
path = parent.path()
#print parent
#print path
#We need to create the object merge node
objectMerge = parent.createNode(“object_merge”)
parm = objectMerge.parm(“objpath1”)
parm.set(nodes.path())
objectMerge.setName(“merge_in_” + name)
#Get mouse position and print
net_editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor)
#print net_editor.cursorPosition()
#print net_editor
objectMerge.setPosition(net_editor.cursorPosition())
I'm running into an issue where I can't use this more than once in my network since two nodes can't have the same name. So how do we solve this?
Thanks!
Houdini Indie and Apprentice » Setting parameters using HSCRIPT in textport
- maxbel
- 36 posts
- Offline
Houdini Indie and Apprentice » Setting parameters using HSCRIPT in textport
- maxbel
- 36 posts
- Offline
Hi,
I would like to change parameter settings using the textport.
For example, how could I change the /obj/geo1/box1/sizex to specific value using HSCRIPT?
Thanks!
I would like to change parameter settings using the textport.
For example, how could I change the /obj/geo1/box1/sizex to specific value using HSCRIPT?
Thanks!
Houdini Indie and Apprentice » Static object interacting with smoke solver
- maxbel
- 36 posts
- Offline
Hi,
I've been trying to have an animated fracture static object interact with a smoke simulation and have been experiencing some issues. Here are the steps :
1- create a rbd packed object simulation (in the dop network
2- cache the packed object simulation
3- import the packed objects
4- unpack the packed object into ANOTHER dop and have it interact with the smoke.
Please take a look at the dopnet inside the smoke_sim geo. I'm pretty sure this is a collision issue going on here.
Is there a more efficient way to do this kind of work? Any help would be greatly appreciated!
Thanks,
Maxime
I've been trying to have an animated fracture static object interact with a smoke simulation and have been experiencing some issues. Here are the steps :
1- create a rbd packed object simulation (in the dop network
2- cache the packed object simulation
3- import the packed objects
4- unpack the packed object into ANOTHER dop and have it interact with the smoke.
Please take a look at the dopnet inside the smoke_sim geo. I'm pretty sure this is a collision issue going on here.
Is there a more efficient way to do this kind of work? Any help would be greatly appreciated!
Thanks,
Maxime
Technical Discussion » Importing OBJs issue
- maxbel
- 36 posts
- Offline
Hi,
I'm having a really hard time trying to import an OBJ. Attached is the main menu error I get.
Does anyone know how to solve this?
I'm having a really hard time trying to import an OBJ. Attached is the main menu error I get.
Does anyone know how to solve this?
Technical Discussion » Graphic card suggestions for H14
- maxbel
- 36 posts
- Offline
Hi,
It seems that my ATI Radeon 7850 has a lot of issues with H14. After having reported many of my crash logs, I was told that I need to change my graphics card.
That being said, what are your suggestions on video cards? I'm still a student so I won't spend over 350$.
Let me know!
Thanks!
Max
It seems that my ATI Radeon 7850 has a lot of issues with H14. After having reported many of my crash logs, I was told that I need to change my graphics card.
That being said, what are your suggestions on video cards? I'm still a student so I won't spend over 350$.
Let me know!
Thanks!
Max
Houdini Indie and Apprentice » Particle spawn on collision
- maxbel
- 36 posts
- Offline
Hi,
I'm having some trouble trying to spawn particles on collision.
Here's what I did :
-I'm animating an object on which I`ve scattered points (see geo_points).
-I'm animating a collider that I've imported in my dop_particles
Now here's the issue : I only want particles to be emitted when my collider comes into contact with my POINTS!
Any idea on how I can do this?
Thanks!
Max
I'm having some trouble trying to spawn particles on collision.
Here's what I did :
-I'm animating an object on which I`ve scattered points (see geo_points).
-I'm animating a collider that I've imported in my dop_particles
Now here's the issue : I only want particles to be emitted when my collider comes into contact with my POINTS!
Any idea on how I can do this?
Thanks!
Max
Houdini Indie and Apprentice » rotating fluid container
- maxbel
- 36 posts
- Offline
Yes I did think of that. But let's say I want my smoke to interact with objects in my scene, maybe I don't want to rotate everything, just the fluid container.
Houdini Indie and Apprentice » rotating fluid container
- maxbel
- 36 posts
- Offline
Hi everyone,
I'm trying to rotate my fluid container to optimize my simulation but haven't been able to even though I've found a previous post on it :
https://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=118442 [sidefx.com]
I've also included my file.
Thanks!
Max
I'm trying to rotate my fluid container to optimize my simulation but haven't been able to even though I've found a previous post on it :
https://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=118442 [sidefx.com]
I've also included my file.
Thanks!
Max
Houdini Indie and Apprentice » rotating fluid container
- maxbel
- 36 posts
- Offline
Hi everyone,
I'm trying to rotate my fluid container to optimize my simulation but haven't been able to even though I've found a previous post on it :
https://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=118442 [sidefx.com]
I'm trying to rotate my fluid container to optimize my simulation but haven't been able to even though I've found a previous post on it :
https://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=118442 [sidefx.com]
Houdini Indie and Apprentice » VEX text editor suggestions
- maxbel
- 36 posts
- Offline
I really have no idea.
All I know is that I'm using Notepad ++ to do a little of python and I really appreciate the auto fills/highlights.
If there's something for VEX that would be great
All I know is that I'm using Notepad ++ to do a little of python and I really appreciate the auto fills/highlights.
If there's something for VEX that would be great
Houdini Indie and Apprentice » Particle spawn on collision
- maxbel
- 36 posts
- Offline
Hi everyone,
I'm trying to control the amount of particles emitted from each particle that has a collision. I would really like to control that amount, let's say between 4-8 particles per collision.
I've included my HIP file and there's only one DOP network. Any help would be appreciated!
Thanks!
Max
I'm trying to control the amount of particles emitted from each particle that has a collision. I would really like to control that amount, let's say between 4-8 particles per collision.
I've included my HIP file and there's only one DOP network. Any help would be appreciated!
Thanks!
Max
Houdini Indie and Apprentice » VEX text editor suggestions
- maxbel
- 36 posts
- Offline
Thanks for the suggestions.
I've already been using Notepad ++ for python scripting. Since I'm pretty new with scripting in general I was sort of looking for an editor that could help me out by filling certain blanks.
I guess for the time being I'll keep looking at VEX coding of shaders and other stuff.
Thanks for the help!
I've already been using Notepad ++ for python scripting. Since I'm pretty new with scripting in general I was sort of looking for an editor that could help me out by filling certain blanks.
I guess for the time being I'll keep looking at VEX coding of shaders and other stuff.
Thanks for the help!
-
- Quick Links