It has some issues... I thought I'd post up the code and see if anyone has ideas... I'm finding it difficult to connect the floatFields to the value of the functions... and the selected vert mode doesn't work... Here it is. It's mostly an exercise in scripting #Import Necessary Modulesimport maya.cmds as mcimport random#…
I'm always amazed when a question I need answered has only been answered just a week or two ago. Especially for a program like Maya which over 20 years old. I'm not a scripter, I have a quick follow up question. So the script gives the pivot position, but then how would I use that position to scale something? Eg. scale 4…
Is it setting your pivot to the world grid 0 0 0? If you move your object to 0 0 0 and export does the pivot come out in the right spot? I've and to do that with quite a few engines over the years. I wrote scripts that move your object, export and then move it back, because it was so annoying. There might be some settings…
Thank you for that guide, Vailias. After some thinking, I believe the following is what's needed to add the perspective distortion to any cubemap image that you create like described above. 1) Create a cube object in your favourite 3D program. Make it any size, and completely centre it in the scene. 2) Tesselate \…
heres part of the script that ive been working on if anyone is interested. Essentially what its suppose to do is select the UDIM patch user specifies. For example if user say select 1001 UDIM (u1_v1) uv, it will select all the uvs within the UDIM tile boundary. Its using PolySelectconstraint as the backbone for the uv…
I took a peek at the page source, and it seems like the turntable is done with a simple javascript rather than flash or quicktime. I'm thinking it shouldn't be too hard to work that into a portfolio website. $(document).ready(function(){ var images_array = new Array(); var current_pic = 0; var is_drag_binded = false;…
I hope you don't mind but here are some code snippets for tools I use frequently and collected or wrote over the years. * single click turbo smooth swap (on \ off)function switch_turbosmooth obj=( for o in obj do if superclassof o == geometryClass do ( for mod in o.modifiers where classof mod == turbosmooth do( if…
@ vig: You have no idea how much help you have been.seriously. thank you very much :) Oh and you edited the post later? :D Sweeet. Ill be sure to read it once i up this post and my throbbing err.headache subsides:) UPDATES THANKS TO VIG Btw,some of the things addressed would/should definitely be similar to what you posted.…
you could generate this with code or you could simply composite images. either way, the result will depend entirely on how you combine your gradients/distancefields/however you choose to think of it here is an example in substance designer. the maths translate 1:1 to any shading language and can be easily ported to code.…
Got the whole scene to reflect and to be reflected. So far I'm getting really good performance, and I'm curios to see how much worse it gets once I start adding much more complexity. Currently I'm having nearly 500 fps on a 2080ti on 1080p resolution, when the scene fills the whole screen. Next time I'll add reflections on…