Jump to content

stevenmorgan94

Member
  • Posts

    45
  • Joined

  • Last visited

Posts posted by stevenmorgan94

  1. Won't natively get that out of VWX. All that is done in post, like Photoshop with StarFilter Pro 4. Can also be done in After Effects, Nuke, etc.

     

    You can also get a PNG of a starglow and paste the Bitmap over the light on your sheet layers individually and change the colors of it. 

    • Like 1
  2. Thanks for the quick reply Josh, I am always placing Symbols so that makes way more sense. I've tried a few different combinations and either end up with a single symbol per row/column. Seems like I'm missing a simple step but for some reasons I just can't quite see my mistake. 

     

    for row := 1 to rows do
      BEGIN
      	for column := 1 to columns do
          BEGIN
          	Symbol(ledTypeName,offsetX,OffsetY,0);
          END
      END

    image.png.6da8a882361fc4e97459b9f187f0a598.png

  3. Done some digging around and haven't been able to find a way to accomplish something like the Edit>Duplicate Array tool through Vectorscript.

     

    Currently I have:

    Symbol(ledTypeName,0,0,0);
        
    
    	ledFrame:=FSActLayer;
    	GetBBox(ledFrame,p1X,p1Y,p2X,p2Y);
    	N1:=3;
    	N2:=3;
    	IF (ledTypeID<3) THEN 
    	BEGIN
    		for i := 1  to N1 do 
    		BEGIN
    			ledFrameDup:= HDuplicate(ledFrame,((p2X-p1X)*i),0);
    		END;
    		for i := 1  to N2 do 
    		BEGIN
    			ledFrameDup:= HDuplicate(ledFrame,0,((p2Y-p1Y)*i));
    		END;
    		
    	END
    	ELSE 
    		BEGIN
    			message('SACO');
    	END;

     

    This gives me my 3 columns across and 3 rows down. I just can't figure out how to loop through and fill in each column.

     image.png.7c29317097d6288bb68ea6f6923cd8aa.png

  4. I have tried to incorporate the VWX21 Hoist Tool but it's just not quite there yet on a technical level. It's great for designs, showing spansets, etc. The fact that I can't easily swap hoist functions and add load weights in the OIP is a bust for me.

     

    For the time being I have still been using the legacy tools which can be added back in under Tools>Workspaces>Tools (not to state the obvious but I've ran across quite a few people that didn't know the legacy tools are still in there.)

  5. Hey Pat,

     

    1.  Do the 12mm symbols already exist or do you need to create them?

    • All symbols already exist.

     

    2. Are the symbol names all completely consistent? ie. does the 12mm part always occur in the same location (number of character or number of spaces from the beginning of the name)?

    • Naming conventions are the same across all pixel pitches. 
      • Video Tile 9mm 2x1
      • Video Tile 12mm 2x1
      • Video Tile 6mm 2x1, etc

     

    3. Are you always going to go from the 9mm to the 12mm? Or are there times you would want to go from 12 to 9?  That makes it more complicated as you will need to do more work figuring our how to munge the string as the lengths will change.

    • It will change, my plan was to do a PullDownMenu with all of the options that store it to a String.
    • The clunky idea I had was to substring out the original symbol name ([1]Video [2]Tile [3]9mm [4]2x1) and swap the [3] string for the new pixel pitch. Then Concat them all back together. 

     

    4. Would you be willing to consider renaming all of the 9mm symbols to 09mm so that the changing part of the string is always the same length?

    • That would not be a problem.

     

    Clearly very new to scripting so if changing the entire approach would be a better option and you'd have a direction to point me in I can do some digging. Maybe storing all sets of options to different arrays and swapping between those?

     

    array06[Video Tile 6mm 2x1, Video Tile 6mm 2x2]

    array09[Video Tile 9mm 2x1, Video Tile 9mm 2x2]

    array12[Video Tile 12mm 2x1, Video Tile 12mm 2x2]

     

    swap(array06[1], array09[1]) ? 

     

    Thanks so much.

     

  6. Yes Batch Rename works great, I just need to replicate it via script as part of a larger project (plugin) I'm working on. 

     

    Edit: Actually I lied, I think Batch Rename just renames the symbols in the Resource Browser. I need it to actually replace the symbols and their attached records.

    • Like 1
  7. Been digging around but haven't found the best way to accomplish this, wondering if anybody has an idea.

     

    Basic goal: Find a replace style symbol swap, but only swapping part of the symbol name.

     

    i.e:

    OriginalSymbol = Video Tile 9mm 2x3

    NewSymbol = Video Tile 12mm 2x3

     

    However the "2x3" could be any range of variables, I just need to swap the "mm" type (which are all symbols in the resource browser).

     

    My original thought was to SubString each symbol and then Concat them back together but am having trouble with the exact syntax. Working off the script below. Thanks!

     

    PROCEDURE ReplaceSymbols;
    { 03 Jun 2017 - Raymond J Mullin. }
    CONST
    	NewSymName = '9mm';
    VAR
    	NewSymDefH :Handle;
    	
    	function SwapSym(H :Handle) :Boolean;
    	{ swap symbol instance H with NewSymDefH }
    	Begin
    		if (GetTypeN(H) = 15) then
    		
    			SetHDef(H, NewSymDefH);	{ swap Symbol Definitions }
    	End;
    
    
    BEGIN
    	NewSymDefH := GetObject(NewSymName);		{ Handle to new symbol name }
    	if (NewSymDefH <> nil) then
    		ForEachObjectInLayer(SwapSym, 2, 0, 4)	{ Selected, Shallow, Editable Layers }
    	else AlrtDialog(concat('Symbol "', NewSymName, '" does not exist. Check spelling.')); 
    END;
    
    Run(ReplaceSymbols);

     

  8. Good work so far, worksheets will change your life.

     

    Quote

    First question: Is there a way to make the database formula reference a cell in the worksheet so that I can put the room name at the top of the worksheet and have the sections 'Room' populate from that?  My goal is to easily see what room the the worksheet is referencing as well as have the ability to easily change it without changing it in the database formula.

    You can reference other cells with =A2 or =Value(A2)

     

    Quote

    Second Question: Is there a way to group fields together to create a phrase.  For instance, I'd like to create a phrase "9'x 16' Truss Screen with Dress Kit" from the 'Stock169' 'Dress Kit' 'Screen Support' Video screen fields

    "Grouping fields" would be called "Summarize Items". There isn't a great way to change a name. You could do a replace string, but I don't think that's a good approach. Typically what I do on fields that I don't like the name of is copy them all over to a "User Field" record and change them there. So copy over "Stock169' 'Dress Kit" to User Field 1 and change them all to something nicer "9'x 16' Truss Screen with Dress Kit".

     

    I always have to do that with lighting fixture modes since VWX pulls in the GDTF files with the stupid .lit extension. So I'll change "m1_48ch.lit" to "Mode 1 (48CH)".

     

     

    • Like 1
  9. Looking for a solution when in Top/Plan view. I would like to be able to have different 2D geometry for a fixture that is yoke down vs yoke or a batten that is horizontal vs vertical. 

     

    Right now I do this with separate symbols for each 2D orientation. Obviously 3D is simple because I can just rotate the fixture. 

     

    I was hoping to accomplish this using Low, Medium, and High Level of detail in the Component Edit dialog while editing a symbol. Just make each level of detail a different orientation. This idea works except the only place I can choose which detail to see is in Sheet Layers. I would like to be able to choose this in my Design Layer as well. Is that an option at all? I may be missing something. 

     

    Open to other ideas if anybody has a nifty way of solving this. 

     

    Thanks!

    • Like 1
×
×
  • Create New...