defaultscene.cmd -> viewcamera

   2200   1   0
User Avatar
Member
19 posts
Joined: 7月 2005
Offline
Hi,

it seems that the viewcamera command has no effect from the defaultscene.cmd script sourced by 123.cmd.

Either from the native defaultscene.cmd from the HFS location or from HSITE or HOME.

The exact same command(s) work(s) fine in Texport once Houdini launched.

Could it be a Windows specific issue ? ( I have yet to test it on Linux ).

I've tested it on v8.0.474, v8.0.564 and v8.1.613.

Exemple of command I'm issuing:

viewcamera -c /obj/cam_PAL_D1 Build.pane1.world.persp1

cam_PAL_D1 is created earlier in the script.

Also the native script portion ( starting by: set views = `run('viewls -n -t “world”')` ../.. ) doesn't work either.

Any idea ? Is it known to not work ?
User Avatar
Member
19 posts
Joined: 7月 2005
Offline
Ok,

it seems that no view is found from the viewls command from the 123.cmd script file at startup time, no view may have been created yet.

The workaround I've found is to use the 456.cmd script filie for this, as it is executed after scene load ( or new scene at startup ).

This way it works and the viewport(s) can be correctly setted to the wanted camera(s).

I guess the viewcamera script portion of the default 123.cmd script file is useless and should be moved to a 456.cmd script file.
  • Quick Links