suppose there are 9 prims in the geometry. May I ask how to group them very 3 prims? I.e. group1 (prim 0-2), group2 (prim 3-5) …
Thanks!
Found 479 posts.
Search results Show results as topic list.
Houdini Indie and Apprentice » how to group every 3 prims as a new group?
-
- oat
- 479 posts
- オフライン
Houdini Indie and Apprentice » how to make houdini always use the latest version of otl
-
- oat
- 479 posts
- オフライン
Hi, Mark, I followed your suggestion, but the warning message still pops out whenever 1) I make changes to an otl, 2) change the name of the otl library to which the current otl is saved, and 3) choose “apply”
Is there other option I should consider in the configuration of Operator Type Manager? (see image below)
Is there other option I should consider in the configuration of Operator Type Manager? (see image below)
mtucker
If you go to Windows->Operator Type Manager, there is a Configuration page. If you turn on the “Give Preference to Definitions with Latest Date” Houdini should always choose the one saved most recently. Without this option I believe it uses the order in which the definitions are found based on the OTL path order.
Mark
Houdini Indie and Apprentice » how to "sync" 2 ordered menu
-
- oat
- 479 posts
- オフライン
Thank you very much, pezetko!
a minor variation of your suggestion:
hou.pwd().parm('menu_driven').set(hou.pwd().evalParm(menu_driver'))
I found that the code works when it is in the the main “Code” area of the Python operator node. But it doesn't work when put in the “Callback Script” area for the “driven” menu.
Am I missing something about how to use “callback script” here?
Much obliged!
a minor variation of your suggestion:
hou.pwd().parm('menu_driven').set(hou.pwd().evalParm(menu_driver'))
I found that the code works when it is in the the main “Code” area of the Python operator node. But it doesn't work when put in the “Callback Script” area for the “driven” menu.
Am I missing something about how to use “callback script” here?
Much obliged!
Houdini Indie and Apprentice » how to "sync" 2 ordered menu
-
- oat
- 479 posts
- オフライン
Houdini Indie and Apprentice » how to "sync" 2 ordered menu
-
- oat
- 479 posts
- オフライン
suppose I have two ordered menus as show in the first 2 images below.
May I ask how to use python code within the “Menu Script” area of the 2nd ordered menu to make the 2nd menu automatically show an item with the same index as that of the item currently chosen in the 1st menu (see the last 2 images)?
Thanks!
May I ask how to use python code within the “Menu Script” area of the 2nd ordered menu to make the 2nd menu automatically show an item with the same index as that of the item currently chosen in the 1st menu (see the last 2 images)?
Thanks!
Houdini Indie and Apprentice » os.system() doesn't work in Python node
-
- oat
- 479 posts
- オフライン
… OK, I admit that I'm repeating my own question …
see my post before regarding this issue:
https://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=21725&highlight=os.system%28%29 [sidefx.com]
It seems if the command line program is copied to the /usr/bin folder, the problem will be solved, still using os.system().
Maybe I need to add the path of the folder where the “oconv” program is installed currently to the system “.profile” file …
Advices are still appreciated!
see my post before regarding this issue:
https://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=21725&highlight=os.system%28%29 [sidefx.com]
It seems if the command line program is copied to the /usr/bin folder, the problem will be solved, still using os.system().
Maybe I need to add the path of the folder where the “oconv” program is installed currently to the system “.profile” file …
Advices are still appreciated!
Houdini Indie and Apprentice » os.system() doesn't work in Python node
-
- oat
- 479 posts
- オフライン
I tried the subprocess.call() function, but it still doesn't work ..
something like:
subprocess.call(cmd_oconv, shell=True)
something like:
subprocess.call(cmd_oconv, shell=True)
Houdini Indie and Apprentice » Houdini keeps looping Houdini License Administrator window
-
- oat
- 479 posts
- オフライン
Houdini Indie and Apprentice » os.system() doesn't work in Python node
-
- oat
- 479 posts
- オフライン
I have the following code in a Python Type Operator, which calls a program “oconv” to process a few files and output a new file whose name is specified by variable “oconv_file_path_and_name”.
However I couldn't get it run by using os.system() in the code.
I print out the full command before it is executed. Strangely, if I copy the fulll command string and paste it in the terminal and run it, I can get the results as expected.
So, I think I must have missed something here about how to execute command line program using os.system() …
Advices are greatly appreciated!
(using Mac OS X Yosemite, Houdini Apprentice 13.0.570)
The Code in Python Type Operator is:
# Create the OCONV command string
cmd_oconv = ‘oconv’ + ‘ ’ +\
mat_file + ‘ ’ +\
sky_file + ‘ ’ +\
geom_file + ‘ ’ +\
‘>’ + ‘ ’ +\
oconv_file_path_and_name
print cmd_oconv
os.system(cmd_oconv)
The full command string “cmd_oconv”as printed is something like the following:
oconv /Users/oat/Desktop/temp/materials.mat /Users/oat/Desktop/temp/sky.rad /Users/oat/Desktop/temp/scene.rad > /Users/oat/Desktop/temp/scene.oct
However I couldn't get it run by using os.system() in the code.
I print out the full command before it is executed. Strangely, if I copy the fulll command string and paste it in the terminal and run it, I can get the results as expected.
So, I think I must have missed something here about how to execute command line program using os.system() …
Advices are greatly appreciated!
(using Mac OS X Yosemite, Houdini Apprentice 13.0.570)
The Code in Python Type Operator is:
# Create the OCONV command string
cmd_oconv = ‘oconv’ + ‘ ’ +\
mat_file + ‘ ’ +\
sky_file + ‘ ’ +\
geom_file + ‘ ’ +\
‘>’ + ‘ ’ +\
oconv_file_path_and_name
print cmd_oconv
os.system(cmd_oconv)
The full command string “cmd_oconv”as printed is something like the following:
oconv /Users/oat/Desktop/temp/materials.mat /Users/oat/Desktop/temp/sky.rad /Users/oat/Desktop/temp/scene.rad > /Users/oat/Desktop/temp/scene.oct
Houdini Indie and Apprentice » Houdini keeps looping Houdini License Administrator window
-
- oat
- 479 posts
- オフライン
Thanks, MartybNz!
But I think my apprentice license is installed correctly (see images below).
It is the following steps that keep looping continuously the first time I open Houdini after installation.
Same problem when I tried to open houdini through houdini shell terminal.
Advices are greatly appreciated!
But I think my apprentice license is installed correctly (see images below).
It is the following steps that keep looping continuously the first time I open Houdini after installation.
Same problem when I tried to open houdini through houdini shell terminal.
Advices are greatly appreciated!
Houdini Indie and Apprentice » Houdini keeps looping Houdini License Administrator window
-
- oat
- 479 posts
- オフライン
I installed the latest Houdini apprentice 13.0.570 and it can't open even if the non-commercial license check is OK and I clicked “Run” to start Houdini.
It keeps going through the Houdini License Administrator window again and again …
Does anybody have the same issue?
It keeps going through the Houdini License Administrator window again and again …
Does anybody have the same issue?
Houdini Indie and Apprentice » how to get the largest circle inside a convex shape
-
- oat
- 479 posts
- オフライン
May I ask how to get the largest circle inside a convex polygon in any shape?
Thanks in advance!
Thanks in advance!
Houdini Indie and Apprentice » os.system() doesn't execute command
-
- oat
- 479 posts
- オフライン
Houdini Indie and Apprentice » os.system() doesn't execute command
-
- oat
- 479 posts
- オフライン
there's no such error when i try on Windows7.
Is it related to the python i have on my Mac?
Advices are greatly appreciated!
Is it related to the python i have on my Mac?
Advices are greatly appreciated!
Houdini Indie and Apprentice » os.system() doesn't execute command
-
- oat
- 479 posts
- オフライン
i couldn't use os.system() to execute a command as it is in the terminal.
I only get a return value of 256 and the file “scene.oct” is not generated from the “oconv” command string.
the error message is shown below.
Can anybody advise on the source of the error?
Thank you!
I only get a return value of 256 and the file “scene.oct” is not generated from the “oconv” command string.
the error message is shown below.
Can anybody advise on the source of the error?
Thank you!
Houdini Indie and Apprentice » how to make houdini always use the latest version of otl
-
- oat
- 479 posts
- オフライン
I got the following message each time I update a DA and save it to a new otl.
Is there a way to configure Houdini to make it always use the latest version of the otl?
Thanks!
Is there a way to configure Houdini to make it always use the latest version of the otl?
Thanks!
Houdini Indie and Apprentice » how to get the index of the items in a Multiparm Block(list)
-
- oat
- 479 posts
- オフライン
May I ask how to get the index of the items created via a Multiparm Block (list)?
for example, in the image attached, how to use HScript/Python to get the “input index” associated with a “input file” item created in the Multiparm Block (list)?
Thanks!
for example, in the image attached, how to use HScript/Python to get the “input index” associated with a “input file” item created in the Multiparm Block (list)?
Thanks!
Houdini Indie and Apprentice » how to save a new copy of the python type digital assets
-
- oat
- 479 posts
- オフライン
Houdini Indie and Apprentice » how to save a new copy of the python type digital assets
-
- oat
- 479 posts
- オフライン
suppose I made some change to the current python type of digital assets, how to save a new copy of the updated DA?
It seems that, on the “edit operator type properties” panel, if I save the DA to a new library with a new name, it will remind me the following:
operator saved to “…DA_new.otl”
but the current definition is in “…DA_old.otl”
…
Thanks!
It seems that, on the “edit operator type properties” panel, if I save the DA to a new library with a new name, it will remind me the following:
operator saved to “…DA_new.otl”
but the current definition is in “…DA_old.otl”
…
Thanks!
Houdini Indie and Apprentice » point.setAttribValue() error
-
- oat
- 479 posts
- オフライン
Dear graham,
You advice points out exactly the error in my code: integer zero is not the same as a float zero.
In my case, the if related code should be:
if height < 0.0:
height = 0.0
Thank you very much for you prompt and kind help!
- J
You advice points out exactly the error in my code: integer zero is not the same as a float zero.
In my case, the if related code should be:
if height < 0.0:
height = 0.0
Thank you very much for you prompt and kind help!
- J
-
- Quick Links
