06 June 2010 | |
![]() |
|
3dhippie
portfolio
David Shelton
3d generalist
Mainz,
Germany
|
boundingbox of object is illegal reference
Hi
I am doing a script where it is crucial to get the bounding box of my camera inside a float_script controller. So i create a variable called "this" and assign the camera node. this.min or this.max should give me the boundingbox values. Unfortunately maxscript throws an error: illegal self-reference in controller script. As a workaround i tried adding an empty modifier and use this line of script to get the boundingbox values:
So my question is: Is there a way to get the boundingbox without illegal self-reference and no additional modifier? thanks, David |
06 June 2010 | |
![]() |
|
Veteran
portfolio
martin lutteral
Montreal,
Canada
|
"this" is a reserved name. Try using another name.
|
06 June 2010 | |
![]() |
|
3dhippie
portfolio
David Shelton
3d generalist
Mainz,
Germany
|
Originally Posted by lutteral:
"this" is a reserved name. Try using another name.
oh, good to know. But i have the same problem when the variable is called thiscamera. |
06 June 2010 | |
![]() |
|
Expert
|
Thread automatically closed
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities Note that as CGTalk Members, you agree to the terms and conditions of using this website. |
Thread Closed share thread |
«
Previous Thread
|
Next Thread
»
|
|
|