Comments (4)
Python script to reproduce at least in our environment (Maya 2018 Update3):
# from within maya batch mode
from maya import cmds as mc
from pxr import Usd, Vt, Sdf
print 'creating usd stage'
# create usd stage with a large ascii representation
stage = Usd.Stage.CreateNew('tmpStage.usda')
prim = stage.DefinePrim('/prim')
attr = prim.CreateAttribute('doubleArray', Sdf.ValueTypeNames.DoubleArray)
arrayValues = Vt.DoubleArray(1000000, 1.0/3.0)
attr.Set(arrayValues)
# import stage
print 'importing stage'
mc.AL_usdmaya_ProxyShapeImport(f='tmpStage.usda')
# save file
print 'saving'
mc.file(rename='test.ma')
mc.file(save=True,force=True,type="mayaAscii") #crash occurs here
print 'done'
from al_usdmaya.
Havn't thought about it too deeply, but you could update the LayerManagerNode to have the option of saving out a sidecar usda file that contains the contents instead of having it inline. The contents could change to being the filepath to this sidecar file and the identifier kept the same.
At this stage I don't think we would use it, we have already had problems with sidecar files where artists would move around their Maya file, or just delete the sidecar files, and essentially breaking their Maya file or losing data.
from al_usdmaya.
We're going to look at this one soon - it's important to get this working
from al_usdmaya.
I'm taking a look at using a custom MPxData attribute type to work around the hard limit. Ideally when in the land of *.mb files, I'd prefer to serialise out as a usdc binary blob, however there doesn't seem to be a way to do this in USD currently. Question asked here....
https://groups.google.com/forum/#!topic/usd-interest/_WVE4tHojdc
I'll give it a go with strings, and put a PR up for you to test....
from al_usdmaya.
Related Issues (20)
- Respect upAxis metadata when reading usd HOT 2
- OS X build HOT 2
- Selection highlight doesn't work in VP2 wireframe mode HOT 1
- Compatibility with USD Version 18.09 HOT 5
- Building in Centos7 and ‘UsdSchemaType’ does not name a type HOT 1
- Selection change causes Usd_IssueFatalPrimAccessError HOT 5
- maya/MTypes.h missing in 2018 HOT 3
- NurbsCurves not obeying schema
- Finding Maya2018 issue
- USD dev branch removes UsdImagingGLHdEngine, breaks compilation HOT 9
- Proxy shape does not import animated transforms if animation has single key.
- can't find '__main__' module in ".../schemas" HOT 1
- endToEndMya Example error
- library ext error in plugInfo.json on windows
- Wiki comparison page correction HOT 1
- Example Animation & Layout video taken down from Youtube
- pxr/imaging/hdx/intersector.h file missing
- Unit tests failing HOT 5
- Can't select individual instances in viewport
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from al_usdmaya.