klong Posted April 3, 2007 Share Posted April 3, 2007 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 Link to comment Share on other sites More sharing options...
mrucereto Posted April 3, 2007 Share Posted April 3, 2007 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. Link to comment Share on other sites More sharing options...
klong Posted April 3, 2007 Author Share Posted April 3, 2007 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! Link to comment Share on other sites More sharing options...
mrucereto Posted April 3, 2007 Share Posted April 3, 2007 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 Link to comment Share on other sites More sharing options...
klong Posted April 3, 2007 Author Share Posted April 3, 2007 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! Link to comment Share on other sites More sharing options...
mrucereto Posted April 3, 2007 Share Posted April 3, 2007 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! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now