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® Maya® / Autodesk Maya through 8.x / Camera Help.
  RSS 2.0 ATOM  

Camera Help.
Rate this thread
 
2965
 
Permlink of this thread  
avatar
  • Location: Orange County, California
  • Total Posts: 1397
  • Joined: 12 November 2007 09:14 AM

Is there any way to create a camera from the current persp. view?
Thanks.



22in Samsung T220 flatscreen and 17in. Dual Setup
Intel Core 2 Quad Q6700 2.7 Ghz
4gb DDR2
NVIDIA GeForce 8600 GT

Wacom Intuos 3 Tablet and Pen
Windows Vista Home Premium
Maya 2008 Unlimited
Combustion 2008

Photoshop CS4 Extended
Cleaner XL

Replies: 0
avatar
  • paulalso
  • Posted: 29 December 2007 10:48 PM

here is a small script that will create a camera w/ aim at any camera view......I just use it as a button on my shelf, you could also make a hot key with it in the hot key editor…

{
$currentPanel 
= `getPanel -withFocus`;
$currentCam = `modelPanel -query -camera $currentPanel `;
print 
$currentCam;    
float $camPos[] = `xform -query -translation $currentCam`;
print 
$camPos;
float $camRot[] = `xform -query -rotation $currentCam`;
print 
$camRot;        
string $newCam[] camera();
print 
$newCam;
xform -translation $camPos[0] $camPos[1] $camPos[2] $newCam[0];
xform -rotation $camRot[0] $camRot[1] $camRot[2] $newCam[0];
cameraMakeNode2$newCam[0]);
}

there also are some good camera scripts on highend3d site....there is a camera crane rig script and some dynamic handicam type scripts......



Replies: 0
avatar
  • Location: Orange County, California
  • Total Posts: 1397
  • Joined: 12 November 2007 09:14 AM
  • Permlink of this post

Thanks, But nothing happens when I do that.
Help!



22in Samsung T220 flatscreen and 17in. Dual Setup
Intel Core 2 Quad Q6700 2.7 Ghz
4gb DDR2
NVIDIA GeForce 8600 GT

Wacom Intuos 3 Tablet and Pen
Windows Vista Home Premium
Maya 2008 Unlimited
Combustion 2008

Photoshop CS4 Extended
Cleaner XL

Replies: 0
avatar
  • aliasmk
  • Posted: 01 January 2008 08:34 AM

A camera?
Create/Camera/…
Did this help?



Maya 8 Complete
Windows Vista Home Premium 32-bit
Service Pack 1
Intel Core 2 Duo 6700 @ 2.66GHz
3 GB ram
___________________________________________
Thanks for your votes!
http://3december.wacom.com/entries#14283

Attachment Attachment
Replies: 0
avatar
  • paulalso
  • Posted: 01 January 2008 01:26 PM

longboarder1 30 December 2007 01:58 AM

Thanks, But nothing happens when I do that.
Help!

.....make sure that the viewport is selected...there should be a thin green frame around the whole viewport signifying that that view has “focus”.....then execute the script.......also if you open the script editor you will see all the commands maya issues and any errors that may occur.....if an error still occures it is likely the last command...."cameraMakeNode( 2, $newCam[0]);”...just delete that one line.



Replies: 0
avatar
  • cjkoepke
  • Posted: 01 January 2008 02:35 PM

When you have your perspective view set up to where you want it, and then want to make it a camera view, just hit ctrl+C. This creates a camera set up to the current view. Let me know if it works:)
Calvin.

p.s. But that is only in Autodesk 3DS Max. If your using Maya, I don’t know.



AMD Athlon 64 2.0Ghz
Nvidia 8600 Overclocked GTS 256MB
80GB Hard Drive
1.5GB RAM

Replies: 0
avatar

longboarder1 30 December 2007 01:23 AM

Is there any way to create a camera from the current persp. view?
Thanks.

What I do is, in the viewport go,

view>select camera

then

Ctrl+D or Edit>Duplicate

just re-name so as not to get confused.



Replies: 0
avatar
  • Location: Orange County, California
  • Total Posts: 1397
  • Joined: 12 November 2007 09:14 AM
  • Permlink of this post

cjkoepke, no it does not work, that is the copy shortcut.  Thanks though.  And I don’t think that works in 3ds max either.
ctrl+C is the universal shortcut for copy.



22in Samsung T220 flatscreen and 17in. Dual Setup
Intel Core 2 Quad Q6700 2.7 Ghz
4gb DDR2
NVIDIA GeForce 8600 GT

Wacom Intuos 3 Tablet and Pen
Windows Vista Home Premium
Maya 2008 Unlimited
Combustion 2008

Photoshop CS4 Extended
Cleaner XL

Replies: 0