Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for it to iterate properly of the set_attr.. start on 0 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ogmasoul3d
Copy link

for it to iterate properly of the set_attr.. I need to start on 0 to find the -type in the array..

---I tried it on a this maya asccii file, and had issues that it did not parse the translate and rotate correctly..

//Maya ASCII 2013 scene
//Name: Frame000001.ma
//Last modified: Thu, May 30, 2019 01:54:22
//Codeset: 1250
requires maya "2013";
currentUnit -l Meter -a degree -t pal;
createNode transform -n "Camera1";
setAttr ".translate" -type "double3" -61.3705913218465 -72.9083740863482 27.44402042745573;
setAttr ".rotate" -type "double3" 86.25937533399446 0.9089993643681026 -39.0049653572422;
createNode camera -n "cameraShape1" -p "Camera1";
setAttr ".focalLength" 129.4273098880071;
addAttr -ci true -sn "imageFileName" -ln "imageFileName" -dt "string";
addAttr -ci true -sn "originalImageFileName" -ln "originalImageFileName" -dt "string";
addAttr -ci true -sn "aspectRatio" -ln "aspectRatio" -at "double";
addAttr -ci true -sn "principalPoint" -ln "principalPoint" -dt "double2";
addAttr -ci true -sn "lensDistortion" -ln "lensDistortion" -dt "doubleArray";
setAttr -k on ".imageFileName" -type "string" "Cam01_000001.jpg";
setAttr -k on ".originalImageFileName" -type "string" "R:\Frame000001\Cam01_000001.jpg";
setAttr -k on ".aspectRatio" -type double 1.000022599329786;
setAttr -k on ".principalPoint" -type double2 0 -5.77383634949802e-017;
setAttr -k on ".lensDistortion" -type doubleArray 6 0 0 0 0 0 0;
setAttr ".cap" -type "double2" 1.082607182989887 1.417322834645669 ;

for it to iterate properly of the set_attr.. I need to start on 0 to find the -type in the array..
@mottosso
Copy link
Owner

Thanks @ogmasoul3d, are you able to test this on additional versions of Maya as well?

@ogmasoul3d
Copy link
Author

Sry no.. One cause for this might be that this file is generated from another tool, reality capture.. and there might be an issue with their maya ascii writer.. not sure but thus is the Maya Ascii files I am parsing..

https://www.capturingreality.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants