Jump to content

vectormodeling

Member
  • Posts

    7
  • Joined

  • Last visited

Reputation

0 Neutral

Personal Information

  • Occupation
    Student
  • Hobbies
    3D Modeling
  • Location
    Bellingham, WA
  1. i've got it working, so thanks to everyone, but as usual i've run into more problems. the whole reason i'm doing this is to export to cinema4D, and everything has to have unique textures. heres the script hacked together from ccrofts ref: PROCEDURE ClassStyle; PROCEDURE changeWindows(h :HANDLE); BEGIN SETRFIELD(h, 'Window', 'ExtSashClass', 'Style-1'); SETRFIELD(h, 'Window', 'IntSashClass', 'Style-1'); SETRFIELD(h, 'Window', 'ExtJTClass', 'Style-2'); SETRFIELD(h, 'Window', 'IntJTClass', 'Style-2'); SETRFIELD(h, 'Window', 'LintelClass', 'Style-1'); SETRFIELD(h, 'Window', 'IntShutterClass', 'Style-1'); SETRFIELD(h, 'Window', 'ExtShutterClass', 'Style-1'); SETRFIELD(h, 'Window', 'SillClass', 'Style-1'); SETRFIELD(h, 'Window', 'StoolClass', 'Style-1'); SETRFIELD(h, 'Window', 'GlazingClass', 'Style-1'); SETRFIELD(h, 'Window', 'Glazing', 'Smoked'); SETRFIELD(h, 'Window', 'ExtSillTrimClass', 'Style-1'); SETRFIELD(h, 'Window', 'IntSillTrimClass', 'Style-1'); END; BEGIN ForEachObject(changeWindows, (INSYMBOL & INVIEWPORT & (PON='Window'))); END; Run(ClassStyle); the problem i'm having is that after running the script the windows don't update. they get the part classes assigned properly, so i can set Style-1, Style-2, etc, in the classes window to have a certain texture. but the don't update on the window itself until i change something on it in the ObjInfo pallete (switching texture from Class Texture to None, or changing in option, or toggling plan detail on and off. i tried toggling plan detail on and off by script, but it doesn't help. i have to change something on each window in the info pallete. its just really annoying. if anyones got any ideas how to get these windows to update and display the textures that ARE assigned to them by part classes, please shout out. thanks.
  2. i'm having trouble getting going with this. pascal's grammatical structure is not making sense to me yet. i've only got experience with actionscript in flash and mel in maya. if someone could show me how to use FOREACHOBJECT to list every window and door in my scene and then SETRFIELD to set all of their style classes to Style-1 except the int/ext trim which will be Style-2. any help appreciated. the stocks huh? maybe the programmers are just having a hard time changing their own class from Style-1 to Style-2. or maybe their just opaque.
  3. thanks man. definitely kickin me in the right direction. i'm reading up on those procs right now. what are PIOs and how can is set their default? i was wondering if there wouldn't be a way to set this up at document start time. thanks.
  4. hi to all, i'm a newbie to vectorscript but have experience with several other languages. i want to write a script to go through every door and window item in my file and set their Special Classes parts for Jamb, Sill, Trim, etc, to Style-1 or Style-2 or whatever. sick of doing this by hand for big files that get handed off to me. any help pointing me in the right direction is greatly appreciated, vectorscript is totally new to me. thanks. nathan.
×
×
  • Create New...