SimplyMaya
Community
The SimplyMaya Forums
View all Forums
A place you can ask or answer VFX related questions
Latest forum posts
rigging walkcycle depending on path langth
High-Poly to Low-Poly Workflow Made Simple
Simply3dWorld?
Maya's Replace Objects Tool
Maya- control selection problem
how to clean up?
News and articles
News & Articles
Vfx related news and articles
Random news
Working in the Game Industry - An Interview with Mike McKinley
Texture collaboration system (Coming Soon)
Upload or Download textures
A place to download great textures or share your own with the community
Legacy Resources
Latest uploads to our system
View new Posts
Edit your profile
View threads your subscribed to
User control panel
Training
Maya Training and Tutorials
View all training
View hundreds of hours of Maya training online or via download
Looking for something specific?
Focus on Archviz & Environments
Focus on Organics
Focus on Hard Surface
Focus on Lighting, Rendering & Texturing
Focus on Dynamics, Rigging & Animation
Post Production
Training options on SimplyMaya
Current member status:
Not logged in
Create Account
Pick a streaming payment plan
We offer several different subscription options for our online training
Try streaming for free
Watch up-to three hours of training over a 10 day period for free
Buy training for download
Choose the content you want and buy it outright, downloads don't expire and you can keep them for as long as you'd like
Latest training
Integrating 3D models with photography
Substance Painter 2017
Complex UV Layout in Maya 2018
Training you might like
Introduction to Maya - Modeling Fundamentals Vol 1
Substance Painter
If you want to ask a SimplyMaya training related question use this forum:
SimplyMaya tutorials
Create Account
Sign in
Username
Password
Sign in
Forgot Password?
SimplyMaya Forums
Welcome to the forum, feel free to ask questions here.
SM Forums
/
Maya Questions
/
Programming
/ Maya lost parent reference edit after importing nested reference
Register
FAQ
Calendar
Mark Forums Read
Programming
MEL Scripts, Expressions & Programming Related Topics
Join the conversation. Reply to post
Thread Tools
16-03-2021, 12:09 PM
#
1
golubevcg
Registered User
Join Date: Mar 2021
Posts: 1
Maya lost parent reference edit after importing nested reference
Hello everyone!
Bumped into a little problem.
I have a set, in which i have nested references.
And after i import this nested references i have just referenceses without nesting.
But in my ui script i need to show groups, in which reference files exists,
and here i stuck with a little problem. Before importing nested references i can acces parent reference edits
easily with Open Maya (i need to use OpenMaya because of the speed)
After i import nested refrences i can’t access parent reference edit, it look like it do not exists.
The only way they are returning it is:
cmds.referenceQuery
Here - they returned with no problem.
I take parent from edits because refernce file can be unloaded and it will not be in outliner.
Any one had something in common? maybe there is other way to “take” this parent information?
currently i do it this way:
import maya.OpenMaya as om
selList=om.MSelectionList()
root=om.MObject()
selList.add(ref)
selList.getDependNode(0,root)
it = om.MItEdits(root, root, 1)
parent=""
while not it.isDone():
edit = it.edit()
if 4 == edit.editType():
parent = edit.getString().rsplit(" ", 1)[1].replace(""", "")
break
it.next()
return parent
Reply with quote
golubevcg
View Public Profile
Find More Posts by golubevcg
Reply
Tags
edits
,
openmaya
,
references
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Maya 2019: Cant render lightning effects, why?
roccofx
Maya Basics & Newbie Lounge
0
26-07-2019
02:24 AM
Maya instancer Every Frame ReCalculate Problem..!!
bymak
Maya Technical Issues
0
10-11-2018
09:54 AM
Error Reading File... HELP ME PLEASE
roryfollansbee
Challenge Forum
1
16-04-2016
09:00 AM
fur rendering failed?????
olivermagno
Maya Materials & Textures
2
21-05-2003
01:36 AM
importing a DXF file to maya 4.5
Chester
Maya Basics & Newbie Lounge
0
23-10-2002
01:25 AM