Forgot your password?   Click here   •   No account yet?   Please Register    •   Or login using  
EN Login
SideFX Homepage
  • Products
    • What's New in H20.5
      • Overview
      • VFX
      • Copernicus
      • Animation
      • Rigging
      • Lookdev
    • Houdini
      • Overview
      • FX Features
      • CORE Features
      • Solaris
      • PDG
    • Houdini Engine
      • Overview
      • Engine Plug-Ins
      • Batch
    • Karma Renderer
    • Compare
    • SideFX Labs
    • Partners
  • Industries
    • Film & TV
    • Game Development
    • Motion Graphics
    • Virtual Reality
    • Synthetic Data for AI/ML
  • Community
    • Forum
    • News Feed
      • Overview
      • Project Profiles
      • Houdini HIVE Events
      • Contests & Jams
    • Gallery
    • Event Calendar
    • User Groups
    • Artist Directory
  • Learn
    • Tutorials
      • Overview
      • My Learning
      • Learning Paths
      • Tutorial Library
    • Content Library
    • Tech Demos
    • Talks & Webinars
    • Education Programs
      • Overview
      • Students
      • Instructors
      • Administrators
      • List of Schools
      • Resources
  • Support
    • Customer Support
    • Licensing
      • Overview
      • Commercial
      • Indie
      • Education
    • Help Desk | FAQ
    • System Requirements
    • Documentation
    • Changelog / Journal
    • Report a Bug/RFE
  • Try | Buy
    • Try
    • Buy
    • Download
    • Contact Info
 
Advanced Search
Forums Search
Found 152 posts.

Search results Show results as topic list.

Technical Discussion » python viewport through specified camera ... error

User Avatar
rdms
201 posts
Offline
 Oct. 19, 2017 15:06:35
RESOLVED …

Moved code into another py file and imported that from 456.py (didn't need to use 123.py after all). Also found I needed to add hou.uitriggerUpdate() call. So the code looks like this:

def_cam = hou.node(“/obj/defCam”)
hou.ui.triggerUpdate()
hou.ui.waitUntil(lambda: len(hou.node("/obj").children()) > 0)
scene_view = toolutils.sceneViewer()
viewport = scene_view.curViewport()
viewport.setCamera(def_cam)
See full post 

Technical Discussion » Abort save if beforescenesave.py fails

User Avatar
rdms
201 posts
Offline
 Oct. 12, 2017 12:05:22
H16.0.736
Somewhat related …

if I'm using the HSITE environment variable and I save beforescenesave.py & afterscenesave.py in $HSITE/houdini16.0/scripts, should they work? I'm not seeing anything happen. To clarify, this is what I have in the afterscenesave.py file:

if kwargs["success"] and not kwargs["autosave"]:
print "after save"
Edited by rdms - Oct. 12, 2017 12:08:48
See full post 

Technical Discussion » Apprentice grabbing license?

User Avatar
rdms
201 posts
Offline
 Oct. 12, 2017 10:41:54
H16.0.736

I have Houdini-Master license installed. If I start Houdini in the apprentice mode on an existing hipfile (command line is “houdini -apprentice <hipfile>.hip”), it grabs the license. Is that expected behaviour?
See full post 

Technical Discussion » python viewport through specified camera ... error

User Avatar
rdms
201 posts
Offline
 Sept. 28, 2017 11:17:07
H16.0.736 Windows7

I have a 123.py file that imports another module. In that module, I have some code that is suppose to set the viewport to look out a specific camera. The code looks something like this:

import toolutils
defCam = hou.node(“/obj/defCam”)
scene_view = toolutils.sceneViewer()
viewport = scene_view.curViewport()
viewport.setCamera(defCam)

* assume defCam has been already been setup

If I run this snippet from Python shell inside Houdini there is no issue. However, when it runs during initial launch of Houdini (double click on desktop icon), I get the following error:

Error running Python code:
Traceback (most recent call last):
File “C:<hidden_path>/Documents/houdini16.0/scripts/123.py”, line 20, in <module>
import startup
File “<hidden_path>/houdini/scripts/python\startup.py”, line 27, in <module>
scene_view = toolutils.sceneViewer()
File “CPROGRA~1/SIDEEF~1/HOUDIN~1.736/houdini/python2.7libs\toolutils.py”, line 73, in sceneViewer
primarypane = hou.ui.paneTabOfType(hou.paneTabType.SceneViewer, index)
File “CPROGRA~1/SIDEEF~1/HOUDIN~1.736/houdini/python2.7libs\hou.py”, line 46554, in paneTabOfType
return _hou.ui_paneTabOfType(*args)
NotAvailable: Not available in this context.
No desktops are available


Any idea why it runs fine when inside Houdini but fails during startup? Is there a better way to achieve this? TIA
See full post 

Technical Discussion » multiple python libraries causing errors

User Avatar
rdms
201 posts
Offline
 Sept. 26, 2017 16:32:06
Further to this, I read there is an environment variable called HOUDINI_USE_HFS_PYTHON that when set to 1 forces Houdini to read the Python package that comes with Houdini. Does this work? I tried it with no luck … set in Windows Control Panel and also tried houdini.env file.

Please note that I'm using Windows and simply double clicking on the Houdini icon on the desktop.

help
See full post 

Technical Discussion » Simple parameter editing Python error.

User Avatar
rdms
201 posts
Offline
 Sept. 26, 2017 14:08:35
I'm assuming you want to print out the current value of the parameter so try this:

current_tx = sphere.evalParm(“tx”)
See full post 

Technical Discussion » multiple python libraries causing errors

User Avatar
rdms
201 posts
Offline
 Sept. 26, 2017 12:54:57
H16.0.736 Windows7

When launching Houdini, now getting python related errors from a python library that is used by Nuke. Simple question, what do I need to setup environment-wise to have Houdini only deal with python that is in $HFS?

Also, seems latest versions are installing python26 AND python27 into the $HFS directory. Is that so or am I imagining this? TIA
See full post 

Technical Discussion » Get Attribute VOP:: missing parameter?

User Avatar
rdms
201 posts
Offline
 Aug. 3, 2017 10:50:08
Ok … I think I may have found the answer. There is ‘adefault’ connection on the node in the network editor - guess this is the preferred method? Perhaps a tweak in the docs to spell this out a bit clearer. Still shouldn't there be a field on the parameter page?
See full post 

Technical Discussion » Get Attribute VOP:: missing parameter?

User Avatar
rdms
201 posts
Offline
 Aug. 3, 2017 10:36:52
H16.0.600

Is the Get Attribute VOP missing the Default Value parameter as stated in the help/docs? Is there another method/thinking of setting a default? TIA
Edited by rdms - Aug. 3, 2017 10:38:38
See full post 

Technical Discussion » workstation specs for doing sim work

User Avatar
rdms
201 posts
Offline
 March 31, 2015 09:58:58
Looking at a large project that will require lots of sims - mainly water. Curious to hear recommendations on workstation specs to handle this type of work using Houdini … number of CPUs, RAM, specific graphic cards? What about GPU capabilities? All suggestions welcomed. Thanks in advance
See full post 

Technical Discussion » controlled burn

User Avatar
rdms
201 posts
Offline
 March 27, 2015 17:37:18
Thanks sideimjay … I was able to get a bit closer. This whole pyro thing is new for me so I'm still trying to wrap my mind around the terminology & such.

I've attached a quick hipfile. Still feels like I'm missing something or got something setup incorrectly. I'd like the flames to start as soon as the sphere hits the tube but the container is more centred on the tube. Any pointers at this time would be greatly appreciated.
See full post 

Technical Discussion » controlled burn

User Avatar
rdms
201 posts
Offline
 March 27, 2015 15:19:49
Revisiting an old friend …

I would like to have a line of fuel on the ground that is lit at one end and burns across the surface … from one side to the other. Would welcome any suggestions. Thanks in advance.
See full post 

Houdini Indie and Apprentice » Houdini Apprentice License Problem On Debian 7

User Avatar
rdms
201 posts
Offline
 July 10, 2013 11:06:22
H12.5.427

Getting the same problem trying to install on Win7 machine.
See full post 

Technical Discussion » can't export flipbook?

User Avatar
rdms
201 posts
Offline
 March 7, 2011 12:25:54
I don't think you can write to CWindows/Temp because it might have special administrative privileges. Try creating a folder CTemp and save your images in there.
See full post 

Technical Discussion » How to get transforms from Fetch ?

User Avatar
rdms
201 posts
Offline
 Nov. 12, 2010 13:44:47
morzh
Thank you, graham. Could you get a hint about HOM ? In the help i've read about obj.worldTransform() and obj.preTransform(), but what about fetched transform ?

Could you do something like:
print hou.node(“/obj/fetch1”).worldTransform()

And if you wanted only the tx you could do:
print hou.node(“/obj/fetch1”).worldTransform().extractTranslates()

HTH
See full post 

Technical Discussion » How to get newwork view name

User Avatar
rdms
201 posts
Offline
 Nov. 12, 2010 09:34:52
hou.pwd()
See full post 

Technical Discussion » manually created ... what does that stand for? SOLVED!!!

User Avatar
rdms
201 posts
Offline
 Nov. 8, 2010 15:11:18
keyframe
There HAS to be a better place for this (admittedly) very handy piece of info. Three state toggles are a pain.

Yep … if anything, it should be displayed with the node info when you do MMB
See full post 

Technical Discussion » Custom Operator Question (python)

User Avatar
rdms
201 posts
Offline
 Nov. 5, 2010 10:16:22
3Dude
Hi guys!
How can I run a function defined in the “code” section of an operator
when a button of the operator is pressed??

Sebastian

Assuming you are using python and have written a function (let's say called foo) in the PythonModule under the Scripts tab …

In the Callback Script of the button parameter, you would have something like:
hou.pwd().hdaModule().foo()
And make sure you switch the Script Language from Hscript to Python (this is the button just under the Callback Script)

HTH
See full post 

Technical Discussion » Cannot render in Apprentice.

User Avatar
rdms
201 posts
Offline
 Oct. 19, 2010 13:10:55
Can you provide a hipfile? Or are you saying, in general, a mantra ROP will produce the same error?
See full post 

Technical Discussion » Modify Geometry Chooser

User Avatar
rdms
201 posts
Offline
 Oct. 15, 2010 09:30:31
Does the file $HH/GEOio do this?
See full post 
  • First
  • 1
  • 2
  • 3
  • 4
  • Last
  • Quick Links
Search links
Show recent posts
Show unanswered posts
PRODUCTS
  • Houdini
  • Houdini Engine
  • Houdini Indie
LEARN
  • Talks & Webinars
  • Education Programs
SUPPORT
  • Customer Support
  • Help Desk | FAQ
  • Documentation
  • Report a Bug/RFE
  • Sales Inquiry
LEGAL
  • Terms of Use
  • Privacy Policy
  • License Agreement
  • Accessibility
  • Responsible Disclosure Program
COMPANY
  • About SideFX
  • Careers
  • Press
  • Internships
  • Contact Info
Copyright © SideFX 2025. All Rights Reserved.

Choose language