ScriptSpot

Forum topic · Scripts Wanted

CoronaProxy view mode toggle

By harumscarum · 2017-05-19

Description

hello
need script to toggle selected CoronaProxies from Point cloud to Full mesh view mode

would be very appreciate

Viktor

Comments (4)

harumscarum · 2017-05-23

thank you!
may I ask some help as I'm trying to make it work as single toggle hotkey like this script I used before for VRayProxies

===========================================

(
global vrprxmod = 1
on execute do try
( case of
((vrprxmod== 1): ($.display = 0 vrprxmod= 2)
(vrprxmod== 2): ($.display = 1 vrprxmod= 1)
))catch()
)

===========================================

harumscarum · 2017-05-21

great, thank you very much! it works
is it possible to make it toggle between Point cloud and Full mesh view modes

`

pixamoon · 2017-05-21

yes

selected to point cloud mode:


for o in selection where classof o == CProxy do try(
	o.previzType = 2
)catch(print (getcurrentexception as string))

selected to mesh mode:


for o in selection where classof o == CProxy do try(
	o.previzType = 3
	o.cacheInRam = on
)catch(print (getcurrentexception as string))

You can save them as 2 scripts and add to Favorite Scripts
http://www.scriptspot.com/3ds-max/scripts/favorite-scripts

Or to create toolbar buttons -> select each code and drop on toolbar (then right click and change icon or text) Close max to save settings.

`

pixamoon · 2017-05-20

Hey,

please try this:


for o in selection where classof o == CProxy do try(
	o.previzType = 3
	o.cacheInRam = on
)catch(print (getcurrentexception as string))

best,
Pixamoon