GithubHelp home page GithubHelp logo

Comments (4)

alekamca avatar alekamca commented on June 12, 2024

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.

dbaz avatar dbaz commented on June 12, 2024

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.

murphyeoin avatar murphyeoin commented on June 12, 2024

We're going to look at this one soon - it's important to get this working

from al_usdmaya.

robthebloke avatar robthebloke commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.