Notifications
Clear all

[Closed] Xref controller max9 where to find it in the help??

i working with xref controller the new one PRS xref controller in max9

and i was trying to fin in the help using search and index

i dint find so itry with showproperties

and i got:

.srcFileName : filename

.srcItemName : string

.xrefRecord : Interface

.unresolved : bool

.nested : bool

.retargetable : bool

does anyone one wahta unresolved , nested or retargable are for .

or whre to exactly find xref controller in the help

thanks in advance.

2 Replies

I try with a object call sphere01__MF tha is in my actual file and in the one i want to xref the one moving.max



for obj in selection do
(
 
Xrefpath = "C:\	emp\\moving.max"
 
a = obj.name
 
obj[3].controller = XRef_Controller srcFileName:xrefpath srcItemName:a
 
)
 


the code works but the file in doesnt update or appear in the modifier pannel

so i do manually and check with the maxscipt


$[3].srcFileName 
 
--wil give me back
 
"C:	emp\moving.max"
 

and it is the sanme string.

one timw i have setup thw xref manually i can change by script with .srcFileName
but it cant setup properly with maxscript form scratch

I keep doing tests and :

the propertie .srcFileName doesnt want to work from start.

so using the property with maxscipt will not work.

One time you have setup the filename by hand with the modifer panel without maxscript it will work,

So after you have done it by hand the propertie .srcFileName will work with maxscript.

but not if you dont do it from scratch

Is any workaround or way of fixing it?