CoronaProxy view mode toggle

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

would be very appreciate

Viktor

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
harumscarum's picture

thank you! may I ask some

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's picture

great, thank you very much!

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

pixamoon's picture

`

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's picture

`

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.