Serejah
@serejah
New Member
Joined: Feb 14, 2024
Topics: 34 / Replies: 1221
Reply
RE: Rotate Pivot Only (on GroupHead?)

I did that for demonstration purposes only. To show that only the group node pivot was affected. inode.GetObjectTM does seem more appropriate indeed,…

7 years ago
Forum
Reply
RE: Rotate Pivot Only (on GroupHead?)

Here’s version using sdk Rotate fn rotatePivotOnly obj quatValue localOrigin:false affectChildren:false ignoreLocks:false = ( /* virtua…

7 years ago
Forum
Reply
RE: Size Object to Face?

As you can see from the code first two face verts are used as a x vector which can be not an optimal vector for a further bounding box calculations. T…

7 years ago
Forum
Reply
RE: Size Object to Face?

You can also google for a script by Vitus called minimalBoundingBox. It’s great for that type of tasks delete objects b = box() t = Teapot() conver…

7 years ago
Forum
Reply
RE: NodeEventCallback Failure

what about using particles to preview these meshes? check out this thread

7 years ago
Forum
Reply
RE: NodeEventCallback Failure

Exceptions appeared even after the change of cloneNodes to a copy, so this was hardly the reason.

7 years ago
Forum
Reply
RE: NodeEventCallback Failure

I refactored your code and at some point it just stopped to throw that error. global PolyFaceExtruder ( if (globalvars.isglobal #EventCallbackWrap…

7 years ago
Forum
Reply
RE: DotNet UI controls

That’s the list. Trickiest part now is to check whether one can be used in a rollout targetClass = dotNetClass “system.windows.forms.control” appdom…

7 years ago
Forum
Reply
RE: keystroke callbacks

Same story. You can run showevents <yourDotNetControlHere> to get a list of available events try (destroydialog X ) catch () rollout X “” ( …

7 years ago
Forum
Reply
RE: keystroke callbacks

You didn’t specify where you need to catch that event, but here’s an example for the textbox try (destroydialog X ) catch () rollout X “” width:250 …

7 years ago
Forum
Topic
Forum
Replies: 0
Views: 11
Reply
RE: average vertex color to object color

fn avgVertexColor obj = ( local tmp = snapshotAsMesh obj avg = [0,0,0] for i=1 to tmp.numverts do avg += getvertcolor tmp i avg = avg / tmp.num…

7 years ago
Forum
Reply
RE: Get screen coords from world coords.

My bad, didn’t read it careful enough

7 years ago
Forum
Reply
7 years ago
Forum
Page 68 / 84