Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: GabaCGStudio on 2016-05-31, 03:08:13

Title: Duplicate proxies to mesh via Maxscript
Post by: GabaCGStudio on 2016-05-31, 03:08:13
is a way to duplicate proxies to mesh via Maxscript?
Title: Re: Duplicate proxies to mesh via Maxscript
Post by: Christa Noel on 2016-05-31, 05:17:00
hi GabaCGStudio, is this what you mean?
Code: [Select]
mycrnproxy=$crp_Box002
converttomesh (instance mycrnproxy)
Title: Re: Duplicate proxies to mesh via Maxscript
Post by: GabaCGStudio on 2016-05-31, 05:46:22
hi GabaCGStudio, is this what you mean?
Code: [Select]
mycrnproxy=$crp_Box002
converttomesh (instance mycrnproxy)

your method is wrong !!

i mean this is:
(https://i.imgsafe.org/d08a20f8f0.jpg)
Title: Re: Duplicate proxies to mesh via Maxscript
Post by: Christa Noel on 2016-05-31, 07:08:24
imho actually the codes does the same that "duplicate to mesh button", only the variable choose the object named $crp_Box002 which is coronaproxy object to convert.
you can change variable mycrnproxy to selected object(s) like this:

Code: [Select]
for crnproxy in selection do converttomesh (instance crnproxy)
Title: Re: Duplicate proxies to mesh via Maxscript
Post by: Ondra on 2016-05-31, 14:13:26
it probably doesnt do the same - converttomesh will convert the current viewport representation. You need first to set the viewport representation to mesh and then do the convert for this to work. The Corona function for duplicating to mesh is currently not exported to maxscript, but I will do it
Title: Re: Duplicate proxies to mesh via Maxscript
Post by: Ondra on 2016-05-31, 14:27:57
added, will be in new daily build: CProxy.ProxyFp.duplicateToMesh $
Title: Re: Duplicate proxies to mesh via Maxscript
Post by: Christa Noel on 2016-06-01, 03:31:53
it probably doesnt do the same - converttomesh will convert the current viewport representation. You need first to set the viewport representation to mesh and then do the convert for this to work. The Corona function for duplicating to mesh is currently not exported to maxscript, but I will do it
ah I'm sorry I forgot the current viewport representation. the coronaproxy need to use full mesh viewport display first before converttomesh.
added, will be in new daily build: CProxy.ProxyFp.duplicateToMesh $
great thanx. :)
Title: Re: Duplicate proxies to mesh via Maxscript
Post by: Ondra on 2016-06-01, 11:01:22
already released into public dailies ;)