Itoo Software Forum

Author Topic: Look-At target Trouble with Maxscript  (Read 640 times)

TATMathieu

  • Newbie
  • *
  • Posts: 4
Look-At target Trouble with Maxscript
« on: November 08, 2022, 11:03:51 AM »
I want to Update a scene with lot of existing forest and crontrol them with a look-at Target node (camera panel).

when i do this action, the listener report :
$Forest001.lookat = $Teapot001

but when I write it the result is absolutly different !
It's changing the controller of my teapot with a lookat controller !



How can I use a script to edit the look at target of my forest ?

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1914
Re: Look-At target Trouble with Maxscript
« Reply #1 on: November 08, 2022, 11:39:46 AM »
Hi,

You should use the $.lookattarget property. I hope that helps.

Best regards,

TATMathieu

  • Newbie
  • *
  • Posts: 4
Re: Look-At target Trouble with Maxscript
« Reply #2 on: November 08, 2022, 12:42:35 PM »
Thank for the information. It's work but my other question is why the maxscript listener wrote $.lookat and not $.lookattarget ?

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1914
Re: Look-At target Trouble with Maxscript
« Reply #3 on: November 09, 2022, 09:47:28 AM »
Hi,

Might be, you’ve grabbed it with some older Forest Pack version? Since the FP7 we renamed it to $.lookattarget to avoid duplications.

Best regards,