Custom shader parameter type help

2012-10-26 Thread Stephan Woermann
Hi, i need a custom parameter for a material for the OctaneRenderer which must have an unused type. The material should also render as a simple lambert/phong in MentalRay. For an other material, it is working, only the material with the custom parameter makes trouble. I have build a custom

Zbrush tangent vector displacement maps

2012-10-26 Thread Toonafish
Hi, Has anyone been able to get the Mental Ray vector displacement shader to work with tangent vector displacement maps coming from Zbrush ? The diagnostic file tells me I should use a FlipandSwitch setting of 10, but that only results in chewing gum :

RE: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Marc-Andre Belzile
Sorry for not being clear enough. When a plugin is loaded at startup or through LoadPlugin, all plugin items are registered through XSILoadPlugin and then the dll is unloaded by XSI *without* calling XSIUnloadPlugin. Anything allocated in the current dll process will be zapped by the OS at this

combobox

2012-10-26 Thread Gareth Bell
Afternoon all, So a combobox is derived from two values - the Label and the Value e.g. box = [Label1, Value1, Label2, Value2] Say I've selected Label1 by using GetValue (box) the value it returns will be Value1 Is it possible to get the label as a return value other than

Re: combobox

2012-10-26 Thread Peter Agg
I usually just do a quick python type thing: selected = box.Value boxList = box.UIItems boxList[ boxList.index(selected) - 1 ] That's presuming that each Label and Value entry are unique, of course. Pete On 26 October 2012 14:56, Gareth Bell gareth.b...@primefocusworld.comwrote: Afternoon

Accessing fcurve editor

2012-10-26 Thread Szabolcs Matefy
Hey folks, Does anybody have idea how to access the fcurve editor from scripting? I would like to modify the selected keys on selected fcurves, but for some reason it seems to be that the accessing of the editor itself is not documented... Anybody has any idea? Thanks

Re: Accessing fcurve editor

2012-10-26 Thread Stefan Kubicek
Do a search in the sdk docs for Animation Editor Attributes. Hey folks, Does anybody have idea how to access the fcurve editor from scripting? I would like to modify the selected keys on selected fcurves, but for some reason it seems to be that the accessing of the editor itself is not

Re: Accessing fcurve editor

2012-10-26 Thread Stephen Blair
Hey Szabolcs check out the view attributes, they recently added a lot for the Fcurve Editor On 26/10/2012 10:26 AM, Szabolcs Matefy wrote: Hey folks, Does anybody have idea how to access the fcurve editor from scripting? I would like to modify the selected keys on selected fcurves, but

Re: Accessing fcurve editor

2012-10-26 Thread Peter Agg
You can get to it as a view by digging around a bit: all_views = list(Application.Desktop.ActiveLayout.Views) all_views.extend( list(Application.Desktop.ActiveLayout.Views(vm).Views) ) for view in all_views: if not view.type == Animation Editor: continue fEditor =

Re: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Luc-Eric Rousseau
sounds like if you put some code in the constructor of a global variable, then you'd be called twice per xsi session, since your dll will be loaded and unloaded twice? On Fri, Oct 26, 2012 at 9:34 AM, Marc-Andre Belzile marc-andre.belz...@autodesk.com wrote: Sorry for not being clear enough.

Re: Friday Flashback

2012-10-26 Thread Stephen Blair
Friday Flashback 91 The Yearning - pushing #Softimage as an intuitive, emotionally expressive instrument http://wp.me/powV4-246 On 19/10/2012 8:27 AM, Stephen Blair wrote: Friday Flashback #90 Softimage NT http://wp.me/powV4-2b7 It looks like SI|3D v3.0 was the first NT version, but SI|3D

Re: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread jo benayoun
I guess the plugin is loaded once for discovering and registration (plugin manager), and then reloaded for getting the actual features (actual extension of features). Usually, plugin systems use a specification file for each new plugin (xml or other) that is in charge of describing (description,

RE: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Marc-Andre Belzile
That's correct. -Original Message- From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Luc-Eric Rousseau Sent: Friday, October 26, 2012 11:22 AM To: softimage@listproc.autodesk.com Subject: Re: SDK: When *exactly* does

Re: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Nicolas Burtnyk
I'm confused. I just tested this and global variable constructors only get called once in my plugin (on 2012 SP1). On Fri, Oct 26, 2012 at 9:27 AM, jo benayoun jobenay...@gmail.com wrote: I guess the plugin is loaded once for discovering and registration (plugin manager), and then reloaded

RE: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Marc-Andre Belzile
Right, the original plan was to cache the plugin registration info on disk and avoid loading the plugin at every single session. We could also keep all plugins in memory after registration like Maya does. -mab From: softimage-boun...@listproc.autodesk.com

Re: Chunky EXR highlights

2012-10-26 Thread piotrek marczak
pic is 8 bit, exr are floats your highlights are overexposed thats why you won’t have good aa on them its often happening when you have superbright (sub)pixel(s) next to darker ones you can either -put on glare on those in post (like in real cameras..) -pre-clamp pixel values (in vray there is

Re: Chunky EXR highlights

2012-10-26 Thread Gene Crucean
Yeah Piotrek nailed it. If you can't adjust the light, then the spec/refl most likely needs to be turned wayy down. Personally I always try to dial in the coefficient before doing any kind of clamping. On Fri, Oct 26, 2012 at 11:04 AM, piotrek marczak piotrek.marc...@gmail.com wrote: pic

Re: Chunky EXR highlights

2012-10-26 Thread Ed Manning
Are you lighting with ibl or do you have an HDR environment for FG lighting? If you have small ultrabright light sources in the HDR, they are very hard to sample accurately and your higlights may get 'fireflies. Some things to try: - make the illuminating HDR very low resolution, and use

Re: combobox

2012-10-26 Thread jo benayoun
hey Gareth, if I remember correctly and in the case where the multi-selection flag is not on, you can do something like this: values = ['red', 'orange', 'blue'] formatted = list() [formatted.extend(x) for x in enumerate(values)] ['red', 0, 'orange', 1, 'blue', 2] values[listbox.Value] no ?

Re: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Luc-Eric Rousseau
On Fri, Oct 26, 2012 at 12:52 PM, Nicolas Burtnyk nico...@redshift3d.com wrote: I'm confused. I just tested this and global variable constructors only get called once in my plugin (on 2012 SP1). how did you test this.. if you're in the debugger the .dll probably remains in memory due to the

Re: Chunky EXR highlights

2012-10-26 Thread Eric Lampi
OK, I was afraid it was something like that. Well, thanks for the tips everyone, I was hoping it could be done in comp. I don't have very hot values on my lights, reflection cards or environment, but I'll have a look at the advanced shader, seems like the clipping option is what I need. Eric On

Re: Chunky EXR highlights

2012-10-26 Thread Gene Crucean
What kind of spec/reflection values are you using on the shader? On Fri, Oct 26, 2012 at 11:58 AM, Eric Lampi ericla...@gmail.com wrote: OK, I was afraid it was something like that. Well, thanks for the tips everyone, I was hoping it could be done in comp. I don't have very hot values on

Re: Chunky EXR highlights

2012-10-26 Thread Eric Lampi
I'm using the arch shader, the problem highlights are from a spec only infinite light set to rgb 1,1,1 and .75 intensity. Reflectivity is set to .7 On Fri, Oct 26, 2012 at 3:20 PM, Gene Crucean emailgeneonthel...@gmail.comwrote: What kind of spec/reflection values are you using on the shader?

Re: Chunky EXR highlights

2012-10-26 Thread Amaan Akram
The problem is the light type. Switch to an area light, and the hot speculars will go away. Lights without area mess with physically-based shaders, and such shaders have to deploy hacks to get around lights without any area because they are not physically correct. If switching to an area light

Re: Chunky EXR highlights

2012-10-26 Thread Gene Crucean
Can we see what the problem area looks like? On Fri, Oct 26, 2012 at 1:00 PM, Eric Lampi ericla...@gmail.com wrote: I'm using the arch shader, the problem highlights are from a spec only infinite light set to rgb 1,1,1 and .75 intensity. Reflectivity is set to .7 On Fri, Oct 26, 2012 at

Re: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Nicolas Burtnyk
// class Test { public: Test() { FILE* f = fopen(D:\\test.txt, a); fprintf(f, hello\n); fclose(f); } }; Test g_test; test.txt has

RE: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Matt Lind
You mean like the .spdl and .preset formats? That's what XSI v1.x thru XSI 4.x used until the self installing stuff came online. There were all sorts of issues with unregistering plugins from the system, and dependencies with scenes. A separate file had to be maintained to keep track of what

Re: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Nicolas Burtnyk
I didn't specify in my previous post, but my test was run with a release build with no debugger attached. Global constructor was only called once. On Fri, Oct 26, 2012 at 3:13 PM, Matt Lind ml...@carbinestudios.com wrote: You mean like the .spdl and .preset formats? That’s what XSI v1.x

Re: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Kamen Lilov
On 10/26/2012 7:52 PM, Nicolas Burtnyk wrote: I'm confused. I just tested this and global variable constructors only get called once in my plugin (on 2012 SP1). Nicolas, is your plugin DLL marked as 'cached'? Because I double-checked the mechanism explained by Marc-Andre, turns out he's

Re: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread Nicolas Burtnyk
Yep cached. That explains it. On Fri, Oct 26, 2012 at 4:37 PM, Kamen Lilov kamen.li...@chaosgroup.com wrote: On 10/26/2012 7:52 PM, Nicolas Burtnyk wrote: I'm confused. I just tested this and global variable constructors only get called once in my plugin (on 2012 SP1). Nicolas, is your

Re: SDK: When *exactly* does XSIUnloadPlugin get called

2012-10-26 Thread jo benayoun
You mean like the .spdl and .preset formats? nope at all, I mean like a specification file. plugins specifications are usually little xml/json files where all informations relative to the plugin are written (what you do with the PluginRegistrar::Put* calls). This has mainly two big advantages

Re: Accessing fcurve editor

2012-10-26 Thread Eric Thivierge
Selected FCurves: Application.FCurveSelection Eric Thivierge http://www.ethivierge.com On Sat, Oct 27, 2012 at 1:43 AM, Peter Agg peter@googlemail.com wrote: You can get to it as a view by digging around a bit: all_views =