Welcome to CGarchitect.com Untitled Document

Go Back   CGarchitect.com > 3D SOFTWARE > Scripts

Notices

Scripts Post and discuss architectural scripts or maxscripts here. This forum is for all software applications.

Reply
 
LinkBack Thread Tools Display Modes
Old April 3rd, 2007   #1 (permalink)
Junior Member
 
Join Date: Apr 2007
Location: Providence, RI
Posts: 5

Name: Kyle Long


United_States 


Question MaxScript syntax/object property variables

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
klong is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 3rd, 2007   #2 (permalink)
Junior Member
 
Join Date: Feb 2007
Location: Kansas City, MO
Posts: 16

Name: Michael Rucereto


United_States 


Default Re: MaxScript syntax/object property variables

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.
mrucereto is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 3rd, 2007   #3 (permalink)
Junior Member
 
Join Date: Apr 2007
Location: Providence, RI
Posts: 5

Name: Kyle Long


United_States 


Default Re: MaxScript syntax/object property variables

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!
klong is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 3rd, 2007   #4 (permalink)
Junior Member
 
Join Date: Feb 2007
Location: Kansas City, MO
Posts: 16

Name: Michael Rucereto


United_States 


Default Re: MaxScript syntax/object property variables

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.
mrucereto is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 3rd, 2007   #5 (permalink)
Junior Member
 
Join Date: Apr 2007
Location: Providence, RI
Posts: 5

Name: Kyle Long


United_States 


Default Re: MaxScript syntax/object property variables

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!
klong is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links

Old April 3rd, 2007   #6 (permalink)
Junior Member
 
Join Date: Feb 2007
Location: Kansas City, MO
Posts: 16

Name: Michael Rucereto


United_States 


Default Re: MaxScript syntax/object property variables

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!
mrucereto is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT -7. The time now is 12:15 AM.





Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
© Copyright 2001 – 2008 CGarchitect Digital Media Corp. All Rights Reserved.