ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
you can always use show $ to print object properties in listener
first I checked what $.mpassEffect returns and then what it returns after I manually change it to mr mode.
then just assign a new instance of dof mode as shown above
thank you for the lesson....
another question??? Why spinners do not work
//////////////////////////////////////////////
try (DestroyDialog Test) catch()
utility Test "foo" width:100 height:50
(
spinner spn_TDist "Dist" range:[0,1000,1]
spinner spn_F_Stop "F_Stop" range:[0,10,1]
on Test open do
(
$Camera001.mpassEnabled = on
$Camera001.mpassEffect = Depth_of_Field__mental_ray()
)
on spn_TDist changed val do
(
$Camera001.targetDistance = val
)
on spn_F_Stop changed val do
(
$Camera001.mpassEffect.f-Stop = val
)
)
Comments
.
$.mpassEffect = Depth_of_Field__mental_ray()
Thanks so much. The help does
Thanks so much. The help does not describe this feature....
.
you can always use show $ to print object properties in listener
first I checked what $.mpassEffect returns and then what it returns after I manually change it to mr mode.
then just assign a new instance of dof mode as shown above
thank you for the
thank you for the lesson....
another question??? Why spinners do not work
//////////////////////////////////////////////
try (DestroyDialog Test) catch()
utility Test "foo" width:100 height:50
(
spinner spn_TDist "Dist" range:[0,1000,1]
spinner spn_F_Stop "F_Stop" range:[0,10,1]
on Test open do
(
$Camera001.mpassEnabled = on
$Camera001.mpassEffect = Depth_of_Field__mental_ray()
)
on spn_TDist changed val do
(
$Camera001.targetDistance = val
)
on spn_F_Stop changed val do
(
$Camera001.mpassEffect.f-Stop = val
)
)
createDialog Test pos:[100,100]
///////////////////////////////////////////////////////////////
yeah, I didn't learn my
yeah, I didn't learn my lesson...