1. #16
    New Member User Gallery
    Join Date
    Mar 2012
    Location
    Delhi
    Posts
    1

    Thumbs up Fixed

    Quote Originally Posted by tchoa View Post
    Good catch ionblue!
    My mistake! I wrote this too quickly, working with an existing .ma file goz linked... (stupid me)
    So the code should be the one, as we want to unlock the file before delete and rewrite it if it already exists:
    Code:
    // Then exports it to a Maya file.  $maFileName = $GoZProjectPath + $gozName + ".ma";
    if (`filetest -r $maFileName`)
      python ("import os, stat\nmaFile = '" + $maFileName + "'\nos.chmod(maFile, stat.S_IWRITE)");
    sysFile -delete $maFileName;
    file -f -op "v=0;" -typ "mayaAscii" -es $maFileName;
    python ("import os, stat\nmaFile = '" + $maFileName + "'\nos.chmod(maFile, stat.S_IREAD)");
    But maybe it's not necessary to unlock the file before deleting it... anyway that should be ok now.

    Works great...........thanks

  2. #17
    New Member User Gallery
    Join Date
    Jan 2006
    Age
    29
    Posts
    23

    Default

    So the problem I seem to be having with the script now is when I send it from Maya to Zbrush, the file becomes read only. This causes the UV to keep, but when I try sending it Zbrush to Maya, because the file is still read only Zbrush thinks no changes have been made and then crashes.

    Any ideas?

  3. #18
    New Member User Gallery
    Join Date
    Aug 2004
    Location
    France - Montpellier
    Age
    37
    Posts
    26

    Default

    Quote Originally Posted by ionblue View Post
    So the problem I seem to be having with the script now is when I send it from Maya to Zbrush, the file becomes read only. This causes the UV to keep, but when I try sending it Zbrush to Maya, because the file is still read only Zbrush thinks no changes have been made and then crashes.
    Any ideas?
    Atm I've no one-click workaround for this issue.
    I'll post here if I find something when I've time to investigate...

  4. #19
    New Member User Gallery
    Join Date
    Apr 2013
    Posts
    1

    Default

    Quote Originally Posted by tchoa View Post
    Good catch ionblue!
    My mistake! I wrote this too quickly, working with an existing .ma file goz linked... (stupid me)
    So the code should be the one, as we want to unlock the file before delete and rewrite it if it already exists:
    Code:
    // Then exports it to a Maya file.  $maFileName = $GoZProjectPath + $gozName + ".ma";
    if (`filetest -r $maFileName`)
      python ("import os, stat\nmaFile = '" + $maFileName + "'\nos.chmod(maFile, stat.S_IWRITE)");
    sysFile -delete $maFileName;
    file -f -op "v=0;" -typ "mayaAscii" -es $maFileName;
    python ("import os, stat\nmaFile = '" + $maFileName + "'\nos.chmod(maFile, stat.S_IREAD)");
    But maybe it's not necessary to unlock the file before deleting it... anyway that should be ok now.
    Hey, I'm having the same problem but when I try the code fix I get a "Windows Error"

    Code:
    # Error: file: C:/Users/Public/Pixologic/GoZApps/Maya/GoZBrushFromMaya.mel line 493: WindowsError: file  line 3: 3 #

  5. #20
    Senior Member User Gallery
    Join Date
    Sep 2004
    Age
    38
    Posts
    1,291

    Default Fixed without editing scripts

    Has nothing to do with scripts. Basically Zbrush hates outside the 0 to 1 UV space. If your model's Uvs are even near the outside borders of the space in maya it will fold the uvz in Zbrush using GoZ.


    So in Maya


    After you move the uvs in a little try GoZ and you will See (hey that rhythms).

    Enjoy
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	good.jpg 
Views:	1 
Size:	79.1 KB 
ID:	362416  

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •