Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: TATMathieu on November 08, 2022, 11:03:51 AM

Title: Look-At target Trouble with Maxscript
Post by: TATMathieu 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 ?
Title: Re: Look-At target Trouble with Maxscript
Post by: Michal Karmazín on November 08, 2022, 11:39:46 AM
Hi,

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

Best regards,
Title: Re: Look-At target Trouble with Maxscript
Post by: TATMathieu 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 ?
Title: Re: Look-At target Trouble with Maxscript
Post by: Michal Karmazín 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,