Getting the name of the current camera from a Switcher?

   4646   5   2
User Avatar
Member
71 posts
Joined: Oct. 2007
Offline
Hello,

I would like to know which camera is currently activated by a camera switcher, this without having to do an index check in the camera list of this switcher.

In other words, how could I get the name of the current camera of a switcher with and expression?

Thanks a lot for any help
Video Game Graphics TD
User Avatar
Member
8832 posts
Joined: July 2007
Offline
imagine that “../switcher1” is the path to your switcher object
then

`opname( opinputpath(“../switcher1”, ch(“../switcher1/camswitch”)) )`

will return active camera name
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
71 posts
Joined: Oct. 2007
Offline
Hi Tomas,

Thank you very much for the code line. It really help

I progressively acquire the Houdini philosophy and this tip seem to me to be very consistent with it.


By the way I also discovered that the backtick character ( ` ) cannot be entered in Houdini with a AZERTY keyboard (I didn't had to use it so much so far).


Best
Video Game Graphics TD
User Avatar
Member
71 posts
Joined: Oct. 2007
Offline
Well, thanks for the tip, but unless I missed something it doesn't really help because I know where the backtick is on my keyboard. :cry:

Indeed it is not a matter of where the backtick key is mapped, it is just that Houdini seems to prevent it to be entered if you are not using a QWERTY…
The backtick is taken in account if I call the external text editor, but is is not otherwise, neither in the expression fields not in the consoles. Event the Alt + 96 (ASCI shortcut) isn't taken in account…

This thread is quite old but still seem to be applicable:
http://www.3dbuzz.com/vbforum/showthread.php?48273-backtick [3dbuzz.com]

Are you able to use the backtick on your side?


Regards
Video Game Graphics TD
User Avatar
Member
214 posts
Joined: Dec. 2009
Offline
It works for me. (QWERTZ german layout)

You could try to assign a back-tick to a special (combined) key on your keyboard or to an unused mouse-button. But, since I've never done that, I can't recommend you any of these config-tools.
  • Quick Links