Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Xref filename - Max Script Bug?
  RSS 2.0 ATOM  

Xref filename - Max Script Bug?
Rate this thread
 
36759
 
Permlink of this thread   Subscribe to this thread
avatar
  • Nintenjo
  • Posted: 16 November 2009 07:33 PM
  • Total Posts: 2
  • Joined: 17 November 2009 03:23 AM

Hi,

When ever i create an Xref in max, i am using a script to try and change the filename i.e.

$.filename = “myfile.max”

But this dosnt seem to change the objects property in Max 2010.. (worked previously in max 2009) and works correctly for the proxy dialog.

Any ideas why this function no longer works in 2010? (I am still able to change the property using max’s built in GUI but not via the script)

Ta,



Replies: 0
avatar
  • hobbs
  • Posted: 17 November 2009 03:19 AM

I as well have been having issues with xrefs in regards to 2010...i’ve had that problem, and i also had a problem where switching from proxy to mesh view would snap the object to [0,0,0].

Does anyone have a solution for this?



Replies: 0
avatar
  • Nintenjo
  • Posted: 02 December 2009 08:28 PM

I have tried to contact Tech support on this issue as its proving to be a massive hurdle for our tools.. But tech support seems to be having technical sisues of there own :(

.. I am also getting the issue with un resolved Xrefs appearing at 0,0,0. I think 2010 is gone a bit wierd.



Replies: 0
avatar
  • hobbs
  • Posted: 03 December 2009 03:36 AM

Thanks for looking more into this...if i find a solution during our process i will post, if you find one, please let me know.

The only solution i’ve got kind of working for me...idk exactly how you are making the xref’s but.. by doing this, seems to work, for whatever reason

----------------------------------
newXref xrefs.addNewXrefobject importedFile.fileName  importedFile.Mesh[1] 

newXref
.proxyfilename  importedFile.filename 
newXref
.objectName  importedFile.Mesh[1] 
newXref
.proxyobjectname  importedFile.Proxy[1]
 
newXref
.useProxy true
----------------------------------------

I dont remember why this works...but doing it in this order seems to work correctly, on the short test cases i’ve done.

I believe it was the assigning ‘.proxyfilename’ instead of ‘.filename’ was the solution.



Replies: 0
avatar
  • dddjef
  • Posted: 16 August 2010 01:52 AM

Six months since this problem was adressed.
I’m very surprised and disappointed that Autodesk never resolved this crucial issue.
No news? (I can’t test it with 2011, since the prod here started with that 2010)



Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 13781
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

Don’t expect them to read every thread on these forums and act on them. These are peer-to-peer forums, not a shortcut to any official support.

Report your bugs via the proper route - namely here.



Max 4.2 through 2012 (SP2+SAP).
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 0




   
  Settings Choose Theme color: