View Full Version : How to display selected poly's id in the Lower left corner
Good afternoon everyone!
I have a question,
How to display selected poly's id in the Lower left corner
select and display are Synchronism
Hope you helpe , Thank you
|
|
Light
07-13-2005, 06:50 AM
Su37,
Maybe this does what you need:
rollout new "Index"
(
spinner timing "" range:[100,10000,500] pos:[4,6] fieldWidth:60
checkButton active "" pos:[80,4] width:20 height:20
timer timeX interval:500
on timing changed val do timeX.interval = val
on timeX tick do
(
local sel = selection[1].baseObject
if (classOf sel == Editable_Poly) and active.checked do print (polyOp.getFaceSelection sel as array)[1]
)
)
createDialog new 105 28
Light
Thank you Light!
but your code can't work
it Always Suggest Make mistakes !!
Light
07-13-2005, 08:39 AM
Oh man, now noticed the forum messed up the " signs in the code. Should work now.
Light
Light, you are right, you are a great man !!
Maybe I have not made it clear
I mean ,How to display selected poly's Material id in the Lower left corner
isn't poly's id
I hope you can help me again !
Light
07-13-2005, 09:27 AM
Ok man, try this:
rollout new "Mat ID"
(
spinner timing "" range:[100,10000,100] pos:[4,6] fieldWidth:60
checkButton active "" pos:[80,4] width:20 height:20 checked:true
timer timeX interval:100
on timing changed val do timeX.interval = val
on timeX tick do
(
if selection.count != 0 do
(
local sel = selection[1].baseObject
if (classOf sel == Editable_Poly) and active.checked do print (polyOp.getFaceMatID sel (polyOp.getFaceSelection sel as array)[1])
)
)
)
createDialog new 105 28
Light
Very goog code, Great man
but Light ,have you others way to Realize it?
I do't like Communication frame
Can you Remove it ? and don't Influence work
Thank you Light very very much !
Light
07-13-2005, 10:03 AM
Su37,
I don't think I understand you completely.
If you are wondering if there are more ways to implement it, then yeah...unlimited.
Communication frame, you mean code frame?
Influence work?
Please let me know what exactly you are trying to implement, so I can help you.
Light
Sorry Light
My English is not good
I upload a picture you see
Light
07-13-2005, 10:54 AM
No problem Su37, just trying to understand what you mean exactly.
How about this:
rollout new "Mat ID"
(
spinner timing "" range:[100,10000,100] pos:[4,6] fieldWidth:60
checkButton active "" pos:[80,4] width:20 height:20 checked:true
timer timeX interval:100
on timing changed val do timeX.interval = val
on timeX tick do
(
if selection.count != 0 do
(
local sel = selection[1].baseObject
if (classOf sel == Editable_Poly) and active.checked do print (polyOp.getFaceMatID sel (polyOp.getFaceSelection sel as array)[1])
)
)
)
createDialog new 105 28 style:#(#style_sysMenu)
Light
Sorry Light
I did not mean that
I mean This tools may work Under any state
That frame all remove
j-man
07-13-2005, 12:31 PM
maybe like the poly counter (press 7), you know light, using GW draw methods.
The polycounter is a nice script.
What licence are these scripts that come with 3dsmax under?
Can I change them to my needs?
Light
07-13-2005, 02:46 PM
J_man, maybe yes maybe no. It is hard to judge from his explanations. But yeah maybe he tried to mean something like the polycounter.
Rdg, you can change them as much as you want to suit your own needs. But if you want to distribute them, just keep the original credits intact, and you should be fine.
Light
What's meaning "J_man" ?
Are you scolding people?
Light
07-14-2005, 05:16 AM
Oh man, take it easy, I was just referring to Joshua.
Light
CGTalk Moderation
07-14-2005, 05:16 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.