mjbg
- 13 public contributions
- Member since
- Latest contribution Jan 2012
Help: registerRedrawViewsCallback + mouse tool
so.. viewport isnt updating when i use this 2 commands together.. why? here is one sample code fn aaa = ( unregisterRedrawViewsCallback aaa test = text size:100 kerning:0 leading:0 isSelected:on text:"test" starttool foo ) tool foo ( on…
Forum topic
7 commentssplineOps.weld
there is any way to access some kind of weld threshold for the splineOps.weld command?
Forum topic
4 commentsGet the screen position of some vertex?
how do i get the screen position of some vertex or object pivot? something like the mouse.screenpos.. but for objects
Forum topic
2 commentsMaterial Preview
there is any way to save the material preview (that sphere/cone/box etc) to some file? or render some file with the material applied without closing the current document?
Forum topic
0 commentsarray help
hello so.. there is a limit of characteres on array? i am creating some arrays based on some ini files.. but it seems that the array stops at around 8.670 characteres. but i need some more to complete the array or there is any way i could…
Forum topic
3 commentsView point position
hi How can i find the active view point position in xyz? thanks
Forum topic
1 commentsnap ignore object
so, there´s any way to make the snap ignore some object? i know an easy solution would be freeze the object and set "snapmode.tofrozen = false". But the object must be visible and cant be frozen. any ideas?
Forum topic
2 commentsHow do i delete a line from a txt file?
so. i have a .txt file with some hundreds of arrays.. each array on a separated line lets say: #("box01", [0,0,0], 100) #("box02", [50,50,0], 120) #("box03", [40,20,10], 80) #("box04", [80,0,50], 60) etc... now i want to delete some lines…
Forum topic
0 commentsHow do i create a line with pre specified number of verts and then do something?
so i belive what i am trying to do is very siple. lets say i want to create a line with 3 points and after i click the right mouse button to stop the creation it will messagebox = "aaa" but.. if i try to do something like this:…
Forum topic
4 commentsScale rotated object (only one axis)
Hi.. i´m sorry to be asking so much dumb questions.. i am trying to do very simple scripts just for learning and for speed up my workflow using them for repetitive tasks.. but now again i am stucked with another simple script.. so.. how…
Forum topic
1 commentdo something based on object name prefix
hello i´m struggling with some basic concepts lately what i am trying to do is do something based on the object name prefix.. i am trying something like this: for o in selection as array do if o.name == 'Box'* do print "it works!" but the…
Forum topic
2 commentsbasic array question
hi.. maybe someone can help me with this one.. i am not figuring out how to use the find item on an array of coordinates.. what i want to do is find the item that have the especific z coordinate, doesnt matter whats the x or y so i am…
Forum topic
3 commentsprint selected object name
what i want max to do is to print the selected object name every time i select one object/change selection but i cant figure out how to do it.. any insights?
Forum topic
2 comments