Jump to content

456.cmd or.py


Recommended Posts

does it work for somebody?

i read it in the houdini on the spot book, but it does not work. it should be executed when after File>New , but I get a empty default scene

I use all the time and it works. What is your path for that file? Also, if there is an error in a code, maybe Houdini refuses to execute it without warnings? Are you sure the code is ok?

Link to comment
Share on other sites

it works as expected when i call it 123.py, and it lies in my $home/houdini9.1/scripts/

its quite simple right now:

hou.node("/obj").createNode("geo", "default")
mantra = hou.node("/out").createNode("ifd", "default")

Edited by sanostol
Link to comment
Share on other sites

it works as expected when i call it 123.py, and it lies in my $home/houdini9.1/scripts/

its quite simple right now:

hou.node("/obj").createNode("geo", "default")
 mantra = hou.node("/out").createNode("ifd", "default")

maybe importing hou will help? Did you import it?

Edited by SYmek
Link to comment
Share on other sites

allready tried that, no success

Hey Martin,

what build and OS you're using? I checked on Linux (9.1.189) yesterday evening and also couldn't get these scripts to work, but I'm not sure if all paths are set correctly there. This is strange. If I recall right, 456.py won't work in there is no 123.py file (am I right?) but this is the only warnings about it I can tell. A few weeks ago when I was writing some info about these files here: http://www.forum3d.pl/f3dbb/index.php?md=p...d=122885#122885, I was testing everything on Windows, files were present in all paths ($HFS, $HSITE, $HOME, $JOB) and Houdini was dealing with them correctly. hmm...

Edited by SYmek
Link to comment
Share on other sites

thanks SYmek for Your effort,

my os is ubuntu 7.10 the houdini version is 9.1.197

i have a empty 123.py and a 456.py, on the startup the 456 is executed, but not with new file

on windows i get a error( don't know the build right now)

i will try a new build

Hey Martin,

what build and OS you're using? I checked on Linux (9.1.189) yesterday evening and also couldn't get these scripts to work, but I'm not sure if all paths are set correctly there. This is strange. If I recall right, 456.py won't work in there is no 123.py file (am I right?) but this is the only warnings about it I can tell. A few weeks ago when I was writing some info about these files here: http://www.forum3d.pl/f3dbb/index.php?md=p...d=122885#122885, I was testing everything on Windows, files were present in all paths ($HFS, $HSITE, $HOME, $JOB) and Houdini was dealing with them correctly. hmm...

Edited by sanostol
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...