Tagged 'General Scripting'

edge slice not work

hi
i made this script.
but that is not work.

this script is to slice with 1 selected edge on topview

pls help

myobj = selection[1]
polyOp.getEdgeSelection selection[1]
local edgeVerts = polyOp.getEdgeVerts selection[1] 1
local edgeVerts2 = polyOp.getEdgeVerts selection[1] 2
p1 = (polyOp.getVert selection[1] edgeVerts[1])
p2 = (polyOp.getVert selection[1] edgeVerts2[1])
myobj.slice [p1[2]-p2[2],p2[1]-p1[1], 0] [p1[1]-myobj.pos[1], p1[2]-myobj.pos[2],-myobj.pos[3]]

Create docked rollout with small height

Hello
Try to create docked rollout with small height, but minimum height is 65.
Smaple:
(

rollout RL "" width:98 height:10
(
)
createdialog RL style:#(#style_titlebar, #style_border, #style_sysmenu, #style_minimizebox) --style:#(#style_toolwindow,#style_border) --
cui.RegisterDialogBar RL minSize:[200,20] maxSize:[200,20] style:#(#cui_dock_all, #style_sysmenu) --, #cui_floatable
cui.DockDialogBar RL #cui_dock_bottom
print RL.height
)

Loop over all materials / find material

Hey

What's the best way to get a list of all materials? Assigned/not assigned/scene/non scene/ library etc?

I want to find material by name & assign to geometry.

Regards
Dariusz

Loop over all materials / find material

Hey

What's the best way to get a list of all materials? Assigned/not assigned/scene/non scene/ library etc?

I want to find material by name & assign to geometry.

Regards
Dariusz

Loop over all materials / find material

Hey

What's the best way to get a list of all materials? Assigned/not assigned/scene/non scene/ library etc?

I want to find material by name & assign to geometry.

Regards
Dariusz

Loop over all materials / find material

Hey

What's the best way to get a list of all materials? Assigned/not assigned/scene/non scene/ library etc?

I want to find material by name & assign to geometry.

Regards
Dariusz

Loop over all materials / find material

Hey

What's the best way to get a list of all materials? Assigned/not assigned/scene/non scene/ library etc?

I want to find material by name & assign to geometry.

Regards
Dariusz

Loop over all materials / find material

Hey

What's the best way to get a list of all materials? Assigned/not assigned/scene/non scene/ library etc?

I want to find material by name & assign to geometry.

Regards
Dariusz

Loop over all materials / find material

Hey

What's the best way to get a list of all materials? Assigned/not assigned/scene/non scene/ library etc?

I want to find material by name & assign to geometry.

Regards
Dariusz

Loop over all materials / find material

Hey

What's the best way to get a list of all materials? Assigned/not assigned/scene/non scene/ library etc?

I want to find material by name & assign to geometry.

Regards
Dariusz

Syndicate content