Found 390 posts.
Search results Show results as topic list.
Technical Discussion » How to trigger global env var update from Python or Hscript?
-
- zdimaria
- 390 posts
- Online
Technical Discussion » How to trigger global env var update from Python or Hscript?
-
- zdimaria
- 390 posts
- Online
When changing an env var from the Aliases and Variables window, the scene instantly updates automatically to reflect that variable change anywhere it was being used.
But when changing the same env var with setenv in HScript or hou.putenv, the scene does not update. I've also noticed it takes a few seconds to reflect that change in the Aliases and Variables window if you have it open while changing it.
What is the correct way to force the scene to update after changing an env var like this?
thank you!
But when changing the same env var with setenv in HScript or hou.putenv, the scene does not update. I've also noticed it takes a few seconds to reflect that change in the Aliases and Variables window if you have it open while changing it.
What is the correct way to force the scene to update after changing an env var like this?
thank you!
Technical Discussion » KineFX Agent blendshapes
-
- zdimaria
- 390 posts
- Online
Thanks. So if I use an FBX Character Import SOP to get the skeleton and then feed that into an Agent From Rig SOP, how would I add an arbitrary channel to that skeleton to later use with blendshapes on geometry used as an Agent Layer?
Technical Discussion » KineFX Agent blendshapes
-
- zdimaria
- 390 posts
- Online
I am bringing in an FBX character through an Agent SOP and then adding different layers to that agent with an Agent Layer SOP.
How can I add blendshape channels to these layers? I'm using these agents in a crowd system and want to modify the blendshape channels in the sim, but can't figure out how to add a blendshape channel to an agent layer.
Both the Character Blend Shapes SOP example hip and everything I've been able to find online makes blendshapes in an OBJ subnet rig, but I can't figure out how to do this in my setup.
Thanks!
How can I add blendshape channels to these layers? I'm using these agents in a crowd system and want to modify the blendshape channels in the sim, but can't figure out how to add a blendshape channel to an agent layer.
Both the Character Blend Shapes SOP example hip and everything I've been able to find online makes blendshapes in an OBJ subnet rig, but I can't figure out how to do this in my setup.
Thanks!
PDG/TOPs » Issues getting deadline scheduler running
-
- zdimaria
- 390 posts
- Online
Haha yeah I realized that and removed the comment. I'll shoot them a message.
thanks again!
thanks again!
PDG/TOPs » Issues getting deadline scheduler running
-
- zdimaria
- 390 posts
- Online
Hi Seelan,
I believe I have found the issue. It was something in our houdini wrapper / launcher messing up DEADLINE_PATH.
thanks for your help!
I believe I have found the issue. It was something in our houdini wrapper / launcher messing up DEADLINE_PATH.
thanks for your help!
Edited by zdimaria - 2020年1月9日 14:12:35
PDG/TOPs » Issues getting deadline scheduler running
-
- zdimaria
- 390 posts
- Online
OK, so submitting it manually in a shell works fine. The verbose logging output this:
And running this command successfully submits the job:
The python exception in houdini is still:
10:04:38 OnStartCook() 10:04:38 PDGMQ as separate task: False 10:04:38 Local Working Dir: /jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg Remote Working Dir: /jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg 10:04:38 Starting deadline command process 10:07:49 Local Working Dir: /jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg Remote Working Dir: /jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg 10:07:50 Setting job directory: /jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg/pdgtemp/31527/job_181a8d4712244eca908dfa5ea43775ca 10:07:50 Job file=/jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg/pdgtemp/31527/job_181a8d4712244eca908dfa5ea43775ca/pdg_dl_job.txt Plugin file=/jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg/pdgtemp/31527/job_181a8d4712244eca908dfa5ea43775ca/pdg_dl_plugin.txt 10:07:50 Task 0 file: /jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg/pdgtemp/31527/job_181a8d4712244eca908dfa5ea43775ca/task_0.txt 10:07:50 Submit As Job: Deadline command = ['SubmitJob', u'/jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg/pdgtemp/31527/job_181a8d4712244eca908dfa5ea43775ca/pdg_dl_job.txt', u'/jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg/pdgtemp/31527/job_181a8d4712244eca908dfa5ea43775ca/pdg_dl_plugin.txt']
And running this command successfully submits the job:
deadlinecommand /jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg/pdgtemp/31527/job_181a8d4712244eca908dfa5ea43775ca/pdg_dl_job.txt /jpl/jobs/henlo/sequences/bid/shots/000/work/apps/houdini/pdg/pdgtemp/31527/job_181a8d4712244eca908dfa5ea43775ca/pdg_dl_plugin.txt
The python exception in houdini is still:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "opdef:/Top/deadlinescheduler?PythonModule", line 3, in submitGraphAsJob File "/jpl/software/houdini/houdini_18.0.287/houdini/python2.7libs/pdg/scheduler.py", line 630, in submitGraphAsJob url = sch.submitAsJob(fname, net_name) File "/jpl/software/houdini/houdini_18.0.287/houdini/pdg/types/schedulers/tbdeadline.py", line 963, in submitAsJob raise CookError('Deadline submission error:\n' + str(e)) CookError: Deadline submission error: [Errno 2] No such file or directory
PDG/TOPs » Issues getting deadline scheduler running
-
- zdimaria
- 390 posts
- Online
I've turned on Verbose Logging but don't see anything more being printed anywhere. Where does it log to?
A regular cook (dirty and cook) works fine, the graph is just a generic generator going into a python script that prints the hostname.
A pdgtemp directory gets created in the working directory I've set on the deadline scheduler with these folders and files inside:
I'm attaching the hip as well.
A regular cook (dirty and cook) works fine, the graph is just a generic generator going into a python script that prints the hostname.
A pdgtemp directory gets created in the working directory I've set on the deadline scheduler with these folders and files inside:
. ├── job_a18fd66e3af1498c9fbea72a72be523a │ ├── pdg_dl_job.txt │ ├── pdg_dl_plugin.txt │ └── task_0.txt ├── job_de7d3c04bf924cee9bcf231ac39566f0 │ ├── pdg_dl_job.txt │ ├── pdg_dl_plugin.txt │ └── task_0.txt ├── logs ├── plugins │ └── PDGDeadline │ ├── PDGDeadline.options │ ├── PDGDeadline.param │ ├── PDGDeadline.py │ ├── PDGDeadline.pyc │ ├── PDGDeadlineUtils.py │ └── PDGDeadlineUtils.pyc └── scripts ├── pdgcmd.py ├── pdgjobcmd.py └── top.py
I'm attaching the hip as well.
Edited by zdimaria - 2020年1月8日 13:25:01
PDG/TOPs » Issues getting deadline scheduler running
-
- zdimaria
- 390 posts
- Online
Trying to get Deadline Scheduler running and am getting this exception:
I'm not sure what file it's looking for that it can't find. The graph cooks fine with the local scheduler. The job does not show up on deadline. DEADLINE_PATH is set to the deadline installation folder and deadlinecommand is in the path and runs fine.
Any ideas on how to troubleshoot this?
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "opdef:/Top/deadlinescheduler?PythonModule", line 3, in submitGraphAsJob File "/jpl/software/houdini/houdini_18.0.287/houdini/python2.7libs/pdg/scheduler.py", line 630, in submitGraphAsJob url = sch.submitAsJob(fname, net_name) File "/jpl/software/houdini/houdini_18.0.287/houdini/pdg/types/schedulers/tbdeadline.py", line 963, in submitAsJob raise CookError('Deadline submission error:\n' + str(e)) CookError: Deadline submission error: [Errno 2] No such file or directory
I'm not sure what file it's looking for that it can't find. The graph cooks fine with the local scheduler. The job does not show up on deadline. DEADLINE_PATH is set to the deadline installation folder and deadlinecommand is in the path and runs fine.
Any ideas on how to troubleshoot this?
Technical Discussion » Add to Key-Value parameter through Python
-
- zdimaria
- 390 posts
- Online
I'm not sure how to remove just one. But yeah as a hack you can rebuild the dict without the keys you don't want.
Technical Discussion » Add to Key-Value parameter through Python
-
- zdimaria
- 390 posts
- Online
Technical Discussion » Is it possible to add python callback to an HDA's parm without modifying the HDA Definition?
-
- zdimaria
- 390 posts
- Online
Andrew GrahamThis is perfect! I scanned through that page today and can't believe I missed it. Thank you!!
hou.nodeEventType.ParmTupleChanged
Technical Discussion » How to use a virtual environment's python instead of the one that ships with houdini?
-
- zdimaria
- 390 posts
- Online
Daniel_aRchI just built the correct env that I wanted from my venv during the launch of houdini instead of using houdini's houdini_setup_bash.
Have you ever resolved this issue?
Technical Discussion » Is it possible to add python callback to an HDA's parm without modifying the HDA Definition?
-
- zdimaria
- 390 posts
- Online
I want to add a default python callback to all parm's on an hda that don't already have a callback set. Ideally I'd like to do this in OnCreated, but the only way I can see to add a callback is by modifying the parm templates in the asset definition. I'd rather not modify the asset definition.
If not, is there anything similar to Node's addEventCallback for parms?
I am open to even hacky ways of achieving this.
thanks!
If not, is there anything similar to Node's addEventCallback for parms?
I am open to even hacky ways of achieving this.
thanks!
Technical Discussion » How to use a virtual environment's python instead of the one that ships with houdini?
-
- zdimaria
- 390 posts
- Online
I have a virtual environment and want Houdini to use that python instead of the one that ships with it.
My hope was that if I just sourced the virtualenv before sourcing houdini_setup_bash, it would pick it up.
The documentation says that I should point LD_PRELOAD to libpython2.7.so or include ‘/path/to/python/lib’ in LD_LIBRARY_PATH.
However, I can't find libpython2.7.so inside the virtual environment, and any ‘lib’ folder inside the venv that I add to LD_LIBRARY_PATH doesn't get picked up.
So my understanding now is that virtual environments don't come bundled with a full stand-alone installation of python (like Houdini does) and instead use the system's python libraries (even though they do come with a python binary executable).
How do I tell Houdini to use the python in the virtual environment?
thanks!
My hope was that if I just sourced the virtualenv before sourcing houdini_setup_bash, it would pick it up.
The documentation says that I should point LD_PRELOAD to libpython2.7.so or include ‘/path/to/python/lib’ in LD_LIBRARY_PATH.
However, I can't find libpython2.7.so inside the virtual environment, and any ‘lib’ folder inside the venv that I add to LD_LIBRARY_PATH doesn't get picked up.
So my understanding now is that virtual environments don't come bundled with a full stand-alone installation of python (like Houdini does) and instead use the system's python libraries (even though they do come with a python binary executable).
How do I tell Houdini to use the python in the virtual environment?
thanks!
Technical Discussion » Define custom expression function
-
- zdimaria
- 390 posts
- Online
Technical Discussion » Define custom expression function
-
- zdimaria
- 390 posts
- Online
http://www.sidefx.com/docs/houdini/network/expression_functions.html [www.sidefx.com]
In the edit aliases and variables window you can define a custom expression function. What file are these saved in / what is the best way to manage these in a pipeline?
Is there anyway to export or define these from python?
thanks
In the edit aliases and variables window you can define a custom expression function. What file are these saved in / what is the best way to manage these in a pipeline?
Is there anyway to export or define these from python?
thanks
Edited by zdimaria - 2018年10月1日 14:30:28
Houdini Indie and Apprentice » visualizer showing duplicates
-
- zdimaria
- 390 posts
- Online
Technical Discussion » Any way to limit RBD hinge constraint or get the current angle of a hinge constraint?
-
- zdimaria
- 390 posts
- Online
I need to stop an rbd hinge constraint at a certain angle. Is there any built in way to do this? If not, is there a simple way to get the constraint's current angle? A simple to implement way would be awesome as I need to do this to tons of procedurally generated constraints.
thanks!
thanks!
Technical Discussion » How to get 'Restart Selection' functionality in OTL / HDA?
-
- zdimaria
- 390 posts
- Online
I want to add the ‘restart selection’ feature (escape, back tick) to one of my otls. What is needed to be able to use this?
-
- Quick Links