![]() |
||||||||||||||
|
|
||||||||||||||
|
|||||||
| Notices |
| Scripts Post and discuss architectural scripts or maxscripts here. This forum is for all software applications. |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Apr 2007
Location: Providence, RI
Posts: 5
Name: Kyle Long |
First, I'd like to apologize if I'm posting in the wrong forum -- newbie poster over here
---- I've got a background in programming, but am new to MaxScript. I'm trying to write a simple script that sets all selected objects invisible to the camera. (I realize that this is quite futile on it's own; however, I am incorporating it into a larger script). At any rate -- the main question: Where can I find a list of all the object property variables? More specifically, I need to know what syntax corresponds to the "Visible to Camera" checkbox within object properties. Additionally, I was curious as to whether the MaxScript Listener can be used to view what functions/scripts are being executed as I manipulate my scene via the GUI. Thanks so much! -Kyle |
|
|
|
|
|
#2 (permalink) |
|
Junior Member
Join Date: Feb 2007
Location: Kansas City, MO
Posts: 16
Name: Michael Rucereto |
Kyle,
This was a tricky one, and one that I actually looked into recently. To set your current selections visibility to camera use the following syntax: $.primaryvisibility = False $.primaryvisibility = True For your second question: If you open the MaxScript Listener, it will spit out certain commands that you can use in your code. You can even highlight that code and drag it up to your toolbar which will create a button to execute this command again quickly. This doesn't do everything, such as your question above, but it does come in handy to learn some of the syntax that MaxScript uses. |
|
|
|
|
|
#3 (permalink) |
|
Junior Member
Join Date: Apr 2007
Location: Providence, RI
Posts: 5
Name: Kyle Long |
Michael;
Amazing! Thanks so much... if i may ask, where did you find that info? as far as the listener goes... when i open it up, nothing happens. It's just a blank box and stays that way even when i manipulate my scene. thoughts? thanks! |
|
|
|
|
|
#4 (permalink) |
|
Junior Member
Join Date: Feb 2007
Location: Kansas City, MO
Posts: 16
Name: Michael Rucereto |
Well, the MaxScript Reference, as you've probably noticed, isn't extemely helpful, but that is in fact where I located it. The section that I specifcally found this is titled:
Interface: INode The Listener issue: Are you looking in the top window of the rollout? It's the pinkish panel on my screen. Try creating something simple, like a box and it should spit something out like this: Box lengthsegs:1 widthsegs:1 heightsegs:1 length:88.4846 width:70.5902 height:95.3178 mapCoords:on pos:[160.541,-98.0119,0] isSelected:on Last edited by mrucereto; April 3rd, 2007 at 02:35 PM. |
|
|
|
|
|
#5 (permalink) |
|
Junior Member
Join Date: Apr 2007
Location: Providence, RI
Posts: 5
Name: Kyle Long |
I figured it out -- I had to enable the MacroRecorder. Your post helped though -- the 'pink' portion of my listener was minimized, so i couldn't even see it! I was enabling and disabling MacroRecorder the other day, but it it didn't seem to be working because the 'pink' section wasn't visible! haha.
Thanks man! |
|
|
|
| Sponsored Links |
|
|
#6 (permalink) |
|
Junior Member
Join Date: Feb 2007
Location: Kansas City, MO
Posts: 16
Name: Michael Rucereto |
MacroRecorder! Yes, that would be the key element to turn on. I was trying to think of the most basic problem, I guess I didn't go that basic.
Glad to help out, good luck scripting! |
|
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|