CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 09-15-2012, 08:17 AM   #1
DEVILSAN
Earth Born>> goo.gl/mJh20
 
DEVILSAN's Avatar
portfolio
Sanjeev Kumar
MPC
India
 
Join Date: Jan 2005
Posts: 290
Question getting name of the imageplane to selected camera

is it possible pythonically to get the name of the imageplane node of the selected camera ?
I have managed to code to get the modelPanel name and get its camera
Code:
import maya.cmds as cmds p=cmds.getPanel(wf=True) print("Panel in foucs: ",str(p)) cam=str(cmds.modelEditor (p, q=True, camera=True)) print("Camera: ",cam) cmds.select(cam) print(cmds.pickWalk(direction='down' )[0])


now how can I get the name of imagePlane that is connected to the camera..

Last edited by DEVILSAN : 09-15-2012 at 05:54 PM.
 
Old 09-17-2012, 02:31 AM   #2
ThE_JacO
MOBerator-X
 
ThE_JacO's Avatar
CGSociety Member
portfolio
Raffaele Fragapane
That Creature Dude
Animal Logic
Sydney, Australia
 
Join Date: Jul 2002
Posts: 10,954
Hi Sanj,
As this is a very Maya specific question, I'll move this to the Maya programming forums for you. More pertinent, and more likely to get you visibility from people who have a snippet to offer.
__________________
"As an online CG discussion grows longer, the probability of the topic being shifted to subsidies approaches 1"

Free Maya Nodes
 
Old 09-17-2012, 02:49 AM   #3
DEVILSAN
Earth Born>> goo.gl/mJh20
 
DEVILSAN's Avatar
portfolio
Sanjeev Kumar
MPC
India
 
Join Date: Jan 2005
Posts: 290
alright,
-san
 
Old 09-17-2012, 08:12 AM   #4
ntashev
apiApe
 
ntashev's Avatar
portfolio
Nikolay Tashev
Lighting/Rendering Artist
www.cinemotion.bg
Sofia, Bulgaria
 
Join Date: Nov 2005
Posts: 326
Send a message via ICQ to ntashev
use listConnections and get the things connected to the camera's .imagePlane attribute, i.e.:
Code:
listConnections -s 1 -d 0 perspShape.imagePlane; // Result: imagePlane1 //
__________________
..aut inveniam viam aut faciam..

 
Old 09-17-2012, 08:12 AM   #5
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,480
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 05:20 PM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.