ATSOps.ResolveSelectionToAbsolute()
I can't get this function working on 3ds Max 2010 Design SP1.
The manual function named "Make Path Absolute" works...
Can someone help me to find another way to do the same task?
clearlistener() function fn_SetAssetsWithValidPath = ( /* Correct the path in the Asset Tracking system with the status found status "found" = Max find the asset but the path is not valid */ ATSOps.CheckNetworkPaths = true ATSOps.Refresh() ATSOps.GetFiles &aAssets local aAssetsWithFoundStatus = #() local aOutputAssetsWithOkStatus =#() for i = aAssets.count to 1 by -1 do ( local ss = ATSOps.GetFileSystemStatus aAssets[i] if ss[1] == #Found then ( append aAssetsWithFoundStatus aAssets[i] print ss[1] ) if (ATSOps.IsInputFile aAssets[i]) == false then ( if ss[1] == #Ok then (append aOutputAssetsWithOkStatus aAssets[i]) ) ) join aAssetsWithFoundStatus aOutputAssetsWithOkStatus if aAssetsWithFoundStatus.count > 0 then ( ATSOps.Silent = true ATSOps.Visible = true ATSOps.ClearSelection() ATSOps.SelectFiles &aAssetsWithFoundStatus ATSOps.ResolveSelectionToAbsolute() --ATSOps.Visible = false ) -- for i = aAssets.count to 1 by -1 do -- recurse cuz of buggy function! -- ( -- if ATSOps.TestFileSystemStatus aAssets[i] #Found then (fn_SetAssetsWithValidPath()) -- ) print aAssetsWithFoundStatus ) fn_SetAssetsWithValidPath()
Comments
replace then with do
replace (then) with (do) in this line
if aAssetsWithFoundStatus.count > 0 then
Youtube, Gumroad
Hey, Did you manage to fix
Hey,
Did you manage to fix it?
I'm trying to achieve something similar.
Regards.