Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Autodesk MotionBuilder 2009 / Changing default camera clip settings of Producer Perspective camera?
  RSS 2.0 ATOM  

Changing default camera clip settings of Producer Perspective camera?
Rate this thread
 
24646
 
Permlink of this thread  
avatar
  • jmherzon
  • Posted: 26 March 2009 12:52 PM
  • Total Posts: 8
  • Joined: 04 December 2006 07:35 PM

We are working in a fairly large scale with our assets.

Because of this, each time I open my environment in motionbuilder, I must change the Far Plane option for the Producer Perspective camera (default = 4000 / My Settings = 40000) in order to see the entire set.

I can certainly create my own camera with the larger far clip plane but was wondering if there was a way - through the interface, through hacking a config file, or through a script - to permanently change the clip settings for the default mobu perspective camera.

Thanks.



Replies: 0
avatar
  • Kelly H
  • Posted: 27 March 2009 08:49 AM

hello,

If you save your scene with the new Far Plane setting for the Producer Prospective Camera, it will load each time you open the file.

hope this helps.

Kelly
MotionBuilder QA



Replies: 0
avatar
  • jmherzon
  • Posted: 03 April 2009 01:51 PM

Kelly,

Thanks for the reply and suggestion.

Unfortunately, that doesn’t seem to work for me. I change the far clip plane on the producer perspective camera each time I open my scene (from 4000 to 40000) and save the scene with these settings. But, upon re-opening the scene, the producer perspective camera’s far clip plane settings are, once again, at their default of 4000.

Any thoughts?

Thanks.



Replies: 0
avatar
  • raitch
  • Posted: 03 April 2009 04:06 PM

You can unzip and copy the attached python script into your PythonStartup folder to accomplish this.

The default WIN32 location is C:\Program Files\Autodesk\MotionBuilder 2009\bin\config\PythonStartup

from pyfbsdk import *

lScene FBSystem().Scene

lSceneCameras 
lScene.Cameras
for lSceneCamera in lSceneCameras:
    if 
lSceneCamera.Name == "Producer Perspective":
        
lSceneCamera.FarPlaneDistance 40000.0

It should then run this script each time you launch.

Let me know if there are any problems.
Thanks!



Attachment Attachment
Replies: 0
avatar
  • jmherzon
  • Posted: 08 April 2009 07:43 PM

Raitch,

Thanks for your reply and for your script.

I installed it and it does solve the far-clipping plane issue each time I first open motionbuilder.
But because the script only works on start up, I am still getting the same clipping plane issue each time I open my files.
It doesn’t seem to matter that I save them with the larger far clipping plane, re-opening them always seems to get me the default far clip plane value.

Any other ideas?

Thanks.



Replies: 0
avatar

I just tried opening a new file, setting the clipping plane and then reopening. It seems to work for me.

Two questions… when you save are you saving with base cameras checked on? And then when you open are you opening with base cameras checked on?



Replies: 0