#For each element in my lightData ( group from read in JSON) do following codeĬreateLight = cmds.shadingNode('aiAreaLight', asLight=True)Ĭmds.setAttr(createLight + ".tx", lightElement)Ĭmds.setAttr(createLight + ".ty", lightElement)Ĭmds.setAttr(createLight + ".tz", lightElement)Ĭmds.setAttr(createLight + ".rx", lightElement)Ĭmds.setAttr(createLight + ".ry", lightElement)Ĭmds.setAttr(createLight + ".rz", lightElement)Ĭmds.setAttr(createLight + ".sx", lightElement)Ĭmds.setAttr(createLight + ".sy", lightElement)Ĭmds.setAttr(createLight + ".sz", lightElement)Ĭmds.setAttr(createLight + ".color", lightElement, lightElement, lightElement, type="double3")Ĭmds.setAttr(createLight + ".exposure", lightElement,scaleFactor)Ĭmds.setAttr(createLight + ".intensity", lightElement)Ĭmds.setAttr(createLight + ".aiSpread", lightElement)Ĭmds.parent(createLight, groupingSetupLight)Ĭmds.matchTransform(groupingSetupLight, sel, pos = True, rot = True)Ĭmds. These are all the element 3d v2 3d models we have at RenderHub. GroupingSetupLight = oup( n = 'SetuplightGroup', em = True) #lightData = need group read in from JSon I used the last variable in the setAttr command for exposure
#returns int that cannot be smaller than vLength
For Virtual TV Studios (1920X1080) After Effects: CC - (Element 3D: v2.2) files. Product Info - Is a high quality model to add more details and realism to the project. Fixed black dots and NAN values when rendering. Fixed incorrect face count when object was subdivided.
I tried using a piece of code I found on the internet which works with vectors, but since I don't really understand how it works I can't do really much with it.ĮDIT: Also the piece of code I used from the internet is this one, you'll find the rest of my code below that. Spotlight Model for Stage, Stand, Demonstration and so on. Added Space Bar + Left Mouse Button to pan camera inside UI. Moreover if i enable the environment map, it too is black. anytime i load an object from the brower objects, it is black. With the current code my light gets waaay too dimmed when I apply the script on a big object. hi, im new here and also new to element 3d v2.2. The thing is, I want to keep a constant light exposure so If I have 2 objects, one really small and one really big, I'd like to have the same light on both models.
JetBrains WebStorm V2017.2.2 Final Crack - SH Free Download. Element 3D V2.2 Element 3D V1.6 Optical Flares Heat Distortion. Then I scale the whole light setup ( which is in a group) until it matches the selected object. Videocopilot was my favorite site I followed all the tutorials made by Andrew. The code I'm sharing now goes into the JSON file, reads in what I need and starts creating the lights by setting the attributes from the JSON file to the created lights.
So what I have is a JSON file with position, scale, rotation and basic light presets in it. So I'm trying to write a script where I can scale the light exposure ( or intensity) based on the boundingbox of selected object when created.