Message 1 of 5
objects flips after instanceReplace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I use this script http://www.scriptspot.com/3ds-max/scripts/instance-replace
I replace many objects with instanceReplace
The problem: A few objects flips (like mirror). Or the object rotate?
Here a test script:
The output is:
I replace many objects with instanceReplace
The problem: A few objects flips (like mirror). Or the object rotate?
Here a test script:
fn DumpObjInfo obj = (
format "____________________________________________\n"
format "DumpObjInfo for object: %\n" obj
format "%:\t%\n" "transform" obj.transform
format "%:\t%\n" "rotation " obj.rotation
format "%:\t%\n" "pivot " obj.pivot
format "%:\t%\n" "objectoffsetpos " obj.objectoffsetpos
format "%:\t%\n" "objectoffsetrot " obj.objectoffsetrot
format "%:\t%\n" "objectoffsetscale" obj.objectoffsetscale
format "%:\t%\n" "objecttransform " obj.objecttransform
)
obj_x=$'oben'
obj_y=$'unten'
DumpObjInfo obj_x
DumpObjInfo obj_y
format "------------------------------------------------------"
instanceReplace obj_x obj_y
format "------------------------------------------------------"
DumpObjInfo obj_x
DumpObjInfo obj_y
The output is:
OK
DumpObjInfo()
ResetAll()
$Editable_Poly:oben @
$Editable_Poly:unten @
____________________________________________
DumpObjInfo for object: $Editable_Poly:oben @
transform: (matrix3 )
rotation : (quat -0.5 -0.5 0.5 0.5)
pivot :
objectoffsetpos :
objectoffsetrot : (quat 0 0 0 1)
objectoffsetscale:
objecttransform : (matrix3 )
OK
____________________________________________
DumpObjInfo for object: $Editable_Poly:unten @
transform: (matrix3 )
rotation : (quat -0.5 -0.5 0.5 0.5)
pivot :
objectoffsetpos :
objectoffsetrot : (quat 0 0 0 1)
objectoffsetscale:
objecttransform : (matrix3 )
OK
------------------------------------------------------OK
$Editable_Poly:oben @
------------------------------------------------------OK
____________________________________________
DumpObjInfo for object: $Editable_Poly:oben @
transform: (matrix3 )
rotation : (quat -0.5 -0.5 0.5 0.5)
pivot :
objectoffsetpos :
objectoffsetrot : (quat 0 0 0 1)
objectoffsetscale:
objecttransform : (matrix3 )
OK
____________________________________________
DumpObjInfo for object: $Editable_Poly:unten @
transform: (matrix3 )
rotation : (quat -0.5 -0.5 0.5 0.5)
pivot :
objectoffsetpos :
objectoffsetrot : (quat 0 0 0 1)
objectoffsetscale:
objecttransform : (matrix3 )
OK


Jens
------------------------------------------------------------------------------------------------------------------
https://github.com/jedie/3dsmax_bugs | https://github.com/jedie/3dsmax_patches
------------------------------------------------------------------------------------------------------------------
https://github.com/jedie/3dsmax_bugs | https://github.com/jedie/3dsmax_patches