Re: Scripting making geoapproximation local?
couldn't you just select all objects and add a geoapproximation property ? - Ronald On 4/27/2015 12:02, Morten Bartholdy wrote: I have load of objects to which I need to make the geoapproximation local and set it at various values, so I am trying to script it. However if I do one object manually and try running this: MakeLocal model*.polyblabla*.geomapprox, siDefaultPropagation - the geoapproximation appears to stay global. Is there something particular I need to do to make numerous geoappr properties local? Morten
Re: Scripting making geoapproximation local?
FYI, You can create groups and put GeoApprox properties on them. As long as all meshes don't have local geo approx, they will use the one in the group. May help make things easier / quicker? Eric T. On 4/28/2015 7:59 AM, Toonafish wrote: couldn't you just select all objects and add a geoapproximation property ? - Ronald
Re: Scripting making geoapproximation local?
You can add a brand new geo approximation property and it will replace the shared one making it unique. I don't have softimage on front of me, but it should be something like: for each in Application.Selection: each.AddProperty('geomapprox') Cheers
Scripting making geoapproximation local?
I have load of objects to which I need to make the geoapproximation local and set it at various values, so I am trying to script it. However if I do one object manually and try running this: MakeLocal model*.polyblabla*.geomapprox, siDefaultPropagation - the geoapproximation appears to stay global. Is there something particular I need to do to make numerous geoappr properties local? Morten
Re: Scripting making geoapproximation local?
As I do have xsi in front of me here is some dodgy code for o in Application.Selection: Application.MakeLocal( str(o) + .geomapprox, siDefaultPropagation) Simon Reeves London, UK *si...@simonreeves.com si...@simonreeves.com* *www.simonreeves.com http://www.simonreeves.com* *www.analogstudio.co.uk http://www.analogstudio.co.uk* On 27 April 2015 at 11:47, Andreas Bystrom andreas.byst...@gmail.com wrote: if you select the objects, and press + and then - to increase and then decrease the subd level, it will make the geoApprox propery local on each of the selected objects. not sure if that works in the setup you have, but could be worth a shot. On Mon, Apr 27, 2015 at 10:38 PM, Cesar Saez cesa...@gmail.com wrote: You can add a brand new geo approximation property and it will replace the shared one making it unique. I don't have softimage on front of me, but it should be something like: for each in Application.Selection: each.AddProperty('geomapprox') Cheers
Re: Scripting making geoapproximation local?
I get this error: ' ERROR : Expected identifier - [line 1] I guess a simple syntax thing... MB Den 27. april 2015 kl. 12:38 skrev Cesar Saez cesa...@gmail.com: You can add a brand new geo approximation property and it will replace the shared one making it unique. I don't have softimage on front of me, but it should be something like: for each in Application.Selection: each.AddProperty('geomapprox') Cheers
Re: Scripting making geoapproximation local?
if you select the objects, and press + and then - to increase and then decrease the subd level, it will make the geoApprox propery local on each of the selected objects. not sure if that works in the setup you have, but could be worth a shot. On Mon, Apr 27, 2015 at 10:38 PM, Cesar Saez cesa...@gmail.com wrote: You can add a brand new geo approximation property and it will replace the shared one making it unique. I don't have softimage on front of me, but it should be something like: for each in Application.Selection: each.AddProperty('geomapprox') Cheers
Re: Scripting making geoapproximation local?
Simple and it works - thanks guys. Morten Den 27. april 2015 kl. 12:47 skrev Andreas Bystrom andreas.byst...@gmail.com: if you select the objects, and press + and then - to increase and then decrease the subd level, it will make the geoApprox propery local on each of the selected objects. not sure if that works in the setup you have, but could be worth a shot. On Mon, Apr 27, 2015 at 10:38 PM, Cesar Saez cesa...@gmail.com mailto:cesa...@gmail.com wrote: You can add a brand new geo approximation property and it will replace the shared one making it unique. I don't have softimage on front of me, but it should be something like: for each in Application.Selection: each.AddProperty('geomapprox') Cheers
Re: Scripting making geoapproximation local?
Did you run it with something other than Python selected in the script editor? Sounds like it. (I failed to mention that it was python) Simon Reeves London, UK *si...@simonreeves.com si...@simonreeves.com* *www.simonreeves.com http://www.simonreeves.com* *www.analogstudio.co.uk http://www.analogstudio.co.uk* On 27 April 2015 at 12:14, Morten Bartholdy x...@colorshopvfx.dk wrote: I get this error: ' ERROR : Expected '=' - [line 1] Likely simple syntax stuff. I tried inserting the = a couple of places that seemed plausible, but no luck. MB Den 27. april 2015 kl. 12:53 skrev Simon Reeves si...@simonreeves.com: As I do have xsi in front of me here is some dodgy code for o in Application.Selection: Application.MakeLocal( str(o) + .geomapprox, siDefaultPropagation) Simon Reeves London, UK * si...@simonreeves.com si...@simonreeves.com * * www.simonreeves.com http://www.simonreeves.com * * www.analogstudio.co.uk http://www.analogstudio.co.uk * On 27 April 2015 at 11:47, Andreas Bystrom andreas.byst...@gmail.com wrote: if you select the objects, and press + and then - to increase and then decrease the subd level, it will make the geoApprox propery local on each of the selected objects. not sure if that works in the setup you have, but could be worth a shot. On Mon, Apr 27, 2015 at 10:38 PM, Cesar Saez cesa...@gmail.com wrote: You can add a brand new geo approximation property and it will replace the shared one making it unique. I don't have softimage on front of me, but it should be something like: for each in Application.Selection: each.AddProperty('geomapprox') Cheers
Re: Scripting making geoapproximation local?
My bad - i should have tried Python, it was on VB. It needs indentation in the 2nd line but works perfectly, thanks! :) Morten Den 27. april 2015 kl. 13:20 skrev Simon Reeves si...@simonreeves.com: Did you run it with something other than Python selected in the script editor? Sounds like it. (I failed to mention that it was python) Simon Reeves London, UK si...@simonreeves.com mailto:si...@simonreeves.com www.simonreeves.com http://www.simonreeves.com www.analogstudio.co.uk http://www.analogstudio.co.uk On 27 April 2015 at 12:14, Morten Bartholdy x...@colorshopvfx.dk mailto:x...@colorshopvfx.dk wrote: I get this error: ' ERROR : Expected '=' - [line 1] Likely simple syntax stuff. I tried inserting the = a couple of places that seemed plausible, but no luck. MB Den 27. april 2015 kl. 12:53 skrev Simon Reeves si...@simonreeves.com mailto:si...@simonreeves.com : As I do have xsi in front of me here is some dodgy code for o in Application.Selection: Application.MakeLocal( str(o) + .geomapprox, siDefaultPropagation) Simon Reeves London, UK si...@simonreeves.com mailto:si...@simonreeves.com www.simonreeves.com http://www.simonreeves.com www.analogstudio.co.uk http://www.analogstudio.co.uk On 27 April 2015 at 11:47, Andreas Bystrom andreas.byst...@gmail.com mailto:andreas.byst...@gmail.com wrote: if you select the objects, and press + and then - to increase and then decrease the subd level, it will make the geoApprox propery local on each of the selected objects. not sure if that works in the setup you have, but could be worth a shot. On Mon, Apr 27, 2015 at 10:38 PM, Cesar Saez cesa...@gmail.com mailto:cesa...@gmail.com wrote: You can add a brand new geo approximation property and it will replace the shared one making it unique. I don't have softimage on front of me, but it should be something like: for each in Application.Selection: each.AddProperty('geomapprox') Cheers